@types/chai-snapshot-matcher
Version:
TypeScript definitions for chai-snapshot-matcher
39 lines (30 loc) • 1.25 kB
Markdown
# Installation
> `npm install --save @types/chai-snapshot-matcher`
# Summary
This package contains type definitions for chai-snapshot-matcher (https://github.com/tlameiras/chai-snapshot#readme).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chai-snapshot-matcher.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chai-snapshot-matcher/index.d.ts)
````ts
/// <reference types="chai" />
import { Context } from "mocha";
declare global {
namespace Chai {
interface Assertion {
matchSnapshot(that: Context, hint?: string): void;
matchSpecificSnapshot(that: Context, options?: {
hint?: string | undefined;
name?: string | undefined;
folder?: string | undefined;
snapshotPath?: string | undefined;
}): void;
}
}
}
export {};
````
### Additional Details
* Last updated: Mon, 06 Nov 2023 22:41:05 GMT
* Dependencies: [@types/chai](https://npmjs.com/package/@types/chai), [@types/mocha](https://npmjs.com/package/@types/mocha)
# Credits
These definitions were written by [tpluscode](https://github.com/tpluscode).