mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Updated pinned dependencies `jest-diff` and `pretty-format` were previously pinned in #43531 to work around backwards compatibility issues with the typescript definitions. Facebook added tooling to allow down-leveling their type definition in facebook/jest@d4057ce, which landed in 25.2.7, so bump the semver dependency to this. * Pick an older version, this change is available in 25.2.1 * Bump min version to typescript 3.1 * Bump additional typescript versions
22 lines
734 B
TypeScript
22 lines
734 B
TypeScript
// Type definitions for jest-json-schema 2.1
|
|
// Project: https://github.com/americanexpress/jest-json-schema#readme
|
|
// Definitions by: Igor Korolev <https://github.com/deadNightTiger>
|
|
// Matt Scheurich <https://github.com/lvl99>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 3.1
|
|
|
|
/// <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 function matchersWithOptions(options: ajv.Options, extendAjv?: (ajv: ajv.Ajv) => void): jest.ExpectExtendMap;
|