Skip to content

Commit

Permalink
fix: fix unit tests on Node 14
Browse files Browse the repository at this point in the history
at least I hope it does :D
  • Loading branch information
brodo committed Feb 22, 2023
1 parent 1e04ff7 commit a0e32dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/jest-message-util/src/__tests__/messages.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ it('should return the error cause if there is one', () => {
it('should return the inner errors of an AggregateError', () => {
// TODO remove this if when the lowest supported Node version is 15.0.0
// See https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V15.md#v8-86---35415
if (AggregateError) {
if (typeof AggregateError !== 'undefined') {
const aggError = new AggregateError([
new Error('Err 1'),
new Error('Err 2'),
Expand Down

0 comments on commit a0e32dc

Please sign in to comment.