Skip to content

Commit 0691be7

Browse files
committed
test: use tmpdir.refresh() in test-esm-json.mjs
Use `tmpdir.refresh()` in `test/es-module/test-esm-json.mjs` so that the temporary directory is removed when the test exits.
1 parent 2c571c6 commit 0691be7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/es-module/test-esm-json.mjs

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ import * as tmpdir from '../common/tmpdir.js';
99

1010
import secret from '../fixtures/experimental.json' with { type: 'json' };
1111

12+
tmpdir.refresh();
13+
1214
describe('ESM: importing JSON', () => {
1315
it('should load JSON', () => {
1416
assert.strictEqual(secret.ofLife, 42);

0 commit comments

Comments
 (0)