diff --git a/packages/cli/test/updater-install.test.ts b/packages/cli/test/updater-install.test.ts index eb90ef01d99..775b49af7ee 100644 --- a/packages/cli/test/updater-install.test.ts +++ b/packages/cli/test/updater-install.test.ts @@ -198,7 +198,13 @@ test("Node distribution honors the compile-time CLI name", async () => { "--test-name-pattern", "^Node distribution resolves the published npm package$", ], - { cwd: path.join(import.meta.dir, ".."), stdout: "ignore", stderr: "pipe" }, + { + cwd: path.join(import.meta.dir, ".."), + stdout: "ignore", + stderr: "pipe", + // Bun 1.4 can reuse cached modules compiled with different --define values. + env: { ...process.env, BUN_RUNTIME_TRANSPILER_CACHE_PATH: "0" }, + }, ) const [code, stderr] = await Promise.all([child.exited, new Response(child.stderr).text()]) expect(code, stderr).toBe(0)