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)
|
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
|
### silent
|
||||||
|
|
||||||
Type: `boolean`
|
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)
|
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
|
### silent
|
||||||
|
|
||||||
Type: `boolean`
|
Type: `boolean`
|
||||||
|
|||||||
@ -182,6 +182,7 @@ describe('Jest Builder', () => {
|
|||||||
onlyChanged: true,
|
onlyChanged: true,
|
||||||
outputFile: 'abc.txt',
|
outputFile: 'abc.txt',
|
||||||
passWithNoTests: true,
|
passWithNoTests: true,
|
||||||
|
showConfig: true,
|
||||||
silent: true,
|
silent: true,
|
||||||
testNamePattern: 'test',
|
testNamePattern: 'test',
|
||||||
testPathPattern: ['/test/path'],
|
testPathPattern: ['/test/path'],
|
||||||
@ -225,6 +226,7 @@ describe('Jest Builder', () => {
|
|||||||
onlyChanged: true,
|
onlyChanged: true,
|
||||||
outputFile: 'abc.txt',
|
outputFile: 'abc.txt',
|
||||||
passWithNoTests: true,
|
passWithNoTests: true,
|
||||||
|
showConfig: true,
|
||||||
silent: true,
|
silent: true,
|
||||||
testNamePattern: 'test',
|
testNamePattern: 'test',
|
||||||
testPathPattern: ['/test/path'],
|
testPathPattern: ['/test/path'],
|
||||||
|
|||||||
@ -81,6 +81,7 @@ function run(
|
|||||||
outputFile: options.outputFile,
|
outputFile: options.outputFile,
|
||||||
passWithNoTests: options.passWithNoTests,
|
passWithNoTests: options.passWithNoTests,
|
||||||
runInBand: options.runInBand,
|
runInBand: options.runInBand,
|
||||||
|
showConfig: options.showConfig,
|
||||||
silent: options.silent,
|
silent: options.silent,
|
||||||
testLocationInResults: options.testLocationInResults,
|
testLocationInResults: options.testLocationInResults,
|
||||||
testNamePattern: options.testNamePattern,
|
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;
|
outputFile?: string;
|
||||||
passWithNoTests?: boolean;
|
passWithNoTests?: boolean;
|
||||||
runInBand?: boolean;
|
runInBand?: boolean;
|
||||||
|
showConfig?: boolean;
|
||||||
silent?: boolean;
|
silent?: boolean;
|
||||||
testNamePattern?: string;
|
testNamePattern?: string;
|
||||||
testPathPattern?: 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)",
|
"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"
|
"type": "boolean"
|
||||||
},
|
},
|
||||||
|
"showConfig": {
|
||||||
|
"description": "Print your Jest config and then exits. (https://jestjs.io/docs/en/cli#--showconfig)",
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
"silent": {
|
"silent": {
|
||||||
"description": "Prevent tests from printing messages through the console. (https://jestjs.io/docs/en/cli#silent)",
|
"description": "Prevent tests from printing messages through the console. (https://jestjs.io/docs/en/cli#silent)",
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user