Archived
1
0

refactor: move tmpdir into src/node/constants

This commit is contained in:
Joe Previte
2021-04-21 13:22:11 -07:00
parent cc99fddf24
commit cb65590b98
8 changed files with 20 additions and 13 deletions

View File

@ -29,6 +29,10 @@ test.describe("Integrated Terminal", () => {
})
test("should echo a string to a file", options, async ({ page }) => {
// 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
const tmpFolderPath = fs.mkdtempSync(path.join(tmpdir(), "code-server-test"))
const tmpFile = `${tmpFolderPath}${path.sep}${testFileName}`
// Open terminal and type in value