Skip to content

Commit

Permalink
test: use tmpdir.refresh() in test-esm-json.mjs
Browse files Browse the repository at this point in the history
Use `tmpdir.refresh()` in `test/es-module/test-esm-json.mjs` so that
the temporary directory is removed when the test exits.
  • Loading branch information
lpinca committed Dec 18, 2023
1 parent 2c571c6 commit 0691be7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/es-module/test-esm-json.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import * as tmpdir from '../common/tmpdir.js';

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

tmpdir.refresh();

describe('ESM: importing JSON', () => {
it('should load JSON', () => {
assert.strictEqual(secret.ofLife, 42);
Expand Down

0 comments on commit 0691be7

Please sign in to comment.