Skip to content

Commit

Permalink
test: fix real timers in error-boundary test
Browse files Browse the repository at this point in the history
  • Loading branch information
atellmer committed Dec 29, 2024
1 parent 1ff23bc commit 53b053e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/src/boundary/boundary.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ describe('@core/error-boundary', () => {
});

test('error-boundary works with async errors correctly', async () => {
jest.useRealTimers();
const make = (hasError: boolean) => {
return new Promise((resolve, reject) => {
setTimeout(() => {
Expand Down

0 comments on commit 53b053e

Please sign in to comment.