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 91db193 commit c727af1
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 @@ -804,7 +804,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 @@ -44,7 +44,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(formatTime(runTime, 0)));
Expand Down

0 comments on commit c727af1

Please sign in to comment.