Const
Custom matchers compatible with both vitest and jest. Register once:
import { expect } from "vitest"; // or "@jest/globals" import { vigilesMatchers } from "vigiles/harness-assert"; expect.extend(vigilesMatchers);
expect(result).toHaveCreated("RESULT"); expect(report).toBeatBaseline("vanilla", "gated", "caught");
Custom matchers compatible with both vitest and jest. Register once:
import { expect } from "vitest"; // or "@jest/globals" import { vigilesMatchers } from "vigiles/harness-assert"; expect.extend(vigilesMatchers);
expect(result).toHaveCreated("RESULT"); expect(report).toBeatBaseline("vanilla", "gated", "caught");