Change8
Error1 reports

Fix AggregateError

in Jest

Solution

AggregateError in Jest usually indicates multiple unhandled promise rejections or exceptions occurring concurrently within a test case or test suite. To fix it, ensure all promises have proper `.catch()` handlers or use `try...catch` blocks around asynchronous operations, and verify that `async` functions always handle potential errors to prevent uncaught exceptions from propagating up and being aggregated.

Related Issues

Real GitHub issues where developers encountered this error:

Timeline

First reported:Jun 11, 2025
Last reported:Jun 11, 2025

Need More Help?

View the full changelog and migration guides for Jest

View Jest Changelog