Skip to content

Commit 6d49012

Browse files
committed
[node] Fix localStorage for v25
1 parent 1cbc81d commit 6d49012

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

vitest.config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1+
import {tmpdir} from 'os';
2+
import {resolve} from 'path';
13
import {coverageConfigDefaults, defineConfig} from 'vitest/config';
24

35
export default defineConfig({
46
test: {
57
environment: 'happy-dom',
8+
execArgv: [
9+
'--localstorage-file',
10+
resolve(tmpdir(), `vitest-${process.pid}.localstorage`),
11+
],
612
setupFiles: ['test/vitest/setup.ts'],
713
reporters: [['test/vitest/reporter.ts', {hideSkipped: true}]],
814
slowTestThreshold: 3000,

0 commit comments

Comments
 (0)