diff --git a/types/base.d.ts b/types/base.d.ts index 586ec6a36..84a79553e 100644 --- a/types/base.d.ts +++ b/types/base.d.ts @@ -7,6 +7,9 @@ export type ErrorValidator export interface Observable { subscribe(observer: (value: {}) => void): void; } +export interface SnapshotOptions { + id?: string; +} export type Test = (t: TestContext) => PromiseLike | Iterator | Observable | void; export type GenericTest = (t: GenericTestContext) => PromiseLike | Iterator | Observable | void; export type CallbackTest = (t: CallbackTestContext) => void; @@ -78,6 +81,7 @@ export interface AssertContext { * Assert that contents matches a snapshot. */ snapshot(contents: any, message?: string): void; + snapshot(contents: any, options: SnapshotOptions, message?: string): void; /** * Assert that contents does not match regex. */