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

ShallowRendering valueLink #19

Open
Mattes83 opened this issue Dec 19, 2016 · 3 comments
Open

ShallowRendering valueLink #19

Mattes83 opened this issue Dec 19, 2016 · 3 comments

Comments

@Mattes83
Copy link

Hi,

when I do shallow rendering in tests for components which use valuelink the snapshots are of enoumos size.
Can you propose any solution to this? Do I need to mock valueLink?

Please see the attached example snapshot
AccountSettings.txt

@gaperton
Copy link

gaperton commented Jan 18, 2017

I could try to make 'link.compunent' not to be enumerable. Likely, it will exclude it from the snapshot.

@gaperton
Copy link

Take valuelink.* from this branch and tell me if it's any better.

@gaperton
Copy link

If it is, I will make more changes like this one and merge it in master

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

No branches or pull requests

2 participants