Skip to content

Commit

Permalink
fix: handle unhandled rejection silent
Browse files Browse the repository at this point in the history
  • Loading branch information
magiziz authored and DanielSinclair committed Jan 16, 2024
1 parent 59561bb commit 6a609e0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/rainbowkit/test/setup.ts
Expand Up @@ -2,6 +2,10 @@ import '@testing-library/jest-dom';
import { cleanup } from '@testing-library/react';
import { afterEach } from 'vitest';

process.on('unhandledRejection', (reason) => {
console.log(`FAILED TO HANDLE PROMISE REJECTION: ${JSON.stringify(reason)}`);
});

afterEach(() => {
cleanup();
});

0 comments on commit 6a609e0

Please sign in to comment.