3 ms·
always nice to read about these things. i like the note on 'all tests were green'. it sounds like the test of this function only test for the good case right? i
by sim7c00 11mo ago
always nice to read about these things. i like the note on 'all tests were green'. it sounds like the test of this function only test for the good case right? it should also test a false case? or am i missing something here?
- marekzan 11mo agoWe tested for both, the "happy" and the negative path. But the Javascript unit tests are run without the framework in between. So our function was returning expected results when run in isolation. Only when running it with Next.js the function became async which led to this dilemma.