diff --git a/index.js.flow b/index.js.flow index 54367a94e..942e35395 100644 --- a/index.js.flow +++ b/index.js.flow @@ -68,6 +68,8 @@ type AssertContext = { }; // Assert that contents matches regex. regex(contents: string, regex: RegExp, message?: string): void; + // Assert that contents matches a snapshot. + snapshot(contents: any, message?: string): void; // Assert that contents does not match regex. notRegex(contents: string, regex: RegExp, message?: string): void; // Assert that error is falsy.