Class TsJestOptions.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.typescript.TsJestOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<TsJestOptions>
- Enclosing interface:
- TsJestOptions
@Stability(Experimental) public static final class TsJestOptions.Builder extends Object implements software.amazon.jsii.Builder<TsJestOptions>
A builder forTsJestOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TsJestOptionsbuild()Builds the configured instance.TsJestOptions.BuildertransformOptions(TsJestTransformOptions transformOptions)Sets the value ofTsJestOptions.getTransformOptions()TsJestOptions.BuildertransformPattern(String transformPattern)Sets the value ofTsJestOptions.getTransformPattern()
-
-
-
Method Detail
-
transformOptions
@Stability(Experimental) public TsJestOptions.Builder transformOptions(TsJestTransformOptions transformOptions)
Sets the value ofTsJestOptions.getTransformOptions()- Parameters:
transformOptions- Override the default ts-jest transformer configuration.- Returns:
this
-
transformPattern
@Stability(Experimental) public TsJestOptions.Builder transformPattern(String transformPattern)
Sets the value ofTsJestOptions.getTransformPattern()- Parameters:
transformPattern- Which files should ts-jest act upon.- Returns:
this
-
build
@Stability(Experimental) public TsJestOptions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<TsJestOptions>- Returns:
- a new instance of
TsJestOptions - Throws:
NullPointerException- if any required attribute was not provided
-
-