Skip to content

Commit

Permalink
feat(zone.js): jest 29 should ignore uncaught error console log
Browse files Browse the repository at this point in the history
Close angular#49110

In jest 29, should disable uncaught error console.log.
  • Loading branch information
JiaLiPassion committed Mar 6, 2023
1 parent e1355e7 commit 12358cb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/zone.js/lib/jest/jest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ Zone.__load_patch('jest', (context: any, Zone: ZoneType, api: _ZonePrivate) => {
return;
}


(Zone as any)[api.symbol('ignoreConsoleErrorUncaughtError')] = true;
jest['__zone_patch__'] = true;

const ProxyZoneSpec = (Zone as any)['ProxyZoneSpec'];
Expand Down

0 comments on commit 12358cb

Please sign in to comment.