chore: upgrade vitest, improve tests capture (#3695)

This commit is contained in:
Anthony Fu 2022-03-16 18:47:22 +08:00 committed by GitHub
parent e67ed55de3
commit 7af60ca9b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 10 deletions

View File

@ -19,10 +19,10 @@
"play": "yarn run nuxi dev playground", "play": "yarn run nuxi dev playground",
"release": "yarn && yarn lint && FORCE_COLOR=1 lerna publish -m \"chore: release\" && yarn stub", "release": "yarn && yarn lint && FORCE_COLOR=1 lerna publish -m \"chore: release\" && yarn stub",
"stub": "lerna run prepack -- --stub", "stub": "lerna run prepack -- --stub",
"test:fixtures": "JITI_ESM_RESOLVE=1 vitest test", "test:fixtures": "JITI_ESM_RESOLVE=1 vitest --dir test",
"test:fixtures:webpack": "TEST_WITH_WEBPACK=1 yarn test:fixtures", "test:fixtures:webpack": "TEST_WITH_WEBPACK=1 yarn test:fixtures",
"test:types": "yarn run nuxi prepare test/fixtures/basic && cd test/fixtures/basic && npx vue-tsc --noEmit", "test:types": "yarn run nuxi prepare test/fixtures/basic && cd test/fixtures/basic && npx vue-tsc --noEmit",
"test:unit": "JITI_ESM_RESOLVE=1 yarn vitest packages", "test:unit": "JITI_ESM_RESOLVE=1 yarn vitest --dir packages",
"version": "yarn && git add yarn.lock" "version": "yarn && git add yarn.lock"
}, },
"resolutions": { "resolutions": {
@ -56,7 +56,7 @@
"pathe": "^0.2.0", "pathe": "^0.2.0",
"typescript": "^4.6.2", "typescript": "^4.6.2",
"unbuild": "^0.7.0", "unbuild": "^0.7.0",
"vitest": "^0.6.1", "vitest": "^0.6.3",
"vue-router": "^4.0.14", "vue-router": "^4.0.14",
"vue-tsc": "^0.33.1" "vue-tsc": "^0.33.1"
}, },

View File

@ -24,7 +24,7 @@
"devDependencies": { "devDependencies": {
"playwright": "^1.20.0", "playwright": "^1.20.0",
"unbuild": "latest", "unbuild": "latest",
"vitest": "^0.6.1" "vitest": "^0.6.3"
}, },
"peerDependencies": { "peerDependencies": {
"vue": "3.2.31" "vue": "3.2.31"

View File

@ -44,7 +44,7 @@
"ufo": "^0.8.1", "ufo": "^0.8.1",
"unplugin": "^0.5.2", "unplugin": "^0.5.2",
"vite": "^2.8.6", "vite": "^2.8.6",
"vite-node": "^0.6.1" "vite-node": "^0.6.3"
}, },
"peerDependencies": { "peerDependencies": {
"vue": "3.2.31" "vue": "3.2.31"

View File

@ -3206,7 +3206,7 @@ __metadata:
ohmyfetch: ^0.4.15 ohmyfetch: ^0.4.15
playwright: ^1.20.0 playwright: ^1.20.0
unbuild: latest unbuild: latest
vitest: ^0.6.1 vitest: ^0.6.3
peerDependencies: peerDependencies:
vue: 3.2.31 vue: 3.2.31
languageName: unknown languageName: unknown
@ -3339,7 +3339,7 @@ __metadata:
unbuild: latest unbuild: latest
unplugin: ^0.5.2 unplugin: ^0.5.2
vite: ^2.8.6 vite: ^2.8.6
vite-node: ^0.6.1 vite-node: ^0.6.3
vue: 3.2.31 vue: 3.2.31
peerDependencies: peerDependencies:
vue: 3.2.31 vue: 3.2.31
@ -15391,7 +15391,7 @@ __metadata:
pathe: ^0.2.0 pathe: ^0.2.0
typescript: ^4.6.2 typescript: ^4.6.2
unbuild: ^0.7.0 unbuild: ^0.7.0
vitest: ^0.6.1 vitest: ^0.6.3
vue-router: ^4.0.14 vue-router: ^4.0.14
vue-tsc: ^0.33.1 vue-tsc: ^0.33.1
languageName: unknown languageName: unknown
@ -21522,7 +21522,7 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"vite-node@npm:^0.6.1": "vite-node@npm:^0.6.3":
version: 0.6.3 version: 0.6.3
resolution: "vite-node@npm:0.6.3" resolution: "vite-node@npm:0.6.3"
dependencies: dependencies:
@ -21628,7 +21628,7 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"vitest@npm:^0.6.1": "vitest@npm:^0.6.3":
version: 0.6.3 version: 0.6.3
resolution: "vitest@npm:0.6.3" resolution: "vitest@npm:0.6.3"
dependencies: dependencies: