enabled watch mode
Added script test:watch to be called with npm run test:watch
Sample output:
2 tests passed [09:42:53]
Type r and press enter to rerun tests
Type u and press enter to update snapshots
All setups are done. I also set up github to run the tests. There are currently only sample tests that always pass. We will populate later. Make sure to read ava's documentation for how to write tests
Main Unit testing package ava (github link) installed
Added plugins:
nyc for code coverage. Sample output:
enabled watch mode Added script test:watch to be called with npm run test:watch Sample output:
2 tests passed [09:42:53] Type
r
and press enter to rerun tests Typeu
and press enter to update snapshotsAll setups are done. I also set up github to run the tests. There are currently only sample tests that always pass. We will populate later. Make sure to read ava's documentation for how to write tests