Skip to content

Commit d320815

Browse files
committed
chore: upgrade Vitest to v4.0.13 and add browser testing support
- Upgrade Vitest from 2.1.5 to 4.0.13 and related packages (@vitest/coverage-v8, @vitest/ui) - Add @vitest/browser-playwright for browser-based testing capabilities - Add new test:browser npm script for running browser tests - Update pnpm lockfile with new dependencies and Rollup platform binaries
1 parent 8a55040 commit d320815

File tree

3 files changed

+621
-498
lines changed

3 files changed

+621
-498
lines changed

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
"test:ui": "vitest --ui --config vite.config.ts",
1919
"test:unit": "vitest --config vite.config.ts src/**/*.test.ts src/**/*.test.tsx",
2020
"test:integration": "vitest --config vite.config.ts ./test/integration/nextjs-cache-handler.integration.test.ts",
21-
"prepare": "./scripts/prepare.sh"
21+
"prepare": "./scripts/prepare.sh",
22+
"test:browser": "vitest --config=vitest.browser.config.ts"
2223
},
2324
"main": "dist/index.js",
2425
"module": "dist/index.mjs",
@@ -74,8 +75,9 @@
7475
"@semantic-release/npm": "^12.0.1",
7576
"@typescript-eslint/eslint-plugin": "^8.15.0",
7677
"@typescript-eslint/parser": "^8.15.0",
77-
"@vitest/coverage-v8": "^2.1.5",
78-
"@vitest/ui": "^2.1.5",
78+
"@vitest/browser-playwright": "^4.0.13",
79+
"@vitest/coverage-v8": "^4.0.13",
80+
"@vitest/ui": "^4.0.13",
7981
"eslint": "^9.15.0",
8082
"lint-staged": "^15.2.10",
8183
"node-fetch": "3",
@@ -84,7 +86,7 @@
8486
"semantic-release": "^24.2.0",
8587
"tsup": "^8.4.0",
8688
"typescript": "^5.6.3",
87-
"vitest": "^2.1.5"
89+
"vitest": "^4.0.13"
8890
},
8991
"peerDependencies": {
9092
"next": ">=15.0.3 <= 15.4.7",

0 commit comments

Comments
 (0)