jest-tests-demo
jest-tests-demo copied to clipboard
Issues with these tests
Hello,
I see the following issues with the tutorial:
- Before running you need to have added Product 1 to the db and copy over the id (not mentioned in the tutorial)
- Every time you tun the tests, tests 2 and 4 (get with id and patch with id) break because the Product 1 (say you added it by hand at some point, so that you solve issue 1) gets updated, and therefore the tests do not run next time over.
Maybe fix those and the tutorial on free code camp?
Thanks