From d41fa742fd0354a43003e29280b8213a72783f07 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Mon, 3 Nov 2025 17:01:26 +0100 Subject: [PATCH] fix(pool): avoid `--require` argument when running in deno (#8897) --- packages/vitest/src/node/pool.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/vitest/src/node/pool.ts b/packages/vitest/src/node/pool.ts index abf0fc3ce..2c0fc1722 100644 --- a/packages/vitest/src/node/pool.ts +++ b/packages/vitest/src/node/pool.ts @@ -272,8 +272,8 @@ function resolveOptions(ctx: Vitest) { ...execArgv, ...conditions, '--experimental-import-meta-resolve', - '--require', - suppressWarningsPath, + // https://github.com/vitest-dev/vitest/issues/8896 + ...((globalThis as any).Deno ? [] : ['--require', suppressWarningsPath]), ], env: { TEST: 'true', -- 2.51.2