Skip to content

Commit b13958a

Browse files
committed
Replace Jest and deps with Vitest
1 parent 6f9591e commit b13958a

File tree

3 files changed

+901
-294
lines changed

3 files changed

+901
-294
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
"@babel/helper-compilation-targets": "7.19.3",
4444
"@babel/traverse": "7.19.3",
4545
"@babel/types": "7.19.3",
46-
"console-testing-library": "patch:console-testing-library@npm:0.3.1#.yarn/patches/console-testing-library__npm_0.3.1.patch",
4746
"esbuild": "0.17.0",
47+
"jest-snapshot": "29.3.1",
4848
"msw": "patch:msw@npm:0.40.2#.yarn/patches/msw-npm-0.40.2-2107d48752",
4949
"jscodeshift": "0.13.1",
5050
"react-redux": "npm:8.0.2",
@@ -63,7 +63,8 @@
6363
"docs/react-dom": "npm:17.0.2",
6464
"docs/@types/react-dom": "npm:17.0.11",
6565
"docs/@types/react": "npm:17.0.11",
66-
"type-fest": "2.19.0"
66+
"type-fest": "2.19.0",
67+
"console-testing-library@0.6.1": "patch:console-testing-library@npm%3A0.6.1#./.yarn/patches/console-testing-library-npm-0.6.1-4d9957d402.patch"
6768
},
6869
"scripts": {
6970
"build": "yarn build:packages",

packages/toolkit/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"@typescript-eslint/eslint-plugin": "^4.22.0",
6262
"@typescript-eslint/parser": "^4.22.0",
6363
"axios": "^0.19.2",
64-
"console-testing-library": "^0.3.1",
64+
"console-testing-library": "0.6.1",
6565
"convert-source-map": "^1.7.0",
6666
"esbuild": "~0.17",
6767
"eslint": "^7.25.0",
@@ -75,7 +75,7 @@
7575
"eslint-plugin-react-hooks": "^4.2.0",
7676
"fs-extra": "^9.1.0",
7777
"invariant": "^2.2.4",
78-
"jest": "^27",
78+
"jsdom": "^21.0.0",
7979
"json-stringify-safe": "^5.0.1",
8080
"magic-string": "^0.25.7",
8181
"merge-source-map": "^1.1.0",
@@ -89,10 +89,10 @@
8989
"size-limit": "^4.11.0",
9090
"source-map": "^0.7.3",
9191
"terser": "^5.6.1",
92-
"ts-jest": "^27",
9392
"tslib": "^1.10.0",
9493
"tsx": "^3.12.2",
9594
"typescript": "~4.9",
95+
"vitest": "^0.27.2",
9696
"yargs": "^15.3.1"
9797
},
9898
"scripts": {
@@ -104,7 +104,7 @@
104104
"format": "prettier --write \"(src|examples)/**/*.{ts,tsx}\" \"**/*.md\"",
105105
"format:check": "prettier --list-different \"(src|examples)/**/*.{ts,tsx}\" \"docs/*/**.md\"",
106106
"lint": "eslint src examples",
107-
"test": "jest --runInBand",
107+
"test": "vitest",
108108
"type-tests": "yarn tsc -p src/tests/tsconfig.typetests.json && yarn tsc -p src/query/tests/tsconfig.typetests.json",
109109
"prepack": "npm run build-prepare"
110110
},

0 commit comments

Comments
 (0)