File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed
Expand file tree Collapse file tree 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", () => {
5656
5757 const { stdout } = await output
5858 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 / )
7659 } )
7760} )
You can’t perform that action at this time.
0 commit comments