grep.test.ts 486 B

123456789101112
  1. import { describe, expect, it } from "vitest";
  2. import { GrepErrorCode } from "../src/tools/grep.js";
  3. import type { FileSystemErrorCode } from "../src/interfaces/file-system.port.js";
  4. describe("Grep contracts", () => {
  5. it("declares stable cancelled error codes across grep and file system search", () => {
  6. const fileSystemCode: FileSystemErrorCode = "cancelled";
  7. expect(fileSystemCode).toBe("cancelled");
  8. expect(GrepErrorCode.CANCELLED).toBe("grep_cancelled");
  9. });
  10. });