feat(testing): added --showConfig CLI option to Jest package (#2968)
This commit is contained in:
parent
ac6f52a5a5
commit
41572b3afb
@ -136,6 +136,12 @@ Type: `string`
|
||||
|
||||
The name of a setup file used by Jest. (https://jestjs.io/docs/en/configuration#setupfilesafterenv-array)
|
||||
|
||||
### showConfig
|
||||
|
||||
Type: `boolean`
|
||||
|
||||
Print your Jest config and then exits. (https://jestjs.io/docs/en/cli#--showconfig)
|
||||
|
||||
### silent
|
||||
|
||||
Type: `boolean`
|
||||
|
||||
@ -137,6 +137,12 @@ Type: `string`
|
||||
|
||||
The name of a setup file used by Jest. (https://jestjs.io/docs/en/configuration#setupfilesafterenv-array)
|
||||
|
||||
### showConfig
|
||||
|
||||
Type: `boolean`
|
||||
|
||||
Print your Jest config and then exits. (https://jestjs.io/docs/en/cli#--showconfig)
|
||||
|
||||
### silent
|
||||
|
||||
Type: `boolean`
|
||||
|
||||
@ -182,6 +182,7 @@ describe('Jest Builder', () => {
|
||||
onlyChanged: true,
|
||||
outputFile: 'abc.txt',
|
||||
passWithNoTests: true,
|
||||
showConfig: true,
|
||||
silent: true,
|
||||
testNamePattern: 'test',
|
||||
testPathPattern: ['/test/path'],
|
||||
@ -225,6 +226,7 @@ describe('Jest Builder', () => {
|
||||
onlyChanged: true,
|
||||
outputFile: 'abc.txt',
|
||||
passWithNoTests: true,
|
||||
showConfig: true,
|
||||
silent: true,
|
||||
testNamePattern: 'test',
|
||||
testPathPattern: ['/test/path'],
|
||||
|
||||
@ -81,6 +81,7 @@ function run(
|
||||
outputFile: options.outputFile,
|
||||
passWithNoTests: options.passWithNoTests,
|
||||
runInBand: options.runInBand,
|
||||
showConfig: options.showConfig,
|
||||
silent: options.silent,
|
||||
testLocationInResults: options.testLocationInResults,
|
||||
testNamePattern: options.testNamePattern,
|
||||
|
||||
1
packages/jest/src/builders/jest/schema.d.ts
vendored
1
packages/jest/src/builders/jest/schema.d.ts
vendored
@ -19,6 +19,7 @@ export interface JestBuilderOptions extends JsonObject {
|
||||
outputFile?: string;
|
||||
passWithNoTests?: boolean;
|
||||
runInBand?: boolean;
|
||||
showConfig?: boolean;
|
||||
silent?: boolean;
|
||||
testNamePattern?: string;
|
||||
testPathPattern?: string[];
|
||||
|
||||
@ -80,6 +80,10 @@
|
||||
"description": "Run all tests serially in the current process (rather than creating a worker pool of child processes that run tests). This is sometimes useful for debugging, but such use cases are pretty rare. Useful for CI. (https://jestjs.io/docs/en/cli#runinband)",
|
||||
"type": "boolean"
|
||||
},
|
||||
"showConfig": {
|
||||
"description": "Print your Jest config and then exits. (https://jestjs.io/docs/en/cli#--showconfig)",
|
||||
"type": "boolean"
|
||||
},
|
||||
"silent": {
|
||||
"description": "Prevent tests from printing messages through the console. (https://jestjs.io/docs/en/cli#silent)",
|
||||
"type": "boolean"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user