From f7a6b45571ef51a69576e50827b55dcaed46ce80 Mon Sep 17 00:00:00 2001 From: "Henry H. Andrews" Date: Thu, 13 Aug 2026 14:54:53 -0700 Subject: [PATCH] Use build-infra schema test helpers Co-authored-by: Codex --- tests/schema/schema.test.mjs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/schema/schema.test.mjs b/tests/schema/schema.test.mjs index e7b84f0a74..26befac4d3 100644 --- a/tests/schema/schema.test.mjs +++ b/tests/schema/schema.test.mjs @@ -1,7 +1,7 @@ import { readdirSync, readFileSync } from "node:fs"; import YAML from "yaml"; -import { describe, test, expect } from "vitest"; -import { registerSchema } from "@hyperjump/json-schema-coverage/vitest"; +import { describe, test, expect } from "@oai/build-infra/test"; +import { registerSchema, toMatchJsonSchema } from "@oai/build-infra/schema/vitest"; import registerOasSchema from "./oas-schema.mjs"; const parseYamlFromFile = (filePath) => { @@ -10,6 +10,7 @@ const parseYamlFromFile = (filePath) => { }; await registerOasSchema(); +expect.extend({ toMatchJsonSchema }); await registerSchema("./src/schemas/validation/schema.yaml"); const fixtures = './tests/schema';