fix(testing): allow jest --bail flag type to be either boolean or number (#3181)
This commit is contained in:
parent
3cc2521914
commit
7b27ba4daa
@ -10,7 +10,7 @@ Builder properties can be configured in angular.json when defining the builder,
|
||||
|
||||
Alias(es): b
|
||||
|
||||
Type: `number`
|
||||
Type: `number | boolean`
|
||||
|
||||
Exit the test suite immediately after `n` number of failing tests. (https://jestjs.io/docs/en/cli#bail)
|
||||
|
||||
|
||||
@ -11,7 +11,7 @@ Read more about how to use builders and the CLI here: https://nx.dev/react/guide
|
||||
|
||||
Alias(es): b
|
||||
|
||||
Type: `number`
|
||||
Type: `number | boolean`
|
||||
|
||||
Exit the test suite immediately after `n` number of failing tests. (https://jestjs.io/docs/en/cli#bail)
|
||||
|
||||
|
||||
2
packages/jest/src/builders/jest/schema.d.ts
vendored
2
packages/jest/src/builders/jest/schema.d.ts
vendored
@ -8,7 +8,7 @@ export interface JestBuilderOptions extends JsonObject {
|
||||
testFile?: string;
|
||||
setupFile?: string;
|
||||
tsConfig: string;
|
||||
bail?: number;
|
||||
bail?: boolean | number;
|
||||
ci?: boolean;
|
||||
color?: boolean;
|
||||
clearCache?: boolean;
|
||||
|
||||
@ -39,7 +39,7 @@
|
||||
"bail": {
|
||||
"alias": "b",
|
||||
"description": "Exit the test suite immediately after `n` number of failing tests. (https://jestjs.io/docs/en/cli#bail)",
|
||||
"type": "number"
|
||||
"oneOf": [{ "type": "number" }, { "type": "boolean" }]
|
||||
},
|
||||
"ci": {
|
||||
"description": "Whether to run Jest in continuous integration (CI) mode. This option is on by default in most popular CI environments. It will prevent snapshots from being written unless explicitly requested. (https://jestjs.io/docs/en/cli#ci)",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user