Testing a Backbone View with Jest
Install
- Clone repo
- Cd into repo
npm install
Run Tests
npm test
Generate code coverage
npm test -- --coverageopen coverage/lcov-report/index.html
Run Jest watcher task
npm run tdd
An example of using Jest --watch to write/test a Backbone view
JavaScript
npm installnpm testnpm test -- --coverageopen coverage/lcov-report/index.htmlnpm run tdd