forked from vuejs/test-utils
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: migrate to vitest (vuejs#1637)
- Loading branch information
1 parent
6bab48a
commit 31f66b9
Showing
63 changed files
with
1,268 additions
and
2,782 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,17 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Jest", | ||
"type": "node", | ||
"request": "launch", | ||
"program": "${workspaceFolder}/node_modules/.bin/jest", | ||
"stopOnEntry": false, | ||
"args": ["${fileBasename}", "--runInBand", "--detectOpenHandles"], | ||
"cwd": "${workspaceFolder}", | ||
"preLaunchTask": null, | ||
"runtimeExecutable": null, | ||
"runtimeArgs": ["--nolazy"], | ||
"env": { | ||
"NODE_ENV": "development" | ||
}, | ||
"console": "integratedTerminal", | ||
"sourceMaps": true, | ||
"windows": { | ||
"program": "${workspaceFolder}/node_modules/jest/bin/jest", | ||
} | ||
} | ||
] | ||
} | ||
{ | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "vitest", | ||
"type": "node", | ||
"request": "launch", | ||
"autoAttachChildProcesses": true, | ||
"skipFiles": ["<node_internals>/**", "**/node_modules/**"], | ||
"program": "${workspaceRoot}/node_modules/vitest/vitest.mjs", | ||
"args": ["run", "${relativeFile}"], | ||
"smartStep": true, | ||
"console": "integratedTerminal" | ||
} | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,23 +29,21 @@ | |
"@rollup/plugin-json": "^4.1.0", | ||
"@rollup/plugin-node-resolve": "^13.3.0", | ||
"@rollup/plugin-replace": "^4.0.0", | ||
"@types/jest": "27.5.0", | ||
"@types/node": "18.0.0", | ||
"@types/pretty": "^2.0.1", | ||
"@typescript-eslint/eslint-plugin": "^5.30.3", | ||
"@typescript-eslint/parser": "^5.30.3", | ||
"@vitejs/plugin-vue": "^2.3.3", | ||
"@vitejs/plugin-vue-jsx": "^1.3.10", | ||
"@vue/babel-plugin-jsx": "^1.1.1", | ||
"@vue/compat": "3.2.37", | ||
"@vue/compiler-dom": "3.2.37", | ||
"@vue/compiler-sfc": "3.2.37", | ||
"@vue/vue3-jest": "27.0.0-alpha.4", | ||
"babel-jest": "27.5.1", | ||
"babel-preset-jest": "28.1.1", | ||
"c8": "^7.11.3", | ||
"eslint": "^8.18.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
"eslint-plugin-prettier": "4.2.1", | ||
"husky": "^8.0.1", | ||
"jest": "27.5.1", | ||
"jsdom": "^20.0.0", | ||
"jsdom-global": "^3.0.2", | ||
"lint-staged": "^13.0.3", | ||
|
@@ -54,13 +52,12 @@ | |
"reflect-metadata": "^0.1.13", | ||
"rollup": "^2.75.7", | ||
"rollup-plugin-typescript2": "^0.32.1", | ||
"ts-jest": "27.1.5", | ||
"tslib": "2.4.0", | ||
"typescript": "4.7.4", | ||
"vitepress": "^0.22.4", | ||
"vitest": "^0.16.0", | ||
"vue": "3.2.37", | ||
"vue-class-component": "^8.0.0-rc.1", | ||
"vue-jest": "^5.0.0-alpha.10", | ||
"vue-router": "^4.0.16", | ||
"vue-tsc": "0.38.2", | ||
"vuex": "^4.0.2" | ||
|
@@ -73,8 +70,10 @@ | |
"email": "[email protected]" | ||
}, | ||
"scripts": { | ||
"test": "yarn jest --runInBand tests/", | ||
"test:build": "yarn jest --runInBand tests/ -use-build", | ||
"test": "yarn vitest", | ||
"test:coverage": "yarn vitest --coverage", | ||
"test:watch": "yarn vitest --watch", | ||
"test:build": "yarn vitest --mode test-build", | ||
"tsd": "tsc -p test-dts/tsconfig.tsd.json", | ||
"build": "yarn rollup -c rollup.config.js", | ||
"lint": "eslint --ext .ts src/ tests/", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.