@microsoft/jest-sarif
Version:
A collection of jest matchers for working with SARIF
25 lines • 787 B
TypeScript
/// <reference types="jest" />
declare global {
namespace jest {
interface Matchers<R> {
/**
* Asserts that actual value matches a valid SARIF @type {Sarif.Log}.
* @example
* expect(value).toBeValidSarifLog();
*/
toBeValidSarifLog(): R;
}
interface Expect {
/**
* Asserts that actual value matches a valid SARIF @type {Sarif.Log}.
* @example
* expect(value).toEqual(
* expect.toBeValidSarifLog()
* );
*/
toBeValidSarifLog<T>(): jest.JestMatchers<T>;
}
}
}
export declare const toBeValidSarifLog: jest.CustomMatcher;
//# sourceMappingURL=to-be-valid-sarif-log.d.ts.map