test.rules/shared/strings/manifest.strings.test.ts
test.rules/shared/strings/manifest.strings.test.ts is a file in Codebase Testing. 9 lines of code and 0 definitions.
import { describe, expect, it } from "vitest";
import { noPackageName, notJsonObject, notValidJson } from "@ssot/govlab/shared/strings/manifest.strings.ts";
describe("the manifest reader errors", () => {
it("name the file each refusal is about", () => {
expect(notValidJson("a/package.json")).toContain("a/package.json is not valid JSON");
expect(notJsonObject("a/package.json")).toContain("a/package.json does not hold a JSON object");
expect(noPackageName("a")).toContain("a declares no package name");
});
});