UNPKG

add-matchers

Version:

Write useful test matchers compatible with Jest and Jasmine.

12 lines (11 loc) 567 B
/// <reference types="jasmine-v1" /> /// <reference types="jasmine-v2" /> import { CustomMatcher } from '.'; export declare type JasmineV1CustomMatcher = (this: jasmine.Matchers<any>, ...args: any[]) => boolean; export declare type JasmineV1MatcherAdapter = (name: string, matcher: CustomMatcher) => JasmineV1CustomMatcher; export interface JasmineV1MatchersByName { [name: string]: JasmineV1CustomMatcher; } export declare const getJasmineV1Adapter: (scope: jasmine.Env) => (name: string, matcher: CustomMatcher) => { [x: string]: JasmineV1CustomMatcher; };