Files
hyperframes/packages/cli/src/utils/testFileHome.test.ts
T
Miguel Ángel 2b86c49dc2 test(cli): give each test file its own home so renders never wait on another file's lock (#7526)
* 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
2026-11-11 02:58:32 +00:00

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);
});