Skip to content

Commit

Permalink
refactor: switch jest to vitest (#962)
Browse files Browse the repository at this point in the history
  • Loading branch information
brenner8023 authored Aug 18, 2022
1 parent c3f4e91 commit 7e71142
Show file tree
Hide file tree
Showing 31 changed files with 2,259 additions and 3,884 deletions.
29 changes: 3 additions & 26 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"start": "rollup -c -w",
"build": "rimraf dist && rollup -c",
"lint": "prettier --write --parser typescript \"{src,test,test-dts}/**/*.ts?(x)\" && prettier --write \"{src,test}/**/*.js\"",
"test": "cross-env NODE_ENV=test jest",
"test": "vitest",
"test:all": "pnpm run test && pnpm run test:dts",
"test:dts": "tsc -p ./test-dts/tsconfig.json && tsc -p ./test-dts/tsconfig.vue3.json && pnpm run build && tsc -p ./test-dts/tsconfig.build.json",
"update-readme": "node ./scripts/update-readme.js",
Expand All @@ -56,13 +56,11 @@
"devDependencies": {
"@rollup/plugin-node-resolve": "^13.3.0",
"@rollup/plugin-replace": "^4.0.0",
"@types/jest": "^26.0.24",
"@types/node": "^17.0.31",
"bumpp": "^7.1.1",
"conventional-changelog-cli": "^2.2.2",
"conventional-github-releaser": "^3.1.5",
"cross-env": "^7.0.3",
"jest": "^26.6.3",
"jsdom": "^20.0.0",
"lint-staged": "^12.4.1",
"prettier": "^2.6.2",
"rimraf": "^3.0.2",
Expand All @@ -71,9 +69,9 @@
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.31.2",
"simple-git-hooks": "^2.7.0",
"ts-jest": "^26.5.6",
"tslib": "^2.4.0",
"typescript": "^4.6.4",
"vitest": "^0.22.0",
"vue": "^2.6.14",
"vue-router": "^3.5.3",
"vue-server-renderer": "^2.6.14",
Expand All @@ -90,27 +88,6 @@
"prettier --parser=typescript --write"
]
},
"jest": {
"verbose": true,
"globals": {
"__DEV__": true,
"__VERSION__": "0.0.0"
},
"setupFiles": [
"<rootDir>/test/setupTest.js"
],
"setupFilesAfterEnv": [
"<rootDir>/test/helpers/wait-for-update.js"
],
"moduleFileExtensions": [
"ts",
"js"
],
"testMatch": [
"<rootDir>/test/**/*.spec.{js,ts}"
],
"preset": "ts-jest"
},
"prettier": {
"semi": false,
"singleQuote": true,
Expand Down
Loading

0 comments on commit 7e71142

Please sign in to comment.