From 3cfe4f417423a83f8926c71e72ce2437eb918ca7 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Fri, 31 Oct 2025 18:44:26 +0100 Subject: [PATCH] fix(pool): avoid `--require` argument when running in deno --- 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 abf0fc3ce24f..2c0fc1722f57 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',