Skip to content

Commit 53df797

Browse files
committed
chore(tester): support web storage with node v25
1 parent b4f2895 commit 53df797

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

packages/tester/src/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import * as path from 'node:path';
2+
import * as os from 'node:os';
23
import { fileURLToPath } from 'node:url';
34
import type { Options } from '@deot/dev-shared';
45
import { Utils, Shell, Logger, Locals } from '@deot/dev-shared';
@@ -89,6 +90,10 @@ export const run = (options: Options) => Utils.autoCatch(async () => {
8990

9091
const options$: CliOptions = {
9192
environment,
93+
execArgv: [
94+
'--localstorage-file',
95+
path.resolve(os.tmpdir(), `vitest-${process.pid}.localstorage`),
96+
],
9297
coverage: {
9398
enabled: !!coverage,
9499
},

0 commit comments

Comments
 (0)