This is the staging environment running on https://bkleinen.github.io/staging/
This site contains unpublished changes.
- please visit the production website at https://home.htw-berlin.de/~kleinen/ instead!
 

B WT1 Verteilte Systeme

Website of Prof. Dr. Barne Kleinen, Professor for Media Informatics (Bachelor/Master) at HTW Berlin

Lab 07 - Testing

     <prev next>

Example source code for this lab: https://github.com/htw-imi-wt1/lab-07-testing

Part 1 / Lab 07

Read through Chapter 8 (Testing).

  1. set up jest. see the README-JEST.md for my log and hints for the example project

  2. 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.

  3. 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