1.0.4 • Published 7 months ago

@types/chai-snapshot-matcher v1.0.4

Weekly downloads
811
License
MIT
Repository
github
Last release
7 months ago

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

// Type definitions for chai-snapshot-matcher 1.0
// Project: https://github.com/tlameiras/chai-snapshot#readme
// Definitions by: tpluscode <https://github.com/tpluscode>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.0

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