Great use of supertest to test routes, well done. One baffling issue though - isn't TAP supposed to give you green ticks?... Where are they? Another supertest tip - console.log .text, use something like expect(response.text.includes('button')). This way you can test for specific html tags. Some examples from my past project can be seen at
Great use of supertest to test routes, well done. One baffling issue though - isn't TAP supposed to give you green ticks?... Where are they? Another supertest tip - console.log .text, use something like expect(response.text.includes('button')). This way you can test for specific html tags. Some examples from my past project can be seen at
https://github.com/fac-13/LVKI.blogger/blob/master/src/tests/routes.test.js