File tree 1 file changed +0
-17
lines changed
1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -56,22 +56,5 @@ test.describe("Integrated Terminal", () => {
56
56
57
57
const { stdout } = await output
58
58
expect ( stdout ) . toMatch ( testString )
59
-
60
- // .access checks if the file exists without opening it
61
- // it doesn't return anything hence why we expect it to
62
- // resolve to undefined
63
- // If the promise rejects (i.e. the file doesn't exist)
64
- // then the assertion will fail
65
- await expect ( fs . promises . access ( tmpFile ) ) . resolves . toBeUndefined ( )
66
-
67
- await fs . promises . rmdir ( tmpFolderPath , { recursive : true } )
68
- // Make sure neither file nor folder exist
69
- // Note: We have to use ts-ignore because of an upstream typing error
70
- // See: https://github.com/microsoft/folio/issues/230#event-4621948411
71
- /* eslint-disable @typescript-eslint/ban-ts-comment */
72
- // @ts -ignore
73
- expect ( fs . promises . access ( tmpFile ) ) . rejects . toThrowError ( / n o s u c h f i l e o r d i r e c t o r y / )
74
- // @ts -ignore
75
- expect ( fs . promises . access ( tmpFolderPath ) ) . rejects . toThrowError ( / n o s u c h f i l e o r d i r e c t o r y / )
76
59
} )
77
60
} )
You can’t perform that action at this time.
0 commit comments