jest-snapshot

  • Version 27.4.6
  • Published
  • 93.2 kB
  • 22 dependencies
  • MIT license

Install

npm i jest-snapshot
yarn add jest-snapshot
pnpm add jest-snapshot

Overview

Overview not available.

Index

Variables

variable JestSnapshot

const JestSnapshot: {
EXTENSION: string;
SnapshotState: typeof SnapshotState;
addSerializer: (plugin: any) => void;
buildSnapshotResolver: (
config: Config.ProjectConfig,
localRequire?:
| ((module: string) => unknown)
| Promise<(module: string) => unknown>
) => Promise<JestSnapshotResolver>;
cleanup: (
hasteFS: HasteFS,
update: Config.SnapshotUpdateState,
snapshotResolver: JestSnapshotResolver,
testPathIgnorePatterns?: string[] | undefined
) => { filesRemoved: number; filesRemovedList: Array<string> };
getSerializers: () => import('pretty-format').Plugins;
isSnapshotPath: (path: string) => boolean;
toMatchInlineSnapshot: (
this: Context,
received: unknown,
propertiesOrSnapshot?: string | object | undefined,
inlineSnapshot?: string | undefined
) => ExpectationResult;
toMatchSnapshot: (
this: Context,
received: unknown,
propertiesOrHint?: string | object | undefined,
hint?: string | undefined
) => ExpectationResult;
toThrowErrorMatchingInlineSnapshot: (
this: Context,
received: unknown,
inlineSnapshot?: string | undefined,
fromPromise?: boolean | undefined
) => ExpectationResult;
toThrowErrorMatchingSnapshot: (
this: Context,
received: unknown,
hint: string | undefined,
fromPromise: boolean
) => ExpectationResult;
utils: typeof utils;
};

    Type Aliases

    type SnapshotResolver

    type SnapshotResolver = JestSnapshotResolver;

      type SnapshotStateType

      type SnapshotStateType = SnapshotState;

        Package Files (1)

        Dependencies (22)

        Dev Dependencies (9)

        Peer Dependencies (0)

        No peer dependencies.

        Badge

        To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

        You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/jest-snapshot.

        • Markdown
          [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/jest-snapshot)
        • HTML
          <a href="https://www.jsdocs.io/package/jest-snapshot"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>