projen
Version:
CDK for software projects
19 lines (18 loc) • 723 B
TypeScript
import { Project } from "./project";
import { SnapshotOptions } from "./util/synth";
/**
* A Testing static class with a .synth helper for getting a snapshots of construct outputs.
* Useful for snapshot testing with Jest.
*
* @example `expect(Testing.synth(someProject)).toMatchSnapshot()`
*/
export declare class Testing {
/**
* Produces a simple JS object that represents the contents of the projects with field names being file paths.
* @param project the project to produce a snapshot for
* @return { [filename:string]: any }
*/
static synth(project: Project, options?: SnapshotOptions): Record<string, any>;
private constructor();
}
export { SnapshotOptions } from "./util/synth";