File tree 1 file changed +7
-8
lines changed
1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -26,20 +26,19 @@ test.describe("Integrated Terminal", () => {
26
26
storageState,
27
27
}
28
28
}
29
+ test . beforeAll ( async ( ) => {
30
+ tmpFolderPath = await tmpdir ( "integrated-terminal" )
31
+ tmpFile = path . join ( tmpFolderPath , testFileName )
32
+ } )
33
+
29
34
test . beforeEach ( async ( { page } ) => {
30
35
codeServer = new CodeServer ( page )
31
36
await codeServer . setup ( )
32
- // NOTE@jsjoeio
33
- // We're not using tmpdir from src/node/constants
34
- // because Playwright doesn't fully support ES modules from
35
- // the erorrs I'm seeing
36
- tmpFolderPath = await tmpdir ( "integrated-terminal" )
37
- tmpFile = path . join ( tmpFolderPath , testFileName )
38
37
} )
39
38
40
- test . afterEach ( async ( ) => {
39
+ test . afterAll ( async ( ) => {
41
40
// Ensure directory was removed
42
- fs . rmdirSync ( tmpFolderPath , { recursive : true } )
41
+ await fs . promises . rmdir ( tmpFolderPath , { recursive : true } )
43
42
} )
44
43
45
44
test ( "should echo a string to a file" , options , async ( { page } ) => {
You can’t perform that action at this time.
0 commit comments