We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 294c04b commit 8524265Copy full SHA for 8524265
test/e2e/terminal.test.ts
@@ -26,20 +26,19 @@ test.describe("Integrated Terminal", () => {
26
storageState,
27
}
28
29
+ test.beforeAll(async () => {
30
+ tmpFolderPath = await tmpdir("integrated-terminal")
31
+ tmpFile = path.join(tmpFolderPath, testFileName)
32
+ })
33
+
34
test.beforeEach(async ({ page }) => {
35
codeServer = new CodeServer(page)
36
await codeServer.setup()
- // NOTE@jsjoeio
- // We're not using tmpdir from src/node/constants
- // because Playwright doesn't fully support ES modules from
- // the erorrs I'm seeing
- tmpFolderPath = await tmpdir("integrated-terminal")
37
- tmpFile = path.join(tmpFolderPath, testFileName)
38
})
39
40
- test.afterEach(async () => {
+ test.afterAll(async () => {
41
// Ensure directory was removed
42
- fs.rmdirSync(tmpFolderPath, { recursive: true })
+ awaitfs.promises.rmdir(tmpFolderPath, { recursive: true })
43
44
45
test("should echo a string to a file", options, async ({ page }) => {
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments