tomscholz / meteor-jest-stubs

Stubs for using Jest to unit test Meteor modules
MIT License
10 stars 15 forks source link

react-meteor-data's withTracker with stub #9

Closed arichter83 closed 5 years ago

arichter83 commented 5 years ago

In the previous implementation the component was returned as is, but the callback of withTracker(cb) was not executed, so couldn't get mocked to infuse some fake data. This has been changed in this implementation.

tomscholz commented 5 years ago

@arichter83 Merge when ready and post a comment, so I can push the new release to npm :)

tomscholz commented 5 years ago

@arichter83 Did you get my invite to the repo?

arichter83 commented 5 years ago

Hi @tomscholz! Great, thank you. Well, I think this is ready. Again it is a breaking change like #8 but I think the old withTracker mock was rather not helpful, so might not been used much.