Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Simen Bekkhus <sbekkhus91@gmail.com>
  • Loading branch information
Draco-Umbratilis and SimenB committed Jul 28, 2020
1 parent 582775e commit 99ad223
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/Configuration.md
Expand Up @@ -783,7 +783,7 @@ jest.setTimeout(10000); // in milliseconds

Default: `5`

A number of seconds after which a test is considered as slow and reported as such in the results.
The number of seconds after which a test is considered as slow and reported as such in the results.

### `snapshotResolver` [string]

Expand Down
2 changes: 1 addition & 1 deletion packages/jest-reporters/src/get_result_header.ts
Expand Up @@ -43,7 +43,7 @@ export default (

const testDetail = [];

if (result.perfStats && result.perfStats.slow) {
if (result.perfStats?.slow) {
const runTime = (result.perfStats.end - result.perfStats.start) / 1000;

testDetail.push(LONG_TEST_COLOR(runTime + 's'));
Expand Down

0 comments on commit 99ad223

Please sign in to comment.