Like
Install karma-mocha as a package?
Copied
npm i @bit/bit.envs.testers.karma-mocha
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
A testing environment for components using karma.
Bit testing environment for testing of components using Karma, with Mocha and ChaiJS.
How to use?
import the environment
bit import bit.envs/testers/karma-mocha -t
What’s inside?
- Karma (^1.7.1)
- Mocha (^5.0.2)
- Sinon (^3.3.0)
- Chai (^4.1.2) integrated with Sinon to ease mock assertions using sinon-chai (^2.14.0)
- Tests run on
Chrome Headless
browser using puppeteer.
Reconfiguring this environment
In case the configuration presets in the karma.conf.js
file of this component are not well suited to your needs, follow these steps to modify it.
Got any issues or questions?
Collaboration on this Bit environment happens in this repository. Please open an issue or submit pull request there.