Skip to content

Commit 294c04b

Browse files
committed
fixup: remove extra checks at end of terminal test
1 parent 82f0511 commit 294c04b

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

test/e2e/terminal.test.ts

-17
Original file line numberDiff line numberDiff 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(/no such file or directory/)
74-
// @ts-ignore
75-
expect(fs.promises.access(tmpFolderPath)).rejects.toThrowError(/no such file or directory/)
7659
})
7760
})

0 commit comments

Comments
 (0)