mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-18 07:50:13 +00:00
* test(cli): give each test file its own home so renders never wait on another file's lock * test(cli): pin the cli test config after adding the per-file home setup
9 lines
378 B
TypeScript
9 lines
378 B
TypeScript
import { homedir } from "node:os";
|
|
import { hyperframesCacheDir } from "@hyperframes/core/cache-dir";
|
|
import { expect, it } from "vitest";
|
|
|
|
it("gives each test file its own home, so files never share the per-user render lock", () => {
|
|
expect(homedir()).toMatch(/hf-test-file-home-/);
|
|
expect(hyperframesCacheDir("locks", "render.lock").startsWith(homedir())).toBe(true);
|
|
});
|