Skip to content

Commit 6e2b7a4

Browse files
authored
Vitest 3.1.2 (adazzle#3769)
* Vitest 3.1.2 * fix type issues
1 parent 78d9c63 commit 6e2b7a4

File tree

3 files changed

+14
-10
lines changed

3 files changed

+14
-10
lines changed

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@
6767
"@types/react-dom": "^19.0.3",
6868
"@typescript-eslint/eslint-plugin": "^8.29.0",
6969
"@typescript-eslint/parser": "^8.29.0",
70-
"@vitejs/plugin-react": "^4.3.4",
71-
"@vitest/browser": "^3.1.1",
72-
"@vitest/coverage-v8": "^3.1.1",
73-
"@vitest/eslint-plugin": "^1.1.38",
70+
"@vitejs/plugin-react": "^4.4.1",
71+
"@vitest/browser": "^3.1.2",
72+
"@vitest/coverage-v8": "^3.1.2",
73+
"@vitest/eslint-plugin": "^1.1.43",
7474
"@wyw-in-js/rollup": "^0.6.0",
7575
"@wyw-in-js/vite": "^0.6.0",
7676
"browserslist": "^4.24.4",
@@ -84,17 +84,17 @@
8484
"eslint-plugin-testing-library": "^7.1.1",
8585
"jspdf": "^3.0.1",
8686
"jspdf-autotable": "^5.0.2",
87-
"playwright": "^1.51.1",
87+
"playwright": "^1.52.0",
8888
"postcss": "^8.5.2",
8989
"prettier": "3.5.3",
9090
"react": "^19.1.0",
9191
"react-dnd": "^16.0.1",
9292
"react-dnd-html5-backend": "^16.0.1",
9393
"react-dom": "^19.1.0",
94-
"rolldown": "^1.0.0-beta.6",
94+
"rolldown": "^1.0.0-beta.8",
9595
"typescript": "~5.8.2",
96-
"vite": "^6.2.4",
97-
"vitest": "^3.1.1",
96+
"vite": "^6.3.2",
97+
"vitest": "^3.1.2",
9898
"vitest-browser-react": "^0.1.1"
9999
},
100100
"peerDependencies": {

tsconfig.test.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"extends": "./tsconfig.base.json",
33
"compilerOptions": {
4+
"skipLibCheck": true,
45
"lib": ["ESNext", "DOM", "DOM.Iterable", "DOM.AsyncIterable"],
56
"types": ["vitest/globals", "@vitest/browser/providers/playwright"]
67
},

vite.config.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ const dragFill: BrowserCommand<[from: string, to: string]> = async (context, fro
4242
await page.mouse.up();
4343
};
4444

45+
const viewport = { width: 1920, height: 1080 } as const;
46+
4547
export default defineConfig(({ command }) => ({
4648
base: '/react-data-grid/',
4749
cacheDir: '.cache/vite',
@@ -98,11 +100,12 @@ export default defineConfig(({ command }) => ({
98100
provider: 'playwright',
99101
instances: [
100102
{
101-
browser: 'chromium'
103+
browser: 'chromium',
104+
context: { viewport }
102105
}
103106
],
104107
commands: { resizeColumn, dragFill },
105-
viewport: { width: 1920, height: 1080 },
108+
viewport,
106109
headless: true,
107110
screenshotFailures: process.env.CI !== 'true'
108111
},

0 commit comments

Comments
 (0)