This project shows some sample tests for the presentation in React Chicago to write in react.
-
Install needed packages with with
npm i
-
run all tests using
npm test
-
run one test using
npm test -- [file-path]
for example you can run npm test -- ./src/snippets/MyApp-V1/MyApp-clean.test.js
from this directory
- edit the tests and rerun them
The test ./src/snippets/second-example-failing-test.test.js
should fail.
Make it look like ./src/snippets/first-example.test.js
to make it pass.