npm.io
1.0.4 • Published 2 years ago

@types/chai-snapshot-matcher

Licence
MIT
Version
1.0.4
Deps
2
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

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

/// <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

Credits

These definitions were written by tpluscode.