Skip to content

Commit b98b150

Browse files
committed
remove removing the folder too early
1 parent 78d3a23 commit b98b150

File tree

1 file changed

+0
-12
lines changed
  • dev-packages/node-integration-tests/utils

1 file changed

+0
-12
lines changed

dev-packages/node-integration-tests/utils/runner.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -196,18 +196,6 @@ export function createEsmAndCjsTests(
196196
const tmpDirPath = join(cwd, `tmp_${uniqueId}`);
197197
mkdirSync(tmpDirPath);
198198

199-
// Ensure tmp dir is removed on process exit as a fallback
200-
CLEANUP_STEPS.add(() => {
201-
try {
202-
rmSync(tmpDirPath, { recursive: true, force: true });
203-
} catch {
204-
if (process.env.DEBUG) {
205-
// eslint-disable-next-line no-console
206-
console.error(`Failed to remove tmp dir: ${tmpDirPath}`);
207-
}
208-
}
209-
});
210-
211199
// Copy ESM files as-is into tmp dir
212200
const esmScenarioBasename = basename(scenarioPath);
213201
const esmInstrumentBasename = basename(instrumentPath);

0 commit comments

Comments
 (0)