mocha-chai-jest-snapshot
Version:
provides snapshot testing like jest
15 lines (14 loc) • 799 B
TypeScript
/**
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import { SnapshotSummary, TestResult } from "@jest/test-result";
import { SnapshotState } from "jest-snapshot";
type SnapshotStateOptions = ConstructorParameters<typeof SnapshotState>[1];
type SnapshotResult = TestResult["snapshot"];
export { SnapshotSummary };
export declare const makeEmptySnapshotSummary: (options: SnapshotStateOptions) => SnapshotSummary;
export declare const packSnapshotState: (snapshotState: SnapshotState) => SnapshotResult;
export declare const addSnapshotResult: (snapshotSummary: SnapshotSummary, snapshotResult: SnapshotResult, testFilePath: string) => void;