| Modifier and Type | Method and Description |
|---|---|
Jest |
build() |
Jest.Builder |
configFilePath(String configFilePath)
(experimental) Path to JSON config file for Jest.
|
Jest.Builder |
coverage(Boolean coverage)
Deprecated.
use jestConfig.collectCoverage
|
Jest.Builder |
coverageText(Boolean coverageText)
(experimental) Include the `text` coverage reporter, which means that coverage summary is printed at the end of the jest execution.
|
static Jest.Builder |
create(NodeProject project) |
Jest.Builder |
ignorePatterns(List<String> ignorePatterns)
Deprecated.
use jestConfig.coveragePathIgnorePatterns or jestConfig.testPathIgnorePatterns respectively
|
Jest.Builder |
jestConfig(JestConfigOptions jestConfig)
(experimental) Jest configuration.
|
Jest.Builder |
jestVersion(String jestVersion)
(experimental) The version of jest to use.
|
Jest.Builder |
junitReporting(Boolean junitReporting)
(experimental) Result processing with jest-junit.
|
Jest.Builder |
preserveDefaultReporters(Boolean preserveDefaultReporters)
(experimental) Preserve the default Jest reporter when additional reporters are added.
|
@Stability(value=Experimental) public static Jest.Builder create(NodeProject project)
project - This parameter is required.Jest.Builder.@Stability(value=Experimental) public Jest.Builder configFilePath(String configFilePath)
Default: - No separate config file, jest settings are stored in package.json
configFilePath - Path to JSON config file for Jest. This parameter is required.this@Stability(value=Deprecated) @Deprecated public Jest.Builder coverage(Boolean coverage)
Deprecated
Default: true
coverage - Collect coverage. This parameter is required.this@Stability(value=Experimental) public Jest.Builder coverageText(Boolean coverageText)
Default: true
coverageText - Include the `text` coverage reporter, which means that coverage summary is printed at the end of the jest execution. This parameter is required.this@Stability(value=Deprecated) @Deprecated public Jest.Builder ignorePatterns(List<String> ignorePatterns)
Default: ["/node_modules/"]
ignorePatterns - Defines `testPathIgnorePatterns` and `coveragePathIgnorePatterns`. This parameter is required.this@Stability(value=Experimental) public Jest.Builder jestConfig(JestConfigOptions jestConfig)
Default: - default jest configuration
jestConfig - Jest configuration. This parameter is required.this@Stability(value=Experimental) public Jest.Builder jestVersion(String jestVersion)
Default: - installs the latest jest version
jestVersion - The version of jest to use. This parameter is required.this@Stability(value=Experimental) public Jest.Builder junitReporting(Boolean junitReporting)
Output directory is test-reports/.
Default: true
junitReporting - Result processing with jest-junit. This parameter is required.this@Stability(value=Experimental) public Jest.Builder preserveDefaultReporters(Boolean preserveDefaultReporters)
Default: true
preserveDefaultReporters - Preserve the default Jest reporter when additional reporters are added. This parameter is required.thisCopyright © 2021. All rights reserved.