| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 8e02d08 commit 8f2d982
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,14 +2,16 @@ import { spawnPromisified } from '../common/index.mjs'; | |||
| 2 | 2 | import * as fixtures from '../common/fixtures.mjs'; | |
| 3 | 3 | import assert from 'node:assert'; | |
| 4 | 4 | import { execPath } from 'node:process'; | |
| 5 | - import { describe, it, test } from 'node:test'; | ||
| 5 | + import { before, describe, it, test } from 'node:test'; | ||
| 6 | 6 | ||
| 7 | 7 | import { mkdir, rm, writeFile } from 'node:fs/promises'; | |
| 8 | 8 | import * as tmpdir from '../common/tmpdir.js'; | |
| 9 | 9 | ||
| 10 | 10 | import secret from '../fixtures/experimental.json' with { type: 'json' }; | |
| 11 | 11 | ||
| 12 | 12 | describe('ESM: importing JSON', () => { | |
| 13 | + before(() => tmpdir.refresh()); | ||
| 14 | + | ||
| 13 | 15 | it('should load JSON', () => { | |
| 14 | 16 | assert.strictEqual(secret.ofLife, 42); | |
| 15 | 17 | }); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments