create-vue 3.21.2 → 3.22.1

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.
Files changed (42) hide show
  1. package/LICENSE +24 -24
  2. package/bundle.js +459 -1296
  3. package/locales/en-US.json +1 -6
  4. package/locales/fr-FR.json +1 -6
  5. package/locales/tr-TR.json +1 -6
  6. package/locales/zh-Hans.json +1 -6
  7. package/locales/zh-Hant.json +1 -6
  8. package/package.json +9 -9
  9. package/template/base/package.json +2 -2
  10. package/template/config/cypress/package.json +1 -1
  11. package/template/config/cypress-ct/package.json +2 -2
  12. package/template/config/jsx/package.json +1 -1
  13. package/template/config/pinia/package.json +1 -1
  14. package/template/config/router/package.json +1 -1
  15. package/template/config/typescript/package.json +1 -1
  16. package/template/config/vitest/package.json +1 -1
  17. package/template/formatting/oxfmt/package.json +1 -1
  18. package/template/linting/base/package.json +1 -1
  19. package/template/linting/core/js/package.json +2 -2
  20. package/template/linting/core/ts/package.json +1 -1
  21. package/template/linting/oxlint/package.json +2 -2
  22. package/template/linting/playwright/package.json +1 -1
  23. package/template/linting/vitest/package.json +1 -1
  24. package/template/tsconfig/base/package.json +1 -1
  25. package/template/tsconfig/base/tsconfig.app.json +8 -2
  26. package/template/tsconfig/base/tsconfig.node.json +13 -5
  27. package/template/tsconfig/cypress-ct/tsconfig.cypress-ct.json +2 -0
  28. package/template/tsconfig/vitest/tsconfig.vitest.json +11 -3
  29. package/template/bare/nightwatch-ct/src/__tests__/App.spec.js +0 -14
  30. package/template/config/nightwatch/.vscode/extensions.json +0 -3
  31. package/template/config/nightwatch/_gitignore +0 -2
  32. package/template/config/nightwatch/nightwatch/nightwatch.d.ts +0 -13
  33. package/template/config/nightwatch/nightwatch.conf.cjs +0 -153
  34. package/template/config/nightwatch/package.json +0 -15
  35. package/template/config/nightwatch/tests/e2e/example.js +0 -11
  36. package/template/config/nightwatch/vite.config.js.data.mjs +0 -12
  37. package/template/config/nightwatch-ct/nightwatch/index.html +0 -16
  38. package/template/config/nightwatch-ct/package.json +0 -11
  39. package/template/config/nightwatch-ct/src/components/__tests__/HelloWorld.spec.js +0 -16
  40. package/template/config/nightwatch-ct/vite.config.js.data.mjs +0 -16
  41. package/template/tsconfig/nightwatch/nightwatch/tsconfig.json +0 -19
  42. package/template/tsconfig/nightwatch-ct/tsconfig.app.json +0 -12
@@ -19,7 +19,7 @@
19
19
  "hint": "(↑/↓ to navigate, space to select, a to toggle all, enter to confirm)"
20
20
  },
21
21
  "needsTypeScript": {
22
- "message": "TypeScript"
22
+ "message": "Use TypeScript?"
23
23
  },
24
24
  "needsJsx": {
25
25
  "message": "JSX Support"
@@ -51,11 +51,6 @@
51
51
  "title": "Cypress",
52
52
  "desc": "https://www.cypress.io/",
53
53
  "hintOnComponentTesting": "also supports unit testing with Cypress Component Testing - https://www.cypress.io/"
54
- },
55
- "nightwatch": {
56
- "title": "Nightwatch",
57
- "desc": "https://nightwatchjs.org/",
58
- "hintOnComponentTesting": "also supports unit testing with Nightwatch Component Testing - https://nightwatchjs.org/"
59
54
  }
60
55
  }
61
56
  },
@@ -19,7 +19,7 @@
19
19
  "hint": "(↑/↓ pour naviguer, espace pour sélectionner, a pour tout sélectionner, entrée pour confirmer)"
20
20
  },
21
21
  "needsTypeScript": {
22
- "message": "TypeScript"
22
+ "message": "Utiliser TypeScript\u00a0?"
23
23
  },
