Skip to content

Commit

Permalink
Add unhandledRejection #187
Browse files Browse the repository at this point in the history
  • Loading branch information
mapeveri committed Feb 21, 2025
1 parent 6a9f467 commit c16b884
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@ process.env.NODE_ENV = 'test';

const envTestPath = `${path.dirname(__dirname)}/.env.test`;
require('dotenv').config({ path: envTestPath });

process.on('unhandledRejection', (reason) => {
console.warn('Unhandled rejection detected:', reason);
});

0 comments on commit c16b884

Please sign in to comment.