@wdio/config 5.18.4 → 5.22.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/constants.js +4 -2
- package/build/lib/ConfigParser.js +1 -1
- package/package.json +2 -2
package/build/constants.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.NON_WORKER_SERVICES = exports.SUPPORTED_HOOKS = exports.DEFAULT_CONFIGS = void 0;
|
|
6
|
+
exports.SUPPORTED_FILE_EXTENSIONS = exports.NON_WORKER_SERVICES = exports.SUPPORTED_HOOKS = exports.DEFAULT_CONFIGS = void 0;
|
|
7
7
|
const DEFAULT_TIMEOUT = 10000;
|
|
8
8
|
|
|
9
9
|
const DEFAULT_CONFIGS = () => ({
|
|
@@ -67,4 +67,6 @@ exports.DEFAULT_CONFIGS = DEFAULT_CONFIGS;
|
|
|
67
67
|
const SUPPORTED_HOOKS = ['before', 'beforeSession', 'beforeSuite', 'beforeHook', 'beforeTest', 'beforeCommand', 'afterCommand', 'afterTest', 'afterHook', 'afterSuite', 'afterSession', 'after', 'beforeFeature', 'beforeScenario', 'beforeStep', 'afterStep', 'afterScenario', 'afterFeature', 'onReload', 'onPrepare', 'onComplete'];
|
|
68
68
|
exports.SUPPORTED_HOOKS = SUPPORTED_HOOKS;
|
|
69
69
|
const NON_WORKER_SERVICES = ['chromedriver', 'selenium-standalone', 'appium', 'reportportal', 'firefox-profile'];
|
|
70
|
-
exports.NON_WORKER_SERVICES = NON_WORKER_SERVICES;
|
|
70
|
+
exports.NON_WORKER_SERVICES = NON_WORKER_SERVICES;
|
|
71
|
+
const SUPPORTED_FILE_EXTENSIONS = ['.js', '.mjs', '.es6', '.ts', '.feature', '.coffee', '.cjs'];
|
|
72
|
+
exports.SUPPORTED_FILE_EXTENSIONS = SUPPORTED_FILE_EXTENSIONS;
|
|
@@ -219,7 +219,7 @@ class ConfigParser {
|
|
|
219
219
|
for (let pattern of patterns) {
|
|
220
220
|
let filenames = _glob.default.sync(pattern);
|
|
221
221
|
|
|
222
|
-
filenames = filenames.filter(filename =>
|
|
222
|
+
filenames = filenames.filter(filename => _constants.SUPPORTED_FILE_EXTENSIONS.find(ext => filename.endsWith(ext)));
|
|
223
223
|
filenames = filenames.map(filename => _path.default.isAbsolute(filename) ? _path.default.normalize(filename) : _path.default.resolve(process.cwd(), filename));
|
|
224
224
|
|
|
225
225
|
if (filenames.length === 0 && !omitWarnings) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/config",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.22.4",
|
|
4
4
|
"description": "A helper utility to parse and validate WebdriverIO options",
|
|
5
5
|
"author": "Christian Bromann <christian@saucelabs.com>",
|
|
6
6
|
"homepage": "https://github.com/webdriverio/webdriverio/tree/master/packages/wdio-config",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"publishConfig": {
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "1a093237fe927a5db470f8a839b342df02913804"
|
|
41
41
|
}
|