24
24
  "needsJsx": {
25
25
  "message": "Support de JSX"
@@ -51,11 +51,6 @@
51
51
  "title": "Cypress",
52
52
  "desc": "https://www.cypress.io/",
53
53
  "hintOnComponentTesting": "prend également en charge les tests unitaires avec Cypress Component Testing - https://www.cypress.io/"
54
- },
55
- "nightwatch": {
56
- "title": "Nightwatch",
57
- "desc": "https://nightwatchjs.org/",
58
- "hintOnComponentTesting": "prend également en charge les tests unitaires avec Nightwatch Component Testing - https://nightwatchjs.org/"
59
54
  }
60
55
  }
61
56
  },
@@ -19,7 +19,7 @@
19
19
  "hint": "(↑/↓ gezinmek için, boşluk seçmek için, a tümünü seçmek için, enter onaylamak için)"
20
20
  },
21
21
  "needsTypeScript": {
22
- "message": "TypeScript"
22
+ "message": "TypeScript kullanılsın mı?"
23
23
  },
24
24
  "needsJsx": {
25
25
  "message": "JSX Desteği"
@@ -51,11 +51,6 @@
51
51
  "title": "Cypress",
52
52
  "desc": "https://www.cypress.io/",
53
53
  "hintOnComponentTesting": "ayrıca Cypress Bileşen Testi ile birim testini de destekler - https://www.cypress.io/"
54
- },
55
- "nightwatch": {
56
- "title": "Nightwatch",
57
- "desc": "https://nightwatchjs.org/",
58
- "hintOnComponentTesting": "ayrıca Nightwatch Bileşen Testi ile birim testini de destekler - https://nightwatchjs.org/"
59
54
  }
60
55
  }
61
56
  },
@@ -19,7 +19,7 @@
19
19
  "hint": "(↑/↓ 切换,空格选择,a 全选,回车确认)"
20
20
  },
21
21
  "needsTypeScript": {
22
- "message": "TypeScript"
22
+ "message": "是否使用 TypeScript 语法?"
23
23
  },
24
24
  "needsJsx": {
25
25
  "message": "JSX 支持"
@@ -51,11 +51,6 @@
51
51
  "title": "Cypress",
52
52
  "desc": "https://www.cypress.io/",
53
53
  "hintOnComponentTesting": "同时支持基于 Cypress Component Testing 的单元测试 - https://www.cypress.io/"
54
- },
55
- "nightwatch": {
56
- "title": "Nightwatch",
57
- "desc": "https://nightwatchjs.org/",
58
- "hintOnComponentTesting": "同时支持基于 Nightwatch Component Testing 的单元测试 - https://nightwatchjs.org/"
59
54
  }
60
55
  }
61
56
  },
@@ -19,7 +19,7 @@
19
19
  "hint": "(↑/↓ 切換,空格選擇,a 全選,enter 確認)"
20
20
  },
21
21
  "needsTypeScript": {
22
- "message": "TypeScript"
22
+ "message": "是否使用 TypeScript"
23
23
  },
24
24
  "needsJsx": {
25
25
  "message": "JSX 支援"
@@ -51,11 +51,6 @@
51
51
  "title": "Cypress",
52
52
  "desc": "https://www.cypress.io/",
53
53
  "hintOnComponentTesting": "同時支援基於 Cypress Component Testing 的單元測試 - https://www.cypress.io/"
54
- },
55
- "nightwatch": {
56
- "title": "Nightwatch",
57
- "desc": "https://nightwatchjs.org/",
58
- "hintOnComponentTesting": "同時支援基於 Nightwatch Component Testing 的單元測試 - https://nightwatchjs.org/"
59
54
  }
60
55
  }
61
56
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-vue",
3
- "version": "3.21.2",
3
+ "version": "3.22.1",
4
4
  "description": "🛠️ The recommended way to start a Vite-powered Vue project",
5
5
  "keywords": [],
6
6
  "homepage": "https://github.com/vuejs/create-vue#readme",
@@ -28,19 +28,19 @@
28
28
  "provenance": true
29
29
  },
