Skip to content

Commit

Permalink
chore: smol test type tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
kanadgupta committed Jan 14, 2025
1 parent 92ae8ae commit 9883992
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions __tests__/helpers/vitest.matchers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { ExpectationResult } from '@vitest/expect';
import type { AnySchema } from 'ajv';

import betterAjvErrors from '@readme/better-ajv-errors';
import Ajv from 'ajv';
import { Ajv } from 'ajv';
import jsYaml from 'js-yaml';

interface CustomMatchers<R = unknown> {
Expand All @@ -24,7 +24,6 @@ export function toBeValidSchema(
/** The JSON schema file */
schema: AnySchema,
): ExpectationResult {
// @ts-expect-error this still works, not sure why TS is flagging it
const ajv = new Ajv({ strictTypes: false, strictTuples: false });

const data = jsYaml.load(yaml);
Expand Down

0 comments on commit 9883992

Please sign in to comment.