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

Added ability to wrap mocks under define #1145

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pavel-trafimuk
Copy link
Contributor

Currently mocks don't have ability to be hidden for some purposes, e.g. release/production.
Yes, we can generate them only in unit-test targets, but this approach does not work in multi-modules real app:
when I want mocks from moduleA in tests of moduleB and moduleC.

So it's better to put generated mocks in moduleA, but wrap them under define, so they will not expose in release code.
To do that, I add new optional argument mockWrapDefine

@SourceryBot
Copy link

1 Error
🚫 Any changes to library code need a summary in the Changelog.

Generated by 🚫 Danger

@krzysztofzablocki
Copy link
Owner

@pavel-trafimuk mind adding info to the template docs?

@pavel-trafimuk
Copy link
Contributor Author

Please let me few days to update this MR

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.

None yet

4 participants