Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 16a12e4

Browse files
committed
Fix vitest-environment-miniflare tests on Windows 🤞
1 parent 69ecc67 commit 16a12e4

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

packages/vitest-environment-miniflare/test/index.spec.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,16 @@ async function runVitest(
3333
const vitestPath = await vitestPathPromise;
3434
return new Promise((resolve) => {
3535
const vitest = childProcess.spawn(
36-
vitestPath,
37-
["run", "--reporter=verbose", "--allowOnly", "--no-color"],
36+
process.execPath,
37+
[
38+
"--experimental-vm-modules",
39+
"--no-warnings",
40+
vitestPath,
41+
"run",
42+
"--reporter=verbose",
43+
"--allowOnly",
44+
"--no-color",
45+
],
3846
{
3947
cwd,
4048
env: {

0 commit comments

Comments
 (0)