Automatically modulate modules in Mocha JS (ala Jest)

I liked Jast's automatic mocks for testing my ReactJS components. But Jest is a very new testing tool and it misses out on a lot of important features like. the ability to run tests in a browser . It is also unclear whether it is actively developing.

Is it possible to get the default Jest behavior using Mocha JS? To be clear, I would like each statement to require

return the layout of the underlying module, unless I'm specifically talking about not mocking that module.

+3


source to share





All Articles