Skip to content

Commit

Permalink
feat(testing): support Webstorm test runner
Browse files Browse the repository at this point in the history
Update jest builer to support the options config, colors, reporters, verbose, and testPathPattern.
  • Loading branch information
dopsonbr committed Aug 25, 2019
1 parent 11b2412 commit fbf3e8d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
8 changes: 4 additions & 4 deletions docs/angular/api-jest/builders/jest.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Forces test results output color highlighting (even if stdout is not a TTY). Set

Type: `boolean`

Forces test results output highlighting even if stdout is not a TTY. (https://jestjs.io/docs/en/cli#colors)
Alias for `--color`.

### config

Expand Down Expand Up @@ -120,7 +120,7 @@ Will not fail if no tests are found (for example while using `--testPathPattern`

Type: `array`

Run tests with specified reporters. Reporter options are not available via CLI. Example with multiple reporters: jest --reporters="default" --reporters="jest-junit" (https://jestjs.io/docs/en/cli#reporters)
Use this configuration option to add custom reporters to Jest. A custom reporter is a class that implements onRunStart, onTestStart, onTestResult, onRunComplete methods that will be called when any of those events occurs

### runInBand

Expand Down Expand Up @@ -184,9 +184,9 @@ Divert all output to stderr.

### verbose

Type: `string`
Type: `boolean`

Display individual test results with the test suite hierarchy. (https://jestjs.io/docs/en/cli#verbose)
Indicates whether each individual test should be reported during the run. All errors will also still be shown on the bottom after execution.

### watch

Expand Down
8 changes: 4 additions & 4 deletions docs/web/api-jest/builders/jest.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Forces test results output color highlighting (even if stdout is not a TTY). Set

Type: `boolean`

Forces test results output highlighting even if stdout is not a TTY. (https://jestjs.io/docs/en/cli#colors)
Alias for `--color`.

### config

Expand Down Expand Up @@ -121,7 +121,7 @@ Will not fail if no tests are found (for example while using `--testPathPattern`

Type: `array`

Run tests with specified reporters. Reporter options are not available via CLI. Example with multiple reporters: jest --reporters="default" --reporters="jest-junit" (https://jestjs.io/docs/en/cli#reporters)
Use this configuration option to add custom reporters to Jest. A custom reporter is a class that implements onRunStart, onTestStart, onTestResult, onRunComplete methods that will be called when any of those events occurs

### runInBand

Expand Down Expand Up @@ -185,9 +185,9 @@ Divert all output to stderr.

### verbose

Type: `string`
Type: `boolean`

Display individual test results with the test suite hierarchy. (https://jestjs.io/docs/en/cli#verbose)
Indicates whether each individual test should be reported during the run. All errors will also still be shown on the bottom after execution.

### watch

Expand Down
7 changes: 4 additions & 3 deletions packages/jest/src/builders/jest/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,18 +90,19 @@
"type": "string"
},
"colors": {
"description": "Forces test results output highlighting even if stdout is not a TTY. (https://jestjs.io/docs/en/cli#colors)",
"description": "Alias for `--color`.",
"type": "boolean"
},
"reporters": {
"description": "Run tests with specified reporters. Reporter options are not available via CLI. Example with multiple reporters: jest --reporters=\"default\" --reporters=\"jest-junit\" (https://jestjs.io/docs/en/cli#reporters)",
"description": "Use this configuration option to add custom reporters to Jest. A custom reporter is a class that implements onRunStart, onTestStart, onTestResult, onRunComplete methods that will be called when any of those events occurs",
"type": "array",
"items": {
"type": "string"
}
},
"verbose": {
"description": "Display individual test results with the test suite hierarchy. (https://jestjs.io/docs/en/cli#verbose)"
"description": "Indicates whether each individual test should be reported during the run. All errors will also still be shown on the bottom after execution.",
"type": "boolean"
},
"coverage": {
"description": "Indicates that test coverage information should be collected and reported in the output. This option is also aliased by --collectCoverage. (https://jestjs.io/docs/en/cli#coverage)",
Expand Down

0 comments on commit fbf3e8d

Please sign in to comment.