The best way to control Claude Code, Codex and more from any computer or phone
| 1 | import { describe, expect, it } from "vite-plus/test"; |
| 2 | |
| 3 | import { isScratchProject } from "./projects.ts"; |
| 4 | |
| 5 | describe("isScratchProject", () => { |
| 6 | it.each([null, undefined])( |
| 7 | "recognises a loaded scratch project when its environment offers no available root (%s)", |
| 8 | (scratchWorkspaceRoot) => { |
| 9 | const project = { workspaceRoot: "/remote/scratch", isScratch: true as const }; |
| 10 | |
| 11 | expect(isScratchProject(project, scratchWorkspaceRoot)).toBe(true); |
| 12 | }, |
| 13 | ); |
| 14 | }); |