Skip to content

Commit

Permalink
Update utils/buildJsonResults.js
Browse files Browse the repository at this point in the history
Co-authored-by: Jordan Harband <ljharb@gmail.com>
  • Loading branch information
azzlack and ljharb authored Aug 24, 2022
1 parent 64c1804 commit 5bd498f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/buildJsonResults.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ module.exports = function (report, appDirectory, options, rootDir = null) {

// We have all tests passed but a failure in a test hook like in the `beforeAll` method
// Make sure we log them since Jest still reports the suite as failed
if (suite.testExecError !== undefined && suite.testExecError !== null) {
if (suite.testExecError != null) {
const fakeTC = {
status: testFailureStatus,
failureMessages: [JSON.stringify(suite.testExecError)],
Expand Down

0 comments on commit 5bd498f

Please sign in to comment.