Files
reverse-engineering-anything/src/domain/javascript/javascriptSemanticQuerySchemas.test.ts
T

14 lines
450 B
TypeScript

import { expect, it } from "vitest";
import { javaScriptSemanticQueryInputSchema } from "./javascriptSemanticQuerySchemas.js";
it("rejects a source-map authority setting that the query does not consume", () => {
expect(
javaScriptSemanticQueryInputSchema.safeParse({
seed: { kind: "endpoint", value: "/api" },
direction: "forward-influence",
source_map_authority: { authority: "none" },
}).success,
).toBe(false);
});