30
30
  "devDependencies": {
31
- "@clack/prompts": "^1.0.1",
31
+ "@clack/prompts": "^1.1.0",
32
32
  "@tsconfig/node24": "^24.0.4",
33
33
  "@types/eslint": "^9.6.1",
34
- "@types/node": "^24.10.13",
34
+ "@types/node": "^24.12.0",
35
35
  "@types/prompts": "^2.4.9",
36
- "@vue/tsconfig": "^0.8.1",
36
+ "@vue/tsconfig": "^0.9.0",
37
37
  "ejs": "^3.1.10",
38
38
  "husky": "^9.1.7",
39
- "lint-staged": "^16.2.7",
40
- "oxfmt": "^0.35.0",
41
- "oxlint": "~1.50.0",
39
+ "lint-staged": "^16.3.3",
40
+ "oxfmt": "^0.37.0",
41
+ "oxlint": "~1.51.0",
42
42
  "picocolors": "^1.1.1",
43
- "rolldown": "1.0.0-rc.5",
43
+ "rolldown": "1.0.0-rc.8",
44
44
  "rollup-plugin-license": "^3.7.0",
45
45
  "vitest": "^4.0.18",
46
46
  "zx": "^8.8.5"
@@ -57,7 +57,7 @@
57
57
  "scripts": {
58
58
  "format": "oxfmt",
59
59
  "format-check": "oxfmt --check",
60
- "lint": "oxlint . --fix",
60
+ "lint": "oxlint . --fix --ignore-pattern playground",
61
61
  "build": "rolldown -c rolldown.config.ts",
62
62
  "snapshot": "zx ./scripts/snapshot.mjs",
63
63
  "pretest": "pnpm run build && pnpm run snapshot",
@@ -7,12 +7,12 @@
7
7
  "preview": "vite preview"
8
8
  },
9
9
  "dependencies": {
10
- "vue": "^3.5.29"
10
+ "vue": "^3.5.30"
11
11
  },
12
12
  "devDependencies": {
13
13
  "@vitejs/plugin-vue": "^6.0.4",
14
14
  "vite": "^7.3.1",
15
- "vite-plugin-vue-devtools": "^8.0.6"
15
+ "vite-plugin-vue-devtools": "^8.0.7"
16
16
  },
17
17
  "engines": {
18
18
  "node": "^20.19.0 || >=22.12.0"
@@ -5,7 +5,7 @@
5
5
  "test:e2e:dev": "start-server-and-test 'vite dev --port 4173' http://localhost:4173 'cypress open --e2e'"
6
6
  },
7
7
  "devDependencies": {
8
- "cypress": "^15.10.0",
8
+ "cypress": "^15.11.0",
9
9
  "start-server-and-test": "^2.1.5"
10
10
  }
11
11
  }
@@ -4,9 +4,9 @@
4
4
  "test:unit:dev": "cypress open --component"
5
5
  },
6
6
  "dependencies": {
7
- "vue": "^3.5.29"
7
+ "vue": "^3.5.30"
8
8
  },
9
9
  "devDependencies": {
10
- "cypress": "^15.10.0"
10
+ "cypress": "^15.11.0"
11
11
  }
12
12
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "dependencies": {
3
- "vue": "^3.5.29"
3
+ "vue": "^3.5.30"
4
4
  },
5
5
  "devDependencies": {
6
6
  "@vitejs/plugin-vue-jsx": "^5.1.4",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "dependencies": {
3
3
  "pinia": "^3.0.4",
4
- "vue": "^3.5.29"
4
+ "vue": "^3.5.30"
5
5
  }
6
6
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "dependencies": {
3
- "vue": "^3.5.29",
3
+ "vue": "^3.5.30",
4
4
  "vue-router": "^5.0.3"
5
5
  }
6
6
  }
@@ -5,7 +5,7 @@
5
5
  "type-check": "vue-tsc --build"
6
6
  },
7
7
  "devDependencies": {
8
- "@types/node": "^24.10.13",
8
+ "@types/node": "^24.12.0",
9
9
  "npm-run-all2": "^8.0.4",
10
10
  "typescript": "~5.9.3",
11
11
  "vue-tsc": "^3.2.5"
@@ -3,7 +3,7 @@
3
3
  "test:unit": "vitest"
4
4
  },
5
5
  "dependencies": {
6
- "vue": "^3.5.29"
6
+ "vue": "^3.5.30"
7
7
  },
8
8
  "devDependencies": {
9
9
  "@vue/test-utils": "^2.4.6",
@@ -3,6 +3,6 @@
3
3
  "format": "oxfmt src/"
4
4
  },
5
5
  "devDependencies": {
6
- "oxfmt": "^0.35.0"
6
+ "oxfmt": "^0.37.0"
7
7
  }
8
8
  }
@@ -3,7 +3,7 @@
3
3
  "lint": "eslint . --fix --cache"
4
4
  },
