File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 1
1
import fs from 'fs/promises' ;
2
2
import path from 'path' ;
3
3
import { describe , expect } from 'manten' ;
4
- import { createFixture } from '#fs-fixture' ;
4
+ import { createFixture , type FsFixture } from '#fs-fixture' ;
5
5
6
6
const exists = ( checkPath : string ) => fs . access ( checkPath ) . then ( ( ) => true , ( ) => false ) ;
7
7
@@ -14,6 +14,8 @@ describe('fs-fixture', ({ test }) => {
14
14
} ,
15
15
} ) ;
16
16
17
+ expect < FsFixture > ( fixture ) ;
18
+
17
19
const filePathA = path . join ( fixture . path , 'directory/a' ) ;
18
20
const filePathB = path . join ( fixture . path , 'directory/b' ) ;
19
21
@@ -43,6 +45,8 @@ describe('fs-fixture', ({ test }) => {
43
45
test ( 'creates from directory template' , async ( ) => {
44
46
const fixture = await createFixture ( './tests/fixture-template' ) ;
45
47
48
+ expect < FsFixture > ( fixture ) ;
49
+
46
50
const filePathA = path . join ( fixture . path , 'a' ) ;
47
51
const filePathB = path . join ( fixture . path , 'directory/b' ) ;
48
52
You can’t perform that action at this time.
0 commit comments