Const Whether current mode is 'record'.
Whether current mode is 'replay'.
Current operating mode (from UNIMOCK env).
Resolved snapshot directory path.
Convenience namespace bundling the most common Unimock utilities.
import { Unimock } from '@biorate/unimock';
console.log(Unimock.mode); // 'off' | 'record' | 'replay'
Unimock.flush(); // flush all snapshots
Description
Flushes all dirty snapshot stores to disk.