Class TsJestTransformOptions.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.typescript.TsJestTransformOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<TsJestTransformOptions>
- Enclosing interface:
- TsJestTransformOptions
@Stability(Experimental) public static final class TsJestTransformOptions.Builder extends Object implements software.amazon.jsii.Builder<TsJestTransformOptions>
A builder forTsJestTransformOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
astTransformers
@Stability(Experimental) public TsJestTransformOptions.Builder astTransformers(Map<String,? extends Object> astTransformers)
Sets the value ofTsJestTransformOptions.getAstTransformers()- Parameters:
astTransformers- Custom TypeScript AST transformers.- Returns:
this
-
babelConfig
@Stability(Experimental) public TsJestTransformOptions.Builder babelConfig(TsJestBabelConfig babelConfig)
Sets the value ofTsJestTransformOptions.getBabelConfig()- Parameters:
babelConfig- Babel(Jest) related configuration.- Returns:
this
-
compiler
@Stability(Experimental) public TsJestTransformOptions.Builder compiler(String compiler)
Sets the value ofTsJestTransformOptions.getCompiler()- Parameters:
compiler- TypeScript module to use as compiler.- Returns:
this
-
diagnostics
@Stability(Experimental) public TsJestTransformOptions.Builder diagnostics(TsJestDiagnostics diagnostics)
Sets the value ofTsJestTransformOptions.getDiagnostics()- Parameters:
diagnostics- Diagnostics related configuration.- Returns:
this
-
isolatedModules
@Stability(Experimental) public TsJestTransformOptions.Builder isolatedModules(Boolean isolatedModules)
Sets the value ofTsJestTransformOptions.getIsolatedModules()- Parameters:
isolatedModules- Run ts-jest tests with this TSConfig isolatedModules setting. You'll lose type-checking ability and some features such as const enum, but in the case you plan on using Jest with the cache disabled (jest --no-cache), your tests will then run much faster.- Returns:
this
-
stringifyContentPathRegex
@Stability(Experimental) public TsJestTransformOptions.Builder stringifyContentPathRegex(String stringifyContentPathRegex)
Sets the value ofTsJestTransformOptions.getStringifyContentPathRegex()- Parameters:
stringifyContentPathRegex- Files which will become modules returning self content.- Returns:
this
-
tsconfig
@Stability(Experimental) public TsJestTransformOptions.Builder tsconfig(TsJestTsconfig tsconfig)
Sets the value ofTsJestTransformOptions.getTsconfig()- Parameters:
tsconfig- TypeScript compiler related configuration.- Returns:
this
-
useEsm
@Stability(Experimental) public TsJestTransformOptions.Builder useEsm(Boolean useEsm)
Sets the value ofTsJestTransformOptions#getUseEsm- Parameters:
useEsm- Enable ESM support.- Returns:
this
-
build
@Stability(Experimental) public TsJestTransformOptions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<TsJestTransformOptions>- Returns:
- a new instance of
TsJestTransformOptions - Throws:
NullPointerException- if any required attribute was not provided
-
-