create-vue 3.7.5 → 3.9.0
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 +1 -1
- package/locales/en-US.json +64 -0
- package/locales/fr-FR.json +64 -0
- package/locales/tr-TR.json +64 -0
- package/locales/zh-CN.json +64 -0
- package/outfile.cjs +172 -121
- package/package.json +11 -8
- package/template/base/_gitignore +2 -0
- package/template/base/jsconfig.json +8 -0
- package/template/base/node_modules/.bin/vite +2 -2
- package/template/base/package.json +4 -3
- package/template/base/src/assets/main.css +1 -1
- package/template/config/cypress/cypress.config.js +2 -2
- package/template/config/cypress/node_modules/.bin/cypress +2 -2
- package/template/config/cypress/node_modules/.bin/server-test +2 -2
- package/template/config/cypress/node_modules/.bin/start-server-and-test +2 -2
- package/template/config/cypress/node_modules/.bin/start-test +2 -2
- package/template/config/cypress/package.json +2 -2
- package/template/config/cypress-ct/cypress.config.js +2 -2
- package/template/config/cypress-ct/node_modules/.bin/cypress +2 -2
- package/template/config/cypress-ct/package.json +2 -2
- package/template/config/jsx/node_modules/.bin/browserslist +4 -4
- package/template/config/jsx/node_modules/.bin/vite +2 -2
- package/template/config/jsx/package.json +3 -3
- package/template/config/nightwatch/nightwatch.conf.js +3 -2
- package/template/config/nightwatch/node_modules/.bin/browserslist +4 -4
- package/template/config/nightwatch/node_modules/.bin/chromedriver +2 -2
- package/template/config/nightwatch/node_modules/.bin/nightwatch +2 -2
- package/template/config/nightwatch/node_modules/.bin/ts-node +2 -2
- package/template/config/nightwatch/node_modules/.bin/ts-node-cwd +2 -2
- package/template/config/nightwatch/node_modules/.bin/ts-node-esm +2 -2
- package/template/config/nightwatch/node_modules/.bin/ts-node-script +2 -2
- package/template/config/nightwatch/node_modules/.bin/ts-node-transpile-only +2 -2
- package/template/config/nightwatch/node_modules/.bin/ts-script +2 -2
- package/template/config/nightwatch/node_modules/.bin/tsc +4 -4
- package/template/config/nightwatch/node_modules/.bin/tsserver +4 -4
- package/template/config/nightwatch/node_modules/.bin/vite +4 -4
- package/template/config/nightwatch/package.json +8 -7
- package/template/config/nightwatch/tests/e2e/example.js +1 -4
- package/template/config/nightwatch-ct/package.json +5 -2
- package/template/config/pinia/package.json +2 -2
- package/template/config/playwright/e2e/vue.spec.js +1 -1
- package/template/config/playwright/node_modules/.bin/playwright +2 -2
- package/template/config/playwright/package.json +1 -1
- package/template/config/playwright/playwright.config.js +5 -8
- package/template/config/router/package.json +2 -2
- package/template/config/typescript/node_modules/.bin/npm-run-all +2 -2
- package/template/config/typescript/node_modules/.bin/npm-run-all2 +17 -0
- package/template/config/typescript/node_modules/.bin/run-p +2 -2
- package/template/config/typescript/node_modules/.bin/run-s +2 -2
- package/template/config/typescript/node_modules/.bin/vue-tsc +2 -2
- package/template/config/typescript/package.json +4 -4
- package/template/config/vitest/node_modules/.bin/vitest +2 -2
- package/template/config/vitest/package.json +4 -4
- package/template/tsconfig/base/tsconfig.app.json +1 -0
- package/template/tsconfig/base/tsconfig.node.json +1 -0
- package/template/tsconfig/nightwatch/nightwatch/tsconfig.json +3 -1
- package/template/tsconfig/nightwatch-ct/tsconfig.app.json +1 -0
- package/template/tsconfig/vitest/package.json +1 -4
- package/template/config/cypress/cypress.config.ts +0 -8
- package/template/config/cypress-ct/cypress.config.ts +0 -15
- package/template/config/nightwatch/nightwatch/globals.js +0 -23
- package/template/config/nightwatch/node_modules/.bin/wait-on +0 -17
- package/template/config/playwright/playwright.config.ts +0 -112
- package/template/tsconfig/base/tsconfig.json +0 -11
- package/template/tsconfig/cypress-ct/package.json +0 -5
- package/template/tsconfig/cypress-ct/tsconfig.json +0 -14
- package/template/tsconfig/nightwatch/tsconfig.json +0 -17
- package/template/tsconfig/nightwatch-ct/tsconfig.json +0 -14
- package/template/tsconfig/vitest/tsconfig.json +0 -14
|
@@ -4,10 +4,7 @@ describe('My First Test', function () {
|
|
|
4
4
|
})
|
|
5
5
|
|
|
6
6
|
it('visits the app root url', function () {
|
|
7
|
-
browser.assert
|
|
8
|
-
.textContains('.green', 'You did it!')
|
|
9
|
-
.assert.elementHasCount('.wrapper nav a', 2)
|
|
10
|
-
.strictClick('.wrapper nav a:last-child')
|
|
7
|
+
browser.assert.textContains('.green', 'You did it!')
|
|
11
8
|
})
|
|
12
9
|
|
|
13
10
|
after((browser) => browser.end())
|
|
@@ -6,9 +6,9 @@ case `uname` in
|
|
|
6
6
|
esac
|
|
7
7
|
|
|
8
8
|
if [ -z "$NODE_PATH" ]; then
|
|
9
|
-
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/@playwright+test@1.
|
|
9
|
+
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/@playwright+test@1.40.1/node_modules/@playwright/test/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/@playwright+test@1.40.1/node_modules/@playwright/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/@playwright+test@1.40.1/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/node_modules"
|
|
10
10
|
else
|
|
11
|
-
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/@playwright+test@1.
|
|
11
|
+
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/@playwright+test@1.40.1/node_modules/@playwright/test/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/@playwright+test@1.40.1/node_modules/@playwright/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/@playwright+test@1.40.1/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
12
|
fi
|
|
13
13
|
if [ -x "$basedir/node" ]; then
|
|
14
14
|
exec "$basedir/node" "$basedir/../@playwright/test/cli.js" "$@"
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
const { devices } = require('@playwright/test')
|
|
1
|
+
import { defineConfig, devices } from '@playwright/test'
|
|
3
2
|
|
|
4
3
|
/**
|
|
5
4
|
* Read environment variables from file.
|
|
@@ -8,10 +7,9 @@ const { devices } = require('@playwright/test')
|
|
|
8
7
|
// require('dotenv').config();
|
|
9
8
|
|
|
10
9
|
/**
|
|
11
|
-
*
|
|
12
|
-
* @type {import('@playwright/test').PlaywrightTestConfig}
|
|
10
|
+
* See https://playwright.dev/docs/test-configuration.
|
|
13
11
|
*/
|
|
14
|
-
|
|
12
|
+
export default defineConfig({
|
|
15
13
|
testDir: './e2e',
|
|
16
14
|
/* Maximum time one test can run for. */
|
|
17
15
|
timeout: 30 * 1000,
|
|
@@ -102,11 +100,10 @@ const config = {
|
|
|
102
100
|
/**
|
|
103
101
|
* Use the dev server by default for faster feedback loop.
|
|
104
102
|
* Use the preview server on CI for more realistic testing.
|
|
103
|
+
* Playwright will re-use the local server if there is already a dev-server running.
|
|
105
104
|
*/
|
|
106
105
|
command: process.env.CI ? 'vite preview --port 5173' : 'vite dev',
|
|
107
106
|
port: 5173,
|
|
108
107
|
reuseExistingServer: !process.env.CI
|
|
109
108
|
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
module.exports = config
|
|
109
|
+
})
|
|
@@ -6,9 +6,9 @@ case `uname` in
|
|
|
6
6
|
esac
|
|
7
7
|
|
|
8
8
|
if [ -z "$NODE_PATH" ]; then
|
|
9
|
-
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/npm-run-all2@6.
|
|
9
|
+
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/npm-run-all2@6.1.1/node_modules/npm-run-all2/bin/npm-run-all/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/npm-run-all2@6.1.1/node_modules/npm-run-all2/bin/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/npm-run-all2@6.1.1/node_modules/npm-run-all2/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/npm-run-all2@6.1.1/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/node_modules"
|
|
10
10
|
else
|
|
11
|
-
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/npm-run-all2@6.
|
|
11
|
+
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/npm-run-all2@6.1.1/node_modules/npm-run-all2/bin/npm-run-all/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/npm-run-all2@6.1.1/node_modules/npm-run-all2/bin/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/npm-run-all2@6.1.1/node_modules/npm-run-all2/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/npm-run-all2@6.1.1/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
12
|
fi
|
|
13
13
|
if [ -x "$basedir/node" ]; then
|
|
14
14
|
exec "$basedir/node" "$basedir/../npm-run-all2/bin/npm-run-all/index.js" "$@"
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
+
|
|
4
|
+
case `uname` in
|
|
5
|
+
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
|
6
|
+
esac
|
|
7
|
+
|
|
8
|
+
if [ -z "$NODE_PATH" ]; then
|
|
9
|
+
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/npm-run-all2@6.1.1/node_modules/npm-run-all2/bin/npm-run-all/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/npm-run-all2@6.1.1/node_modules/npm-run-all2/bin/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/npm-run-all2@6.1.1/node_modules/npm-run-all2/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/npm-run-all2@6.1.1/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/node_modules"
|
|
10
|
+
else
|
|
11
|
+
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/npm-run-all2@6.1.1/node_modules/npm-run-all2/bin/npm-run-all/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/npm-run-all2@6.1.1/node_modules/npm-run-all2/bin/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/npm-run-all2@6.1.1/node_modules/npm-run-all2/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/npm-run-all2@6.1.1/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
|
+
fi
|
|
13
|
+
if [ -x "$basedir/node" ]; then
|
|
14
|
+
exec "$basedir/node" "$basedir/../npm-run-all2/bin/npm-run-all/index.js" "$@"
|
|
15
|
+
else
|
|
16
|
+
exec node "$basedir/../npm-run-all2/bin/npm-run-all/index.js" "$@"
|
|
17
|
+
fi
|
|
@@ -6,9 +6,9 @@ case `uname` in
|
|
|
6
6
|
esac
|
|
7
7
|
|
|
8
8
|
if [ -z "$NODE_PATH" ]; then
|
|
9
|
-
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/npm-run-all2@6.
|
|
9
|
+
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/npm-run-all2@6.1.1/node_modules/npm-run-all2/bin/run-p/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/npm-run-all2@6.1.1/node_modules/npm-run-all2/bin/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/npm-run-all2@6.1.1/node_modules/npm-run-all2/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/npm-run-all2@6.1.1/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/node_modules"
|
|
10
10
|
else
|
|
11
|
-
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/npm-run-all2@6.
|
|
11
|
+
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/npm-run-all2@6.1.1/node_modules/npm-run-all2/bin/run-p/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/npm-run-all2@6.1.1/node_modules/npm-run-all2/bin/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/npm-run-all2@6.1.1/node_modules/npm-run-all2/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/npm-run-all2@6.1.1/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
12
|
fi
|
|
13
13
|
if [ -x "$basedir/node" ]; then
|
|
14
14
|
exec "$basedir/node" "$basedir/../npm-run-all2/bin/run-p/index.js" "$@"
|
|
@@ -6,9 +6,9 @@ case `uname` in
|
|
|
6
6
|
esac
|
|
7
7
|
|
|
8
8
|
if [ -z "$NODE_PATH" ]; then
|
|
9
|
-
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/npm-run-all2@6.
|
|
9
|
+
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/npm-run-all2@6.1.1/node_modules/npm-run-all2/bin/run-s/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/npm-run-all2@6.1.1/node_modules/npm-run-all2/bin/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/npm-run-all2@6.1.1/node_modules/npm-run-all2/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/npm-run-all2@6.1.1/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/node_modules"
|
|
10
10
|
else
|
|
11
|
-
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/npm-run-all2@6.
|
|
11
|
+
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/npm-run-all2@6.1.1/node_modules/npm-run-all2/bin/run-s/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/npm-run-all2@6.1.1/node_modules/npm-run-all2/bin/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/npm-run-all2@6.1.1/node_modules/npm-run-all2/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/npm-run-all2@6.1.1/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
12
|
fi
|
|
13
13
|
if [ -x "$basedir/node" ]; then
|
|
14
14
|
exec "$basedir/node" "$basedir/../npm-run-all2/bin/run-s/index.js" "$@"
|
|
@@ -6,9 +6,9 @@ case `uname` in
|
|
|
6
6
|
esac
|
|
7
7
|
|
|
8
8
|
if [ -z "$NODE_PATH" ]; then
|
|
9
|
-
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/vue-tsc@1.8.
|
|
9
|
+
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/vue-tsc@1.8.25_typescript@5.2.2/node_modules/vue-tsc/bin/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/vue-tsc@1.8.25_typescript@5.2.2/node_modules/vue-tsc/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/vue-tsc@1.8.25_typescript@5.2.2/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/node_modules"
|
|
10
10
|
else
|
|
11
|
-
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/vue-tsc@1.8.
|
|
11
|
+
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/vue-tsc@1.8.25_typescript@5.2.2/node_modules/vue-tsc/bin/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/vue-tsc@1.8.25_typescript@5.2.2/node_modules/vue-tsc/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/vue-tsc@1.8.25_typescript@5.2.2/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
12
|
fi
|
|
13
13
|
if [ -x "$basedir/node" ]; then
|
|
14
14
|
exec "$basedir/node" "$basedir/../vue-tsc/bin/vue-tsc.js" "$@"
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
"scripts": {
|
|
3
3
|
"build": "run-p type-check \"build-only {@}\" --",
|
|
4
4
|
"build-only": "vite build",
|
|
5
|
-
"type-check": "vue-tsc --
|
|
5
|
+
"type-check": "vue-tsc --build --force"
|
|
6
6
|
},
|
|
7
7
|
"devDependencies": {
|
|
8
|
-
"@types/node": "^18.
|
|
9
|
-
"npm-run-all2": "^6.
|
|
8
|
+
"@types/node": "^18.19.2",
|
|
9
|
+
"npm-run-all2": "^6.1.1",
|
|
10
10
|
"typescript": "~5.2.0",
|
|
11
|
-
"vue-tsc": "^1.8.
|
|
11
|
+
"vue-tsc": "^1.8.25"
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -6,9 +6,9 @@ case `uname` in
|
|
|
6
6
|
esac
|
|
7
7
|
|
|
8
8
|
if [ -z "$NODE_PATH" ]; then
|
|
9
|
-
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/vitest@0.
|
|
9
|
+
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/vitest@1.0.1_@types+node@18.19.2_jsdom@23.0.1/node_modules/vitest/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/vitest@1.0.1_@types+node@18.19.2_jsdom@23.0.1/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/node_modules"
|
|
10
10
|
else
|
|
11
|
-
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/vitest@0.
|
|
11
|
+
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/vitest@1.0.1_@types+node@18.19.2_jsdom@23.0.1/node_modules/vitest/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/vitest@1.0.1_@types+node@18.19.2_jsdom@23.0.1/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
12
|
fi
|
|
13
13
|
if [ -x "$basedir/node" ]; then
|
|
14
14
|
exec "$basedir/node" "$basedir/../vitest/vitest.mjs" "$@"
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
"test:unit": "vitest"
|
|
4
4
|
},
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"vue": "^3.3.
|
|
6
|
+
"vue": "^3.3.10"
|
|
7
7
|
},
|
|
8
8
|
"devDependencies": {
|
|
9
|
-
"@vue/test-utils": "^2.4.
|
|
10
|
-
"jsdom": "^
|
|
11
|
-
"vitest": "^0.
|
|
9
|
+
"@vue/test-utils": "^2.4.3",
|
|
10
|
+
"jsdom": "^23.0.1",
|
|
11
|
+
"vitest": "^1.0.1"
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -3,14 +3,16 @@
|
|
|
3
3
|
"compilerOptions": {
|
|
4
4
|
"target": "ESNext",
|
|
5
5
|
"module": "commonjs",
|
|
6
|
+
"moduleResolution": "node",
|
|
6
7
|
"composite": true,
|
|
8
|
+
"noEmit": true,
|
|
7
9
|
"rootDir": "../",
|
|
8
10
|
"lib": ["ESNext", "dom"],
|
|
9
11
|
"types": ["nightwatch"]
|
|
10
12
|
},
|
|
11
13
|
"include": ["../node_modules/@nightwatch/**/*", "../src/components/**/*", "../tests/e2e/**/*"],
|
|
12
14
|
"ts-node": {
|
|
13
|
-
"
|
|
15
|
+
"transpileOnly": true
|
|
14
16
|
},
|
|
15
17
|
"files": ["nightwatch.d.ts"]
|
|
16
18
|
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from 'cypress'
|
|
2
|
-
|
|
3
|
-
export default defineConfig({
|
|
4
|
-
e2e: {
|
|
5
|
-
specPattern: 'cypress/e2e/**/*.{cy,spec}.{js,jsx,ts,tsx}',
|
|
6
|
-
baseUrl: 'http://localhost:4173'
|
|
7
|
-
},
|
|
8
|
-
component: {
|
|
9
|
-
specPattern: 'src/**/__tests__/*.{cy,spec}.{js,ts,jsx,tsx}',
|
|
10
|
-
devServer: {
|
|
11
|
-
framework: 'vue',
|
|
12
|
-
bundler: 'vite'
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
})
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
const waitOn = require('wait-on')
|
|
2
|
-
const { setup, teardown } = require('@nightwatch/vue')
|
|
3
|
-
|
|
4
|
-
const serverPort = process.env.CI ? '4173' : '5173'
|
|
5
|
-
|
|
6
|
-
module.exports = {
|
|
7
|
-
before(done) {
|
|
8
|
-
setup()
|
|
9
|
-
waitOn({
|
|
10
|
-
resources: [`http-get://localhost:${serverPort}`],
|
|
11
|
-
verbose: true,
|
|
12
|
-
headers: {
|
|
13
|
-
accept: 'text/html'
|
|
14
|
-
}
|
|
15
|
-
}).then(() => {
|
|
16
|
-
done()
|
|
17
|
-
})
|
|
18
|
-
},
|
|
19
|
-
|
|
20
|
-
after() {
|
|
21
|
-
teardown()
|
|
22
|
-
}
|
|
23
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
-
|
|
4
|
-
case `uname` in
|
|
5
|
-
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
|
6
|
-
esac
|
|
7
|
-
|
|
8
|
-
if [ -z "$NODE_PATH" ]; then
|
|
9
|
-
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/wait-on@7.0.1_debug@4.3.4/node_modules/wait-on/bin/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/wait-on@7.0.1_debug@4.3.4/node_modules/wait-on/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/wait-on@7.0.1_debug@4.3.4/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/node_modules"
|
|
10
|
-
else
|
|
11
|
-
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/wait-on@7.0.1_debug@4.3.4/node_modules/wait-on/bin/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/wait-on@7.0.1_debug@4.3.4/node_modules/wait-on/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/wait-on@7.0.1_debug@4.3.4/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
|
-
fi
|
|
13
|
-
if [ -x "$basedir/node" ]; then
|
|
14
|
-
exec "$basedir/node" "$basedir/../wait-on/bin/wait-on" "$@"
|
|
15
|
-
else
|
|
16
|
-
exec node "$basedir/../wait-on/bin/wait-on" "$@"
|
|
17
|
-
fi
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import type { PlaywrightTestConfig } from '@playwright/test'
|
|
2
|
-
import { devices } from '@playwright/test'
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Read environment variables from file.
|
|
6
|
-
* https://github.com/motdotla/dotenv
|
|
7
|
-
*/
|
|
8
|
-
// require('dotenv').config();
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* See https://playwright.dev/docs/test-configuration.
|
|
12
|
-
*/
|
|
13
|
-
const config: PlaywrightTestConfig = {
|
|
14
|
-
testDir: './e2e',
|
|
15
|
-
/* Maximum time one test can run for. */
|
|
16
|
-
timeout: 30 * 1000,
|
|
17
|
-
expect: {
|
|
18
|
-
/**
|
|
19
|
-
* Maximum time expect() should wait for the condition to be met.
|
|
20
|
-
* For example in `await expect(locator).toHaveText();`
|
|
21
|
-
*/
|
|
22
|
-
timeout: 5000
|
|
23
|
-
},
|
|
24
|
-
/* Fail the build on CI if you accidentally left test.only in the source code. */
|
|
25
|
-
forbidOnly: !!process.env.CI,
|
|
26
|
-
/* Retry on CI only */
|
|
27
|
-
retries: process.env.CI ? 2 : 0,
|
|
28
|
-
/* Opt out of parallel tests on CI. */
|
|
29
|
-
workers: process.env.CI ? 1 : undefined,
|
|
30
|
-
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
|
|
31
|
-
reporter: 'html',
|
|
32
|
-
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
|
|
33
|
-
use: {
|
|
34
|
-
/* Maximum time each action such as `click()` can take. Defaults to 0 (no limit). */
|
|
35
|
-
actionTimeout: 0,
|
|
36
|
-
/* Base URL to use in actions like `await page.goto('/')`. */
|
|
37
|
-
baseURL: 'http://localhost:5173',
|
|
38
|
-
|
|
39
|
-
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
|
|
40
|
-
trace: 'on-first-retry',
|
|
41
|
-
|
|
42
|
-
/* Only on CI systems run the tests headless */
|
|
43
|
-
headless: !!process.env.CI
|
|
44
|
-
},
|
|
45
|
-
|
|
46
|
-
/* Configure projects for major browsers */
|
|
47
|
-
projects: [
|
|
48
|
-
{
|
|
49
|
-
name: 'chromium',
|
|
50
|
-
use: {
|
|
51
|
-
...devices['Desktop Chrome']
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
name: 'firefox',
|
|
56
|
-
use: {
|
|
57
|
-
...devices['Desktop Firefox']
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
name: 'webkit',
|
|
62
|
-
use: {
|
|
63
|
-
...devices['Desktop Safari']
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
/* Test against mobile viewports. */
|
|
68
|
-
// {
|
|
69
|
-
// name: 'Mobile Chrome',
|
|
70
|
-
// use: {
|
|
71
|
-
// ...devices['Pixel 5'],
|
|
72
|
-
// },
|
|
73
|
-
// },
|
|
74
|
-
// {
|
|
75
|
-
// name: 'Mobile Safari',
|
|
76
|
-
// use: {
|
|
77
|
-
// ...devices['iPhone 12'],
|
|
78
|
-
// },
|
|
79
|
-
// },
|
|
80
|
-
|
|
81
|
-
/* Test against branded browsers. */
|
|
82
|
-
// {
|
|
83
|
-
// name: 'Microsoft Edge',
|
|
84
|
-
// use: {
|
|
85
|
-
// channel: 'msedge',
|
|
86
|
-
// },
|
|
87
|
-
// },
|
|
88
|
-
// {
|
|
89
|
-
// name: 'Google Chrome',
|
|
90
|
-
// use: {
|
|
91
|
-
// channel: 'chrome',
|
|
92
|
-
// },
|
|
93
|
-
// },
|
|
94
|
-
],
|
|
95
|
-
|
|
96
|
-
/* Folder for test artifacts such as screenshots, videos, traces, etc. */
|
|
97
|
-
// outputDir: 'test-results/',
|
|
98
|
-
|
|
99
|
-
/* Run your local dev server before starting the tests */
|
|
100
|
-
webServer: {
|
|
101
|
-
/**
|
|
102
|
-
* Use the dev server by default for faster feedback loop.
|
|
103
|
-
* Use the preview server on CI for more realistic testing.
|
|
104
|
-
Playwright will re-use the local server if there is already a dev-server running.
|
|
105
|
-
*/
|
|
106
|
-
command: process.env.CI ? 'vite preview --port 5173' : 'vite dev',
|
|
107
|
-
port: 5173,
|
|
108
|
-
reuseExistingServer: !process.env.CI
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
export default config
|