Skip to content

cjatkinson/chris-jest-demo

Repository files navigation

chris-jest-demo 🧪

Description

This is a Jest demo implementation by Chris Atkinson.

The framework showcases some simple Jest unit testing patterns.

Installation

  1. Clone this repository:
git clone git@github.com:cjatkinson/chris-jest-demo.git
  1. Install the dependencies:
cd chris-jest-demo
npm i
  1. 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.

Usage

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

TODO

  • Add component testing.
  • Build small React demo project.