Socket
Socket
Sign inDemoInstall

@types/jest-specific-snapshot

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/jest-specific-snapshot

TypeScript definitions for jest-specific-snapshot


Version published
Weekly downloads
158K
increased by12.91%
Maintainers
1
Weekly downloads
 
Created
Source

Installation

npm install --save @types/jest-specific-snapshot

Summary

This package contains type definitions for jest-specific-snapshot (https://github.com/igor-dv/jest-specific-snapshot#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jest-specific-snapshot.

index.d.ts

/// <reference types="jest" />

declare global {
    namespace jest {
        interface Matchers<R, T> {
            toMatchSpecificSnapshot(snapshotFilename: string): R;
        }
    }
}

/**
 * Specify the serializer that should be used by toMatchSpecificSnapshot.
 * Note: toMatchSpecificSnapshot ignores the existing jest snapshot serializer settings. If you want to use a custom serializer,
 * you need to set it via this addSerializer function.
 */
export function addSerializer(serializer: any): void;

/**
 * This is used to create a customized version of toMatchSpecificSnapshot.
 */
export function toMatchSpecificSnapshot(
    data: any,
    snapshotFile: string,
    testName: string,
): () => { message(): string; pass: boolean };

Additional Details

  • Last updated: Wed, 18 Oct 2023 01:17:35 GMT
  • Dependencies: @types/jest

Credits

These definitions were written by Janeene Beeforth.

FAQs

Package last updated on 18 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc