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

Generate library for test mock target #2638

Merged
merged 2 commits into from
Nov 10, 2022

Conversation

Gois
Copy link
Contributor

@Gois Gois commented Nov 4, 2022

Currently when you generate the test mocks for a Swift package it won't create a library for it, so you can't import the test mocks properly into your unit tests.

To fix this I've updated the SwiftPackageManagerModuleTemplate to also create a library for the test mocks if there is a testMockTarget.

@netlify
Copy link

netlify bot commented Nov 4, 2022

👷 Deploy request for apollo-ios-docs pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 462d458

@AnthonyMDev
Copy link
Contributor

Thanks for this! We definitely should get this added. I'll do a full review ASAP to make sure this is good to go before merging. And you can ignore that integration test failure. It's a known issue and we're working on it.

Copy link
Contributor

@AnthonyMDev AnthonyMDev left a comment

Choose a reason for hiding this comment

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

Thanks so much for this PR! Approved and merging in, this will be in the next patch release!

@AnthonyMDev AnthonyMDev added this to the Release 1.0.4 milestone Nov 10, 2022
@AnthonyMDev AnthonyMDev merged commit bedc7c5 into apollographql:main Nov 10, 2022
@calvincestari calvincestari mentioned this pull request Nov 18, 2022
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants