Skip to content

Commit 6eb64cc

Browse files
committed
Remove Jest; install Vitest
1 parent fe88bf4 commit 6eb64cc

23 files changed

Lines changed: 1188 additions & 2004 deletions
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "Jest"
1+
name: "Vitest"
22
on: [pull_request]
33
jobs:
44
tests-e2e:

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
"devDependencies": {
2626
"@babel/preset-typescript": "^7.22.5",
2727
"@playwright/test": "^1.37.0",
28-
"@types/jest": "^29.5.3",
2928
"@types/node": "^18.17.5",
3029
"@types/react": "latest",
3130
"@types/react-dom": "latest",
@@ -36,7 +35,6 @@
3635
"parcel": "^2.9.3",
3736
"prettier": "latest",
3837
"process": "^0.11.10",
39-
"ts-jest": "^29.1.1",
4038
"typescript": "^5.1.6"
4139
},
4240
"dependencies": {

packages/react-resizable-panels/jest.config.js

Lines changed: 0 additions & 10 deletions
This file was deleted.

packages/react-resizable-panels/package.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,19 +47,21 @@
4747
"clear:builds": "rm -rf ./packages/*/dist",
4848
"clear:node_modules": "rm -rf ./node_modules",
4949
"lint": "eslint \"src/**/*.{ts,tsx}\"",
50-
"test": "jest --config=jest.config.js",
51-
"test:watch": "jest --config=jest.config.js --watch",
50+
"test": "vitest",
51+
"test:watch": "vitest --watch",
5252
"watch": "parcel watch --port=2345"
5353
},
5454
"devDependencies": {
5555
"@babel/plugin-proposal-nullish-coalescing-operator": "7.18.6",
5656
"@babel/plugin-proposal-optional-chaining": "7.21.0",
57+
"@vitest/ui": "^3.1.2",
5758
"eslint": "^8.37.0",
5859
"eslint-plugin-react-hooks": "^4.6.0",
59-
"jest": "^29.7.0",
60-
"jest-environment-jsdom": "^29.7.0",
60+
"jsdom": "^24.0.0",
6161
"react": "experimental",
62-
"react-dom": "experimental"
62+
"react-dom": "experimental",
63+
"save-dev": "0.0.1-security",
64+
"vitest": "^3.1.2"
6365
},
6466
"peerDependencies": {
6567
"react": "^16.14.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc",

0 commit comments

Comments
 (0)