diff --git a/test/bundler/expectBundled.ts b/test/bundler/expectBundled.ts index b61911204e..b8790076ac 100644 --- a/test/bundler/expectBundled.ts +++ b/test/bundler/expectBundled.ts @@ -1607,11 +1607,6 @@ for (const [key, blob] of build.outputs) { // no idea why this logs. ¯\_(ツ)_/¯ result = result.replace(/\[Event_?Loop\] enqueueTaskConcurrent\(RuntimeTranspilerStore\)\n/gi, ""); - // when the inspector runs (can be due to VSCode extension), there is - // a bug that in debug modes the console logs extra stuff - if (name === "stderr" && process.env.BUN_INSPECT_CONNECT_TO) { - result = result.replace(/(?:^|\n)\/[^\n]*: CONSOLE LOG[^\n]*(\n|$)/g, "$1").trim(); - } if (typeof expected === "string") { expected = dedent(expected).trim(); diff --git a/test/harness.ts b/test/harness.ts index 2b698e73a5..c2e49d866a 100644 --- a/test/harness.ts +++ b/test/harness.ts @@ -88,6 +88,7 @@ for (let key in bunEnv) { } } +delete bunEnv.BUN_INSPECT_CONNECT_TO; delete bunEnv.NODE_ENV; if (isDebug) { diff --git a/test/napi/napi.test.ts b/test/napi/napi.test.ts index 03ebc68288..3267129116 100644 --- a/test/napi/napi.test.ts +++ b/test/napi/napi.test.ts @@ -549,10 +549,7 @@ async function checkSameOutput(test: string, args: any[] | string, envArgs: Reco } async function runOn(executable: string, test: string, args: any[] | string, envArgs: Record = {}) { - // when the inspector runs (can be due to VSCode extension), there is - // a bug that in debug modes the console logs extra stuff - const { BUN_INSPECT_CONNECT_TO: _, ...rest } = bunEnv; - const env = { ...rest, ...envArgs }; + const env = { ...bunEnv, ...envArgs }; const exec = spawn({ cmd: [ executable,