Package io.github.cdklabs.projen
Class Testing
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- io.github.cdklabs.projen.Testing
-
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.96.0 (build 921e240)", date="2024-03-28T21:16:42.813Z") @Stability(Experimental) public class Testing extends software.amazon.jsii.JsiiObject
(experimental) 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()`
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Map<String,Object>synth(Project project)(experimental) Produces a simple JS object that represents the contents of the projects with field names being file paths.static Map<String,Object>synth(Project project, SnapshotOptions options)(experimental) Produces a simple JS object that represents the contents of the projects with field names being file paths.-
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
-
-
-
Method Detail
-
synth
@Stability(Experimental) @NotNull public static Map<String,Object> synth(@NotNull Project project, @Nullable SnapshotOptions options)
(experimental) Produces a simple JS object that represents the contents of the projects with field names being file paths.- Parameters:
project- the project to produce a snapshot for. This parameter is required.options-- Returns:
- : any }
-
synth
@Stability(Experimental) @NotNull public static Map<String,Object> synth(@NotNull Project project)
(experimental) Produces a simple JS object that represents the contents of the projects with field names being file paths.- Parameters:
project- the project to produce a snapshot for. This parameter is required.- Returns:
- : any }
-
-