Skip to content

Commit ebdc5d4

Browse files
handrewscodex
andcommitted
Use build-infra schema test helpers
Co-authored-by: Codex <codex@openai.com>
1 parent dbb9f27 commit ebdc5d4

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tests/schema/schema.test.mjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { readdirSync, readFileSync } from "node:fs";
22
import YAML from "yaml";
3-
import { describe, test, expect } from "vitest";
4-
import { registerSchema } from "@hyperjump/json-schema-coverage/vitest";
3+
import { describe, test, expect } from "@oai/build-infra/test";
4+
import { registerSchema, toMatchJsonSchema } from "@oai/build-infra/schema/vitest";
55
import registerOasSchema from "./oas-schema.mjs";
66

77
const parseYamlFromFile = (filePath) => {
@@ -10,6 +10,7 @@ const parseYamlFromFile = (filePath) => {
1010
};
1111

1212
await registerOasSchema();
13+
expect.extend({ toMatchJsonSchema });
1314
await registerSchema("./src/schemas/validation/schema.yaml");
1415
const fixtures = './tests/schema';
1516

0 commit comments

Comments
 (0)