1 contributor
Like
Install karma-mocha-react as a package?
Copied
npm i @bit/tomlandau.envs.testers.karma-mocha-react
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/karmaMochaReact ()
A testing environment for React components using karma.
Bit testing environment for testing of React components using Karma, with Mocha and ChaiJS.
How to use?
import the environment
bit import bit.envs/testers/karma-mocha-react -t
What’s inside?
- Karma
- Mocha
- Sinon
- Chai integrated with Sinon to ease mock assertions using sinon-chai
- React test utils
- React Dom
- mockery for mocking of package dependencies.
- teaspoon for testing rendered react components.
- test drive react