Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add definitions from within jest-editor-support
  • Loading branch information
stephtr committed Feb 20, 2018
commit 1f116bba92c005d3c1ff07e8687f7f330461d992
15 changes: 15 additions & 0 deletions packages/jest-editor-support/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,3 +164,18 @@ export enum messageTypes {
}

export type MessageType = number;

export type Node = any;

export interface SnapshotMetadata {
exists: boolean;
name: string;
node: Node;
content?: string;
};

export class Snapshot {
constructor(parser: any, customMatchers?: string[]);
getMetadata(filepath: string): SnapshotMetadata[];

}