Skip to content

Commit

Permalink
refactor: update setupTest file
Browse files Browse the repository at this point in the history
  • Loading branch information
mashal-m committed Mar 17, 2023
1 parent 69ebb56 commit eb5c392
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/setupTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,7 @@ Object.defineProperty(window, 'matchMedia', {
// See https://github.com/atlassian/react-beautiful-dnd/issues/1593
window['__react-beautiful-dnd-disable-dev-warnings'] = true;

// Upgrading to Node16 shows unhandledPromiseRejection warnings as errors so adding a handler
process.on('unhandledRejection', (reason, p) => {
console.log('Unhandled Rejection at: Promise', p, 'reason:', reason.stack);
});

0 comments on commit eb5c392

Please sign in to comment.