Skip to content

Commit

Permalink
test: cleanup test fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
privatenumber committed Sep 13, 2023
1 parent 3f94114 commit d95728c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/specs/json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ import { createFixture } from 'fs-fixture';
import type { NodeApis } from '../utils/tsx';

export default testSuite(async ({ describe }, node: NodeApis) => {
describe('Load JSON', async ({ describe }) => {
describe('Load JSON', async ({ describe, onFinish }) => {
const fixture = await createFixture({
'index.json': JSON.stringify({
loaded: 'json',
}),
});

onFinish(async () => await fixture.rm());

describe('full path', async ({ test }) => {
const importPath = path.join(fixture.path, 'index.json');
test('Load', async () => {
Expand Down

0 comments on commit d95728c

Please sign in to comment.