Skip to content

Commit 928780d

Browse files
committed
Move temp test dirs under a tests sub-directory
This is to match the other tests that create temp directories. It also lets you clean up test temp directories all at once separately from other non-test temporary directories.
1 parent c07f670 commit 928780d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/utils/helpers.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ export const loggerModule = {
2020
* These directories are placed under a single temporary code-server directory.
2121
*/
2222
export async function tmpdir(testName: string): Promise<string> {
23-
const dir = path.join(os.tmpdir(), "code-server")
23+
const dir = path.join(os.tmpdir(), "code-server/tests")
2424
await fs.promises.mkdir(dir, { recursive: true })
2525

26-
return await fs.promises.mkdtemp(path.join(dir, `test-${testName}-`), { encoding: "utf8" })
26+
return await fs.promises.mkdtemp(path.join(dir, `${testName}-`), { encoding: "utf8" })
2727
}

0 commit comments

Comments
 (0)