NestedLink icon indicating copy to clipboard operation
NestedLink copied to clipboard

ShallowRendering valueLink

Open Mattes83 opened this issue 9 years ago • 3 comments

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

Mattes83 avatar Dec 19 '16 09:12 Mattes83

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

gaperton avatar Jan 18 '17 20:01 gaperton

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

gaperton avatar Jan 18 '17 20:01 gaperton

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

gaperton avatar Jan 18 '17 20:01 gaperton