Skip to content

Commit 019b542

Browse files
committed
test: check fixture type
1 parent b4b5fd7 commit 019b542

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/index.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import fs from 'fs/promises';
22
import path from 'path';
33
import { describe, expect } from 'manten';
4-
import { createFixture } from '#fs-fixture';
4+
import { createFixture, type FsFixture } from '#fs-fixture';
55

66
const exists = (checkPath: string) => fs.access(checkPath).then(() => true, () => false);
77

@@ -14,6 +14,8 @@ describe('fs-fixture', ({ test }) => {
1414
},
1515
});
1616

17+
expect<FsFixture>(fixture);
18+
1719
const filePathA = path.join(fixture.path, 'directory/a');
1820
const filePathB = path.join(fixture.path, 'directory/b');
1921

@@ -43,6 +45,8 @@ describe('fs-fixture', ({ test }) => {
4345
test('creates from directory template', async () => {
4446
const fixture = await createFixture('./tests/fixture-template');
4547

48+
expect<FsFixture>(fixture);
49+
4650
const filePathA = path.join(fixture.path, 'a');
4751
const filePathB = path.join(fixture.path, 'directory/b');
4852

0 commit comments

Comments
 (0)