jest-file-snapshot
Advanced tools
Comparing version
@@ -5,14 +5,28 @@ /// <reference types="jest" /> | ||
| declare type FileMatcherOptions = { | ||
| diff: DiffOptions | ||
| declare module 'jest-file-snapshot' { | ||
| export const toMatchFile: jest.CustomMatcher; | ||
| } | ||
| declare namespace jest { | ||
| interface Matchers<R> { | ||
| toMatchFile: (output: string, filename?: string, options?: FileMatcherOptions) => void | ||
| } | ||
| declare interface FileMatcherOptions { | ||
| diff: DiffOptions; | ||
| } | ||
| interface Expect { | ||
| toMatchFile: (output: string, filename?: string, options?: FileMatcherOptions) => void | ||
| declare global { | ||
| namespace jest { | ||
| interface Matchers<R> { | ||
| toMatchFile: ( | ||
| output: string, | ||
| filename?: string, | ||
| options?: FileMatcherOptions | ||
| ) => void; | ||
| } | ||
| interface Expect { | ||
| toMatchFile: ( | ||
| output: string, | ||
| filename?: string, | ||
| options?: FileMatcherOptions | ||
| ) => void; | ||
| } | ||
| } | ||
| } |
| { | ||
| "name": "jest-file-snapshot", | ||
| "version": "0.3.2", | ||
| "version": "0.3.3", | ||
| "description": "", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
6813
2.81%128
11.3%