Skip to content

Commit 657aab3

Browse files
chore(deps): update vitest monorepo to v4 (major) (#2971)
1 parent 13cb9dc commit 657aab3

File tree

6 files changed

+165
-223
lines changed

6 files changed

+165
-223
lines changed

bench/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
"devDependencies": {
1111
"@napi-rs/cli": "workspace:*",
1212
"tinybench": "^5.0.1",
13-
"vitest": "^3.2.4"
13+
"vitest": "^4.0.0"
1414
}
1515
}

examples/napi/__tests__/__snapshots__/values.spec.ts.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Generated by [AVA](https://avajs.dev).
1616
'@testing-library/dom',
1717
'@types/lodash',
1818
'@vitest/browser',
19+
'@vitest/browser-playwright',
1920
'@vitest/ui',
2021
'ava',
2122
'buffer',
-15 Bytes
Binary file not shown.

examples/napi/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@
3333
"@oxc-node/core": "^0.0.32",
3434
"@testing-library/dom": "^10.4.1",
3535
"@types/lodash": "^4.17.20",
36-
"@vitest/browser": "^3.2.4",
37-
"@vitest/ui": "^3.2.4",
36+
"@vitest/browser": "^4.0.0",
37+
"@vitest/browser-playwright": "^4.0.0",
38+
"@vitest/ui": "^4.0.0",
3839
"ava": "^6.4.1",
3940
"buffer": "^6.0.3",
4041
"core-js": "^3.45.1",
@@ -46,7 +47,7 @@
4647
"sinon": "^21.0.0",
4748
"vite": "^7.1.5",
4849
"vite-plugin-node-polyfills": "^0.24.0",
49-
"vitest": "^3.2.4",
50+
"vitest": "^4.0.0",
5051
"web-streams-polyfill": "^4.2.0",
5152
"webdriverio": "^9.19.2"
5253
},

examples/napi/vite.config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { defineConfig } from 'vite'
1+
import { defineConfig } from 'vitest/config'
2+
import { playwright } from '@vitest/browser-playwright'
23

34
export default defineConfig({
45
server: {
@@ -24,7 +25,7 @@ export default defineConfig({
2425
include: ['browser/**/*.{spec,test}.{js,jsx,ts,tsx}'],
2526
browser: {
2627
enabled: true,
27-
provider: 'playwright',
28+
provider: playwright(),
2829
instances: [
2930
{
3031
browser: 'chromium',

0 commit comments

Comments
 (0)