Open pabloai opened 5 years ago
You also can see a working example with React and the enzyme-adapter-react-16
here.
Thanks for the bug report. Support + tests for legacy context indeed hasn't been implemented yet, as the initial use cases were for new code using the new context API.
Hi,
I'm trying to test a component using Legacy Context API but the context doesn't seems to be reaching the test file.
The app:
The test:
The test fails with:
It seems the context parameter is not being used. Or am I missing something?
You can see a (not) working example here.
Thanks.