5
5
  "devDependencies": {
6
- "eslint": "^10.0.2",
6
+ "eslint": "^10.0.3",
7
7
  "eslint-plugin-vue": "~10.8.0"
8
8
  }
9
9
  }
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "devDependencies": {
3
3
  "@eslint/js": "^10.0.1",
4
- "eslint": "^10.0.2",
4
+ "eslint": "^10.0.3",
5
5
  "eslint-plugin-vue": "~10.8.0",
6
- "globals": "^17.3.0"
6
+ "globals": "^17.4.0"
7
7
  }
8
8
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "devDependencies": {
3
3
  "@vue/eslint-config-typescript": "^14.7.0",
4
- "eslint": "^10.0.2",
4
+ "eslint": "^10.0.3",
5
5
  "eslint-plugin-vue": "~10.8.0",
6
6
  "jiti": "^2.6.1",
7
7
  "typescript": "~5.9.3"
@@ -5,8 +5,8 @@
5
5
  "lint": "run-s lint:*"
6
6
  },
7
7
  "devDependencies": {
8
- "eslint-plugin-oxlint": "~1.50.0",
8
+ "eslint-plugin-oxlint": "~1.51.0",
9
9
  "npm-run-all2": "^8.0.4",
10
- "oxlint": "~1.50.0"
10
+ "oxlint": "~1.51.0"
11
11
  }
12
12
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "devDependencies": {
3
- "eslint-plugin-playwright": "^2.7.1"
3
+ "eslint-plugin-playwright": "^2.9.0"
4
4
  }
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "devDependencies": {
3
- "@vitest/eslint-plugin": "^1.6.9"
3
+ "@vitest/eslint-plugin": "^1.6.10"
4
4
  }
5
5
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "devDependencies": {
3
3
  "@tsconfig/node24": "^24.0.4",
4
- "@vue/tsconfig": "^0.8.1"
4
+ "@vue/tsconfig": "^0.9.0"
5
5
  }
6
6
  }
@@ -3,10 +3,16 @@
3
3
  "include": ["env.d.ts", "src/**/*", "src/**/*.vue"],
4
4
  "exclude": ["src/**/__tests__/*"],
5
5
  "compilerOptions": {
6
- "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
6
+ // Extra safety for array and object lookups, but may have false positives.
7
+ "noUncheckedIndexedAccess": true,
7
8
 
9
+ // Path mapping for cleaner imports.
8
10
  "paths": {
9
11
  "@/*": ["./src/*"]
10
- }
12
+ },
13
+
14
+ // `vue-tsc --build` produces a .tsbuildinfo file for incremental type-checking.
15
+ // Specified here to keep it out of the root directory.
16
+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo"
11
17
  }
12
18
  }
@@ -1,19 +1,27 @@
1
+ // TSConfig for modules that run in Node.js environment via either transpilation or type-stripping.
1
2
  {
2
3
  "extends": "@tsconfig/node24/tsconfig.json",
3
4
  "include": [
4
5
  "vite.config.*",
5
6
  "vitest.config.*",
6
7
  "cypress.config.*",
7
- "nightwatch.conf.*",
8
8
  "playwright.config.*",
9
9
  "eslint.config.*"
10
10
  ],
11
11
  "compilerOptions": {
12
+ // Most tools use transpilation instead of Node.js's native type-stripping.
13
+ // Bundler mode provides a smoother developer experience.
14
+ "module": "preserve",
15
+ "moduleResolution": "bundler",
16
+
17
+ // Include Node.js types and avoid accidentally including other `@types/*` packages.
18
+ "types": ["node"],
19
+
20
+ // Disable emitting output during `vue-tsc --build`, which is used for type-checking only.
12
21
  "noEmit": true,
13
- "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
14
22
 
15
- "module": "ESNext",
16
- "moduleResolution": "Bundler",
17
- "types": ["node"]
23
+ // `vue-tsc --build` produces a .tsbuildinfo file for incremental type-checking.
24
+ // Specified here to keep it out of the root directory.
25
+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo"
18
26
  }
19
27
  }
@@ -9,6 +9,8 @@
9
9
  ],
10
10
  "exclude": [],
11
11
  "compilerOptions": {
12
+ // `vue-tsc --build` produces a .tsbuildinfo file for incremental type-checking.
13
+ // Specified here to keep it out of the root directory.
12
14
  "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.cypress-ct.tsbuildinfo"
13
15
  }
14
16
  }
@@ -1,11 +1,19 @@
1
1
  {
2
2
  "extends": "./tsconfig.app.json",
3
+
4
+ // Override to include only test files and clear exclusions.
5
+ // Application code imported in tests is automatically included via module resolution.
3
6
  "include": ["src/**/__tests__/*", "env.d.ts"],
4
7
  "exclude": [],
5
- "compilerOptions": {
6
- "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.vitest.tsbuildinfo",
7
8
 
9
+ "compilerOptions": {
10
+ // Vitest runs in a different environment than the application code.
11
+ // Adjust lib and types accordingly.
8
12
  "lib": [],
9
- "types": ["node", "jsdom"]
13
+ "types": ["node", "jsdom"],
14
+
15
+ // `vue-tsc --build` produces a .tsbuildinfo file for incremental type-checking.
16
+ // Specified here to keep it out of the root directory.
17
+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.vitest.tsbuildinfo"
10
18
  }
11
19
  }
@@ -1,14 +0,0 @@
1
- describe('App', function () {
2
- before((browser) => {
3
- browser.init()
4
- })
5
-
6
- it('mounts and renders properly', async function () {
7
- const appComponent = await browser.mountComponent('/src/App.vue')
8
-
9
- browser.expect.element(appComponent).to.be.present
10
- browser.expect.element('h1').text.to.contain('You did it!')
11
- })
12
-
13
- after((browser) => browser.end())
14
- })
@@ -1,3 +0,0 @@
1
- {
2
- "recommendations": ["browserstackcom.nightwatch"]
3
- }
@@ -1,2 +0,0 @@
1
- logs/
2
- tests_output/
@@ -1,13 +0,0 @@
1
- import { NightwatchCustomAssertions, NightwatchCustomCommands } from 'nightwatch'
2
-
3
- declare module 'nightwatch' {
4
- interface NightwatchCustomAssertions {
5
- // Add your custom assertions' types here
6
- // elementHasCount: (selector: string, count: number) => NightwatchBrowser
7
- }
8
-
9
- interface NightwatchCustomCommands {
10
- // Add your custom commands' types here
11
- // strictClick: (selector: string) => NightwatchBrowser
12
- }
13
- }
@@ -1,153 +0,0 @@
1
- //
2
- // Refer to the online docs for more details:
3
- // https://nightwatchjs.org/guide/configuration/nightwatch-configuration-file.html
4
- //
5
- // _ _ _ _ _ _ _
6
- // | \ | |(_) | | | | | | | |
7
- // | \| | _ __ _ | |__ | |_ __ __ __ _ | |_ ___ | |__
8
- // | . ` || | / _` || '_ \ | __|\ \ /\ / / / _` || __| / __|| '_ \
9
- // | |\ || || (_| || | | || |_ \ V V / | (_| || |_ | (__ | | | |
10
- // \_| \_/|_| \__, ||_| |_| \__| \_/\_/ \__,_| \__| \___||_| |_|
11
- // __/ |
12
- // |___/
13
- //
14
-
15
- module.exports = {
16
- // An array of folders (excluding subfolders) where your tests are located;
17
- // if this is not specified, the test source must be passed as the second argument to the test runner.
18
- src_folders: [],
19
-
20
- // See https://nightwatchjs.org/guide/concepts/page-object-model.html
21
- page_objects_path: [],
22
-
23
- // See https://nightwatchjs.org/guide/extending-nightwatch/adding-custom-commands.html
24
- custom_commands_path: [],
25
-
26
- // See https://nightwatchjs.org/guide/extending-nightwatch/adding-custom-assertions.html
27
- custom_assertions_path: [],
28
-
29
- // See https://nightwatchjs.org/guide/extending-nightwatch/adding-plugins.html
30
- plugins: ['@nightwatch/vue'],
31
-
32
- // See https://nightwatchjs.org/guide/concepts/test-globals.html#external-test-globals
33
- globals_path: '',
34
-
35
- vite_dev_server: {
36
- start_vite: true,
37
- port: process.env.CI ? 4173 : 5173,
38
- },
39
-
40
- webdriver: {},
41
-
42
- test_workers: {
43
- enabled: true,
44
- workers: 'auto',
45
- },
46
-
47
- test_settings: {
48
- default: {
49
- disable_error_log: false,
50
- launch_url: `http://localhost:${process.env.CI ? '4173' : '5173'}`,
51
-
52
- screenshots: {
53
- enabled: false,
54
- path: 'screens',
55
- on_failure: true,
56
- },
57
-
58
- desiredCapabilities: {
59
- browserName: 'firefox',
60
- },
61
-
62
- webdriver: {
63
- start_process: true,
64
- server_path: '',
65
- },
66
- },
67
-
68
- safari: {
69
- desiredCapabilities: {
70
- browserName: 'safari',
71
- alwaysMatch: {
72
- acceptInsecureCerts: false,
73
- },
74
- },
75
- webdriver: {
76
- start_process: true,
77
- server_path: '',
78
- },
79
- },
80
-
81
- firefox: {
82
- desiredCapabilities: {
83
- browserName: 'firefox',
84
- alwaysMatch: {
85
- acceptInsecureCerts: true,
86
- 'moz:firefoxOptions': {
87
- args: [
88
- // '-headless',
89
- // '-verbose'
90
- ],
91
- },
92
- },
93
- },
94
- webdriver: {
95
- start_process: true,
96
- server_path: '',
97
- cli_args: [
98
- // very verbose geckodriver logs
99
- // '-vv'
100
- ],
101
- },
102
- },
103
-
104
- chrome: {
105
- desiredCapabilities: {
106
- browserName: 'chrome',
107
- 'goog:chromeOptions': {
108
- // More info on Chromedriver: https://sites.google.com/a/chromium.org/chromedriver/
109
- //
110
- // w3c:false tells Chromedriver to run using the legacy JSONWire protocol (not required in Chrome 78)
111
- w3c: true,
112
- args: [
113
- //'--no-sandbox',
114
- //'--ignore-certificate-errors',
115
- //'--allow-insecure-localhost',
116
- //'--headless'
117
- ],
118
- },
119
- },
120
-
121
- webdriver: {
122
- start_process: true,
123
- server_path: '',
124
- cli_args: [
125
- // --verbose
126
- ],
127
- },
128
- },
129
-
130
- edge: {
131
- desiredCapabilities: {
132
- browserName: 'MicrosoftEdge',
133
- 'ms:edgeOptions': {
134
- w3c: true,
135
- // More info on EdgeDriver: https://docs.microsoft.com/en-us/microsoft-edge/webdriver-chromium/capabilities-edge-options
136
- args: [
137
- //'--headless'
138
- ],
139
- },
140
- },
141
-
142
- webdriver: {
143
- start_process: true,
144
- // Download msedgedriver from https://docs.microsoft.com/en-us/microsoft-edge/webdriver-chromium/
145
- // and set the location below:
146
- server_path: '',
147
- cli_args: [
148
- // --verbose
149
- ],
150
- },
151
- },
152
- },
153
- }
@@ -1,15 +0,0 @@
1
- {
2
- "scripts": {
3
- "test:e2e": "nightwatch tests/e2e/*"
4
- },
5
- "devDependencies": {
6
- "@nightwatch/vue": "^3.1.2",
7
- "@vitejs/plugin-vue": "^6.0.4",
8
- "chromedriver": "^145.0.6",
9
- "geckodriver": "^6.1.0",
10
- "nightwatch": "^3.15.0",
11
- "ts-node": "^10.9.2",
12
- "vite": "^7.3.1",
13
- "vite-plugin-nightwatch": "^0.4.6"
14
- }
15
- }
@@ -1,11 +0,0 @@
1
- describe('My First Test', function () {
2
- before((browser) => {
3
- browser.init()
4
- })
5
-
6
- it('visits the app root url', function () {
7
- browser.assert.textContains('h1', 'You did it!')
8
- })
9
-
10
- after((browser) => browser.end())
11
- })
@@ -1,12 +0,0 @@
1
- export default function getData({ oldData }) {
2
- const nightwatchPlugin = {
3
- id: 'nightwatch',
4
- importer: "import nightwatchPlugin from 'vite-plugin-nightwatch'",
5
- initializer: 'nightwatchPlugin()',
6
- }
7
-
8
- return {
9
- ...oldData,
10
- plugins: [...oldData.plugins, nightwatchPlugin],
11
- }
12
- }
@@ -1,16 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
-
4
- <head>
5
- <meta charset="UTF-8" />
6
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
- <!-- Loading the main css file, so every component has all the css applied -->
8
- <link rel="stylesheet" href="../src/assets/main.css">
9
- <title>Vue Renderer</title>
10
- </head>
11
-
12
- <body>
13
- <div id="app"></div>
14
- </body>
15
-
16
- </html>