fix(testing): allow jest --bail flag type to be either boolean or number (#3181)

This commit is contained in:
Adam L Barrett 2020-06-19 14:20:24 -06:00 committed by GitHub
parent 3cc2521914
commit 7b27ba4daa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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;

View File

@ -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)",