Lab 07 - Testing
Example source code for this lab: https://github.com/htw-imi-wt1/lab-07-testing
Part 1 / Lab 07
Read through Chapter 8 (Testing).
set up jest. see the README-JEST.md for my log and hints for the example project
create unit tests for your services (see “Testing the Middleware with Spies”) - if you do not have services like in the example in your app, test another component that depends on mongoose using the Model/Mongoose Spies.
Add an End-to-End Test of the REST API.
For the bored: Unit test your React-Components. Include at least one snapshot test.
- tag the final version for this lab with the tag LAB_07