Skip to content

Commit 996cef5

Browse files
lpincarichardlau
authored andcommitted
test: use tmpdir.refresh() in test-esm-loader-resolve-type.mjs
Use `tmpdir.refresh()` in `test/es-module/test-esm-loader-resolve-type.mjs` so that the temporary directory is removed when the test exits. PR-URL: #51206 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Vinícius Lourenço Claro Cardoso <[email protected]>
1 parent 8f2d982 commit 996cef5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/es-module/test-esm-loader-resolve-type.mjs

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import { deepStrictEqual } from 'node:assert';
55
import { mkdir, rm, cp } from 'node:fs/promises';
66
import { execPath } from 'node:process';
77

8+
tmpdir.refresh();
9+
810
const base = tmpdir.fileURL(`test-esm-loader-resolve-type-${(Math.random() * Date.now()).toFixed(0)}`);
911
const moduleName = 'module-counter-by-type';
1012
const moduleURL = new URL(`${base}/node_modules/${moduleName}`);

0 commit comments

Comments
 (0)