Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MockedProvider is leaving Jest Open Handles #11292

Closed
AndyMeagher opened this issue Oct 16, 2023 · 2 comments · Fixed by #11289
Closed

MockedProvider is leaving Jest Open Handles #11292

AndyMeagher opened this issue Oct 16, 2023 · 2 comments · Fixed by #11289

Comments

@AndyMeagher
Copy link

Issue Description

Any use of the Apollo MockedProvider in Jest tests is throwing the following warning:

Jest has detected the following 1 open handle potentially keeping Jest from exiting

This only started occurring when we upgraded Expo to 49 with React 18.2.0.

I'm linking to a bare bones project demonstrating this. (rn-apollo-client-testbed does not have the correct dependencies)

Link to Reproduction

https://github.com/AndyMeagher/ApolloClientJestBug

Reproduction Steps

  1. Open Reproduction project
  2. Run npm test
@phryneas
Copy link
Member

Good timing - fixed in #11289 ;)

@phryneas phryneas linked a pull request Oct 16, 2023 that will close this issue
3 tasks
Copy link
Contributor

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
For general questions, we recommend using StackOverflow or our discord server.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants