UNPKG

@microsoft/jest-sarif

Version:

A collection of jest matchers for working with SARIF

26 lines 872 B
/// <reference types="jest" /> import { Definition } from '../types'; declare global { namespace jest { interface Matchers<R> { /** * Asserts that actual value matches a valid SARIF @type {Definition}. * @example * expect(value).toBeValidSarifFor(); */ toBeValidSarifFor(definition: Definition): R; } interface Expect { /** * Asserts that actual value matches a valid SARIF @type {Definition}. * @example * expect(value).toEqual( * expect.toBeValidSarifFor() * ); */ toBeValidSarifFor<T>(definition: Definition): jest.JestMatchers<T>; } } } export declare const toBeValidSarifFor: jest.CustomMatcher; //# sourceMappingURL=to-be-valid-sarif-for.d.ts.map