@Generated(value="jsii-pacmak/1.47.0 (build 86d2c33)", date="2021-12-20T00:39:28.835Z") @Stability(value=Experimental) public class Jest extends software.amazon.jsii.JsiiObject
test will run jest --passWithNoTeststest:watch will run jest --watchtest:update will run jest -u| Modifier and Type | Class and Description |
|---|---|
static class |
Jest.Builder
(experimental) A fluent builder for
Jest. |
| Modifier | Constructor and Description |
|---|---|
protected |
Jest(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Jest(software.amazon.jsii.JsiiObjectRef objRef) |
|
Jest(NodeProject project) |
|
Jest(NodeProject project,
JestOptions options) |
| Modifier and Type | Method and Description |
|---|---|
void |
addIgnorePattern(String pattern) |
void |
addReporter(Object reporter) |
void |
addSnapshotResolver(String file) |
void |
addTestMatch(String pattern)
(experimental) Adds a test match pattern.
|
void |
addTypeScriptSupport(TypescriptConfig tsconfig)
(experimental) Configures jest for TypeScript.
|
void |
addWatchIgnorePattern(String pattern)
(experimental) Adds a watch ignore pattern.
|
Object |
getConfig()
(experimental) Escape hatch.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected Jest(software.amazon.jsii.JsiiObjectRef objRef)
protected Jest(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public Jest(@NotNull
NodeProject project,
@Nullable
JestOptions options)
project - This parameter is required.options - @Stability(value=Experimental)
public Jest(@NotNull
NodeProject project)
project - This parameter is required.@Stability(value=Experimental)
public void addIgnorePattern(@NotNull
String pattern)
pattern - This parameter is required.@Stability(value=Experimental)
public void addReporter(@NotNull
Object reporter)
reporter - This parameter is required.@Stability(value=Experimental)
public void addSnapshotResolver(@NotNull
String file)
file - This parameter is required.@Stability(value=Experimental)
public void addTestMatch(@NotNull
String pattern)
pattern - glob pattern to match for tests. This parameter is required.@Stability(value=Experimental)
public void addTypeScriptSupport(@NotNull
TypescriptConfig tsconfig)
tsconfig - The typescript config file. This parameter is required.@Stability(value=Experimental)
public void addWatchIgnorePattern(@NotNull
String pattern)
pattern - The pattern (regular expression). This parameter is required.@Stability(value=Experimental) @NotNull public Object getConfig()
Copyright © 2021. All rights reserved.