Skip to content

Commit 9867e16

Browse files
stephtrorta
authored andcommitted
[jest-editor-support] update definition (#6212)
According to (the implementation)[https://github.com/facebook/jest/blob/f4f51914d577dc53748f599f3f626dfe3154883e/packages/jest-editor-support/src/Snapshot.js#L106] the first parameter of Snapshot constructor is optional.
1 parent f4f5191 commit 9867e16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/jest-editor-support/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,6 @@ export interface SnapshotMetadata {
179179
}
180180

181181
export class Snapshot {
182-
constructor(parser: any, customMatchers?: string[]);
182+
constructor(parser?: any, customMatchers?: string[]);
183183
getMetadata(filepath: string): SnapshotMetadata[];
184184
}

0 commit comments

Comments
 (0)