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

Make @apollo/client/testing a fully-fledged, independent entry point #8769

Merged
merged 2 commits into from
Sep 13, 2021

Conversation

benjamn
Copy link
Member

@benjamn benjamn commented Sep 10, 2021

Addresses #8687 (comment).

Until now, the @apollo/client/testing entry point has merely re-exported the contents of @apollo/client/utilities/testing, even though the latter is not an official entry point, leading to "Risky cross-entry-point nested import..." warnings during build.

This commit moves the contents of @apollo/client/utilities/testing to reside within @apollo/client/testing, which should be safe because @apollo/client/testing was the only safe way to access these modules previously.

#8687 (comment)

Until now, the `@apollo/client/testing` entry point has merely
re-exported the contents of `@apollo/client/utilities/testing`, even
though the latter is not an official entry point, leading to "Risky
cross-entry-point nested import..." warnings during build.

This commit moves the contents of `@apollo/client/utilities/testing` to
reside within `@apollo/client/testing`, which should be safe
because `@apollo/client/testing` was the only safe way to access these
modules previously.
@benjamn benjamn changed the base branch from main to release-3.5 September 10, 2021 22:42
@benjamn benjamn force-pushed the make-@apollo/client/testing-an-entry-point branch from 9861f01 to bc9f401 Compare September 10, 2021 22:43
Copy link
Member

@hwillson hwillson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great to me - thanks @benjamn!

@benjamn benjamn merged commit 0d7fc64 into release-3.5 Sep 13, 2021
@benjamn benjamn deleted the make-@apollo/client/testing-an-entry-point branch September 13, 2021 14:31
@benjamn benjamn restored the make-@apollo/client/testing-an-entry-point branch September 13, 2021 14:33
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants