UNPKG

earljs

Version:

Ergonomic, modern and type-safe assertion library

10 lines (9 loc) 548 B
import { TestInfo } from '../../test-runners'; import { UpdateSnapshotMode } from './compareSnapshot'; export declare type Env = typeof process.env; export declare type ShouldUpdateSnapshots = () => boolean; export declare function shouldUpdateSnapshots(env: Env): boolean; export declare function getSnapshotFilePath(testFilePath: string): string; export declare function getSnapshotFullName(testInfo: TestInfo): string; export declare function isCI(env: Env): boolean; export declare function getUpdateSnapshotMode(env: Env): UpdateSnapshotMode;