Example project of power-assert + Karma + browserify.
Testing for Browser with power-assert.
npm install
npm install -g karma-cli
npm test
# or
karma start # and capture browser
mocha --require intelli-espower-loader
Run Debug mode(main use case is breakpoint)
karma start
- Open
http://localhost:9876/debug.html
form WebStorm. - We Can Set Breakpoint!!
More Detail on
- Running JavaScript tests with Karma - WebStorm - Confluence
- Karma ユニットテストをWebStormでデバッグする - Kazzzの日記
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
MIT