@japa/snapshot
Version:
Snapshot testing plugin for Japa
12 lines (11 loc) • 334 B
TypeScript
import type { InlineSnapshotData } from '../types.js';
export declare class InlineSnapshotInserter {
#private;
/**
* Insert the given snapshot in the code. Returns the modified code
*/
static insert(code: string, snapshots: InlineSnapshotData[]): {
hasChanged: boolean;
newCode: string;
};
}