@types/jest-json-schema
Version:
TypeScript definitions for jest-json-schema
16 lines (13 loc) • 447 B
TypeScript
/// <reference types="jest" />
import ajv = require("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;