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
javascript unit-testing reactjs mocha jestjs


source to share


No one has answered this question yet

Check out similar questions:

857
How to mock empty methods with Mockito
390
How to increase timeout for one test case in mocha
8
How can I test a React Native component that imports its own native module with Jest?
five
Jest: a mocking console.
3
Automatically generate encoded modules in node.js
2
Highlighting custom modules in VueJS components with Jest
1
Jest: Mocking a function for a test doesn't work
1
Does jest do automatic recovery of mocked modules between test modules?
0
Jest: error while trying to import native modules; cannot be prevented by layout
0
Extending Jest Auto Layout functionality



All Articles
Loading...
X
Show
Funny
Dev
Pics