UNPKG

1.09 kBTypeScriptView Raw
1import { JestFriendlyAssertion } from '../assertion';
2import { StackInspector } from '../inspector';
3/**
4 * Interface for haveOutput function properties
5 * NOTE that at least one of [outputName, exportName] should be provided
6 */
7export interface HaveOutputProperties {
8 /**
9 * Logical ID of the output
10 * @default - the logical ID of the output will not be checked
11 */
12 outputName?: string;
13 /**
14 * Export name of the output, when it's exported for cross-stack referencing
15 * @default - the export name is not required and will not be checked
16 */
17 exportName?: any;
18 /**
19 * Value of the output;
20 * @default - the value will not be checked
21 */
22 outputValue?: any;
23}
24/**
25 * An assertion to check whether Output with particular properties is present in a stack
26 * @param props properties of the Output that is being asserted against.
27 * Check ``HaveOutputProperties`` interface to get full list of available parameters
28 */
29export declare function haveOutput(props: HaveOutputProperties): JestFriendlyAssertion<StackInspector>;