This is a Jest demo implementation by Chris Atkinson.
The framework showcases some simple Jest unit testing patterns.
- Clone this repository:
git clone git@github.com:cjatkinson/chris-jest-demo.git
- Install the dependencies:
cd chris-jest-demo
npm i
- Test the installation:
npm run test
The framework will run the test suite against Chrome. The last test is the suite fails intentionally to demonstrate some of the implementaion features. If you run into issues, please let me know via email.
The framework can be run in a variety of modes, abstracted as scripts in node_modules
.
# run the test framework
npm run test
# run coverage report
npm run coverage
- Add component testing.
- Build small React demo project.