create-wdio 8.4.7 → 8.4.9
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/README.md +2 -2
- package/build/index.js +3 -3
- package/build/utils.js +1 -1
- package/package.json +15 -14
- package/vitest.config.ts +11 -11
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ One command to create a fresh WebdriverIO project or add WebdriverIO to an exist
|
|
|
10
10
|
|
|
11
11
|
`create-wdio` works on macOS, Windows, and Linux.<br>
|
|
12
12
|
If something doesn’t work, please [file an issue](https://github.com/webdriverio/create-wdio/issues/new).<br>
|
|
13
|
-
If you have questions or need help, please ask in our [
|
|
13
|
+
If you have questions or need help, please ask in our [Discord Support channel](https://discord.webdriver.io).
|
|
14
14
|
|
|
15
15
|
<p align="center">
|
|
16
16
|
<img src="https://raw.githubusercontent.com/webdriverio/wdio/main/.github/assets/demo.gif" alt="Example" />
|
|
@@ -34,7 +34,7 @@ _[`npx`](https://medium.com/@maybekatz/introducing-npx-an-npm-package-runner-55f
|
|
|
34
34
|
npm init wdio@latest ./e2e
|
|
35
35
|
```
|
|
36
36
|
|
|
37
|
-
_[`npm init <initializer>`](https://docs.npmjs.com/cli/
|
|
37
|
+
_[`npm init <initializer>`](https://docs.npmjs.com/cli/v10/commands/npm-init) is available in npm 6+_
|
|
38
38
|
|
|
39
39
|
#### yarn
|
|
40
40
|
|
package/build/index.js
CHANGED
|
@@ -21,7 +21,7 @@ export async function run(operation = createWebdriverIO) {
|
|
|
21
21
|
/**
|
|
22
22
|
* ensure right Node.js version is used
|
|
23
23
|
*/
|
|
24
|
-
const unsupportedNodeVersion = !semver.satisfies(process.version, '>=
|
|
24
|
+
const unsupportedNodeVersion = !semver.satisfies(process.version, '>=18.18.0');
|
|
25
25
|
if (unsupportedNodeVersion) {
|
|
26
26
|
console.log(chalk.yellow(UNSUPPORTED_NODE_VERSION));
|
|
27
27
|
return;
|
|
@@ -86,7 +86,7 @@ async function isCLIInstalled(path) {
|
|
|
86
86
|
resolve('@wdio/cli', pathToFileURL(path).href);
|
|
87
87
|
return true;
|
|
88
88
|
}
|
|
89
|
-
catch
|
|
89
|
+
catch {
|
|
90
90
|
// check of the cli is installed globally
|
|
91
91
|
// wrap in try/catch as it can fail on Windows
|
|
92
92
|
try {
|
|
@@ -98,7 +98,7 @@ async function isCLIInstalled(path) {
|
|
|
98
98
|
return true;
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
|
-
catch
|
|
101
|
+
catch {
|
|
102
102
|
return false;
|
|
103
103
|
}
|
|
104
104
|
return false;
|
package/build/utils.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-wdio",
|
|
3
|
-
"version": "8.4.
|
|
3
|
+
"version": "8.4.9",
|
|
4
4
|
"description": "Install and setup a WebdriverIO project with all its dependencies in a single run",
|
|
5
5
|
"author": "Christian Bromann <mail@bromann.dev>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -34,29 +34,30 @@
|
|
|
34
34
|
"release:major": "npm run release -- major",
|
|
35
35
|
"test": "run-s build test:*",
|
|
36
36
|
"test:eslint": "eslint -c ./.eslintrc.cjs ./src/**/*.ts ./tests/**/*.ts",
|
|
37
|
-
"test:unit": "vitest
|
|
38
|
-
"watch": "npm run compile -- --watch"
|
|
37
|
+
"test:unit": "vitest run",
|
|
38
|
+
"watch": "npm run compile -- --watch",
|
|
39
|
+
"watch:test": "vitest watch"
|
|
39
40
|
},
|
|
40
41
|
"devDependencies": {
|
|
41
42
|
"@types/cross-spawn": "^6.0.6",
|
|
42
|
-
"@types/node": "^
|
|
43
|
+
"@types/node": "^22.0.0",
|
|
43
44
|
"@types/semver": "^7.5.8",
|
|
44
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
45
|
-
"@typescript-eslint/parser": "^
|
|
46
|
-
"@vitest/coverage-v8": "^
|
|
45
|
+
"@typescript-eslint/eslint-plugin": "^8.1.0",
|
|
46
|
+
"@typescript-eslint/parser": "^8.1.0",
|
|
47
|
+
"@vitest/coverage-v8": "^2.0.5",
|
|
47
48
|
"eslint": "^8.57.0",
|
|
48
49
|
"eslint-plugin-import": "^2.29.1",
|
|
49
|
-
"eslint-plugin-unicorn": "^
|
|
50
|
+
"eslint-plugin-unicorn": "^56.0.0",
|
|
50
51
|
"npm-run-all": "^4.1.5",
|
|
51
|
-
"release-it": "^17.
|
|
52
|
-
"typescript": "^5.4
|
|
53
|
-
"vitest": "^
|
|
52
|
+
"release-it": "^17.6.0",
|
|
53
|
+
"typescript": "^5.5.4",
|
|
54
|
+
"vitest": "^2.0.5"
|
|
54
55
|
},
|
|
55
56
|
"dependencies": {
|
|
56
57
|
"chalk": "^5.3.0",
|
|
57
|
-
"commander": "^12.
|
|
58
|
+
"commander": "^12.1.0",
|
|
58
59
|
"cross-spawn": "^7.0.3",
|
|
59
|
-
"import-meta-resolve": "^4.
|
|
60
|
-
"semver": "^7.6.
|
|
60
|
+
"import-meta-resolve": "^4.1.0",
|
|
61
|
+
"semver": "^7.6.3"
|
|
61
62
|
}
|
|
62
63
|
}
|
package/vitest.config.ts
CHANGED
|
@@ -7,17 +7,17 @@ export default defineConfig({
|
|
|
7
7
|
/**
|
|
8
8
|
* not to ESM ported packages
|
|
9
9
|
*/
|
|
10
|
-
exclude: [
|
|
11
|
-
'build', '.idea', '.git', '.cache',
|
|
12
|
-
'**/node_modules/**', '__mocks__'
|
|
13
|
-
],
|
|
10
|
+
exclude: ['build', '.idea', '.git', '.cache', '**/node_modules/**', '__mocks__'],
|
|
14
11
|
coverage: {
|
|
15
12
|
enabled: true,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
13
|
+
include: ['src/**/*.ts'],
|
|
14
|
+
exclude: ['src/types.ts'],
|
|
15
|
+
thresholds: {
|
|
16
|
+
lines: 96,
|
|
17
|
+
functions: 80,
|
|
18
|
+
branches: 70,
|
|
19
|
+
statements: 96,
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
23
|
})
|