Open History to see the last commit
1import { describe, expect, it } from "vite-plus/test";
2
3import { isScratchProject } from "./projects.ts";
4
5describe("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});