1 contributor
Like
Install mocha-react-css-modules as a package?
Copied
npm i @bit/bit.envs.testers.mocha-react-css-modules
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
and packages in Bit or NPM to the example. any of the 1 million componentstoggle layout
chevron_left
chevron_right
testers/mochaReactCssModules ()
A testing environment for React components.
Bit testing environment for testing of React components using Mocha and ChaiJS.
How to use?
import the environment
bit import bit.envs/testers/mocha-react -t
What’s inside?
- Mocha
- Sinon
- Chai integrated with Sinon to ease mock assersions using sinon-chai
- React test utils
- React Dom
- mocha-jsdom
- mockery for mocking of package dependencies.
- enzyme for general purpose React testing utilities.
- teaspoon for testing rendered react components.