mirror of
https://github.com/danog/code-server.git
synced 2024-11-27 12:57:13 +01:00
15 lines
445 B
TypeScript
15 lines
445 B
TypeScript
import { promises as fs } from "fs"
|
|
import { tmpdir } from "../../test/utils/helpers"
|
|
|
|
/**
|
|
* This file is for testing test helpers (not core code).
|
|
*/
|
|
describe("test helpers", () => {
|
|
it("should return a temp directory", async () => {
|
|
const testName = "temp-dir"
|
|
const pathToTempDir = await tmpdir(testName)
|
|
expect(pathToTempDir).toContain(testName)
|
|
expect(fs.access(pathToTempDir)).resolves.toStrictEqual(undefined)
|
|
})
|
|
})
|