UNPKG

@types/jest-json-schema

Version:
16 lines (13 loc) 446 B
/// <reference types="jest" /> import * as ajv from "ajv"; declare global { namespace jest { interface Matchers<R, T> { toBeValidSchema(): R; toMatchSchema(schema: object): R; } } } export const matchers: jest.ExpectExtendMap; export type Options = ajv.Options & { AjvClass?: any }; export function matchersWithOptions(options: Options, extendAjv?: (ajv: ajv.Ajv) => void): jest.ExpectExtendMap;