Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Wrap functions w/ a callback in a named function
Wrap test and lifecycle functions that take a `done` callback in a named function so that they can be detected as user code in the call stack. This lets the `collectHandles` module in jest-core know to track async resources created in those functions. Fixes jestjs#11377.
- Loading branch information