adding bonus content for jest

This commit is contained in:
Ken
2019-03-04 11:36:08 -08:00
parent 6a15f0f6b6
commit 547e268bc8
15 changed files with 357 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
# Bonus: Testing TypeScript code with Jest (Exercise)
[Lessons](../) | [Exercise](./exercise/) | [Demo](./demo/)
Start the test runner by running `npm test` in the root of the `frontend-bootcamp` folder.
## Basic testing
1. Look at `exercise/src/stack.ts` for a sample implementation of a stack
2. Follow the instructions inside `stack.spec.ts` file to complete the two tests
## Enzyme Testing
1. Open up `exercise/src/TestMe.spec.tsx`
2. Fill in the test using Enzyme concepts introduced in the demo