Installation
npm install --save @types/chai-jest-snapshot
Summary
This package contains type definitions for chai-jest-snapshot (https://github.com/suchipi/chai-jest-snapshot#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chai-jest-snapshot.
declare global {
namespace Chai {
interface Assertion {
matchSnapshot(snapshotFilename?: string, snapshotName?: string, update?: boolean): Assertion;
matchSnapshot(update: boolean): Assertion;
}
}
}
interface ChaiJestSnapshot extends Chai.ChaiPlugin {
setFilename(filename: string): void;
setTestName(testname: string): void;
configureUsingMochaContext(context: Mocha.Context): void;
resetSnapshotRegistry(): void;
addSerializer(serializer: any): void;
}
declare var ChaiJestSnapshot: ChaiJestSnapshot;
export = ChaiJestSnapshot;
Additional Details
Credits
These definitions were written by Matt Perry.