jest-tests-demo icon indicating copy to clipboard operation
jest-tests-demo copied to clipboard

Issues with these tests

Open HeisenbergK opened this issue 1 year ago • 0 comments

Hello,

I see the following issues with the tutorial:

  1. Before running you need to have added Product 1 to the db and copy over the id (not mentioned in the tutorial)
  2. 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

HeisenbergK avatar Oct 31 '23 05:10 HeisenbergK