chore: bump to vitest 4 (#20487)
* chore: bump to vitest 4 * feat(vitest): add execArgv for localstorage workaround in Node 25.2 * fix: downgrade msw to 2.4.3 * Update setup.test.ts
This commit is contained in:
parent
e3c18adc71
commit
92ebae06c5
|
|
@ -167,7 +167,7 @@
|
|||
"@typescript-eslint/eslint-plugin": "8.46.4",
|
||||
"@typescript-eslint/parser": "8.46.4",
|
||||
"@vercel/nft": "0.30.3",
|
||||
"@vitest/coverage-v8": "2.1.9",
|
||||
"@vitest/coverage-v8": "4.0.9",
|
||||
"discord-api-types": "0.38.33",
|
||||
"domhandler": "5.0.3",
|
||||
"eslint": "9.39.1",
|
||||
|
|
@ -194,7 +194,7 @@
|
|||
"typescript": "5.9.3",
|
||||
"unified": "11.0.5",
|
||||
"vite-tsconfig-paths": "5.1.4",
|
||||
"vitest": "2.1.9",
|
||||
"vitest": "4.0.9",
|
||||
"yaml-eslint-parser": "1.3.0"
|
||||
},
|
||||
"packageManager": "pnpm@10.22.0+sha512.bf049efe995b28f527fd2b41ae0474ce29186f7edcb3bf545087bd61fbbebb2bf75362d1307fda09c2d288e1e499787ac12d4fcb617a974718a6051f2eee741c",
|
||||
|
|
|
|||
960
pnpm-lock.yaml
960
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
|
|
@ -1,5 +1,8 @@
|
|||
import { defineConfig, configDefaults } from 'vitest/config';
|
||||
import tsconfigPaths from 'vite-tsconfig-paths';
|
||||
import os from 'node:os';
|
||||
import path from 'node:path';
|
||||
import process from 'node:process';
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [tsconfigPaths()],
|
||||
|
|
@ -12,5 +15,7 @@ export default defineConfig({
|
|||
testTimeout: 10000,
|
||||
setupFiles: ['./lib/setup.test.ts'],
|
||||
exclude: [...configDefaults.exclude, './lib/setup.test.ts'],
|
||||
// TODO: workaround for node 25.2
|
||||
execArgv: ['--localstorage-file', path.resolve(os.tmpdir(), `vitest-${process.pid}.localstorage`)],
|
||||
},
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue