You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks so much for providing this! It's helpful in learning these technologies
One question I had when looking at the code is that there seem to be different places to put the tests. Sometimes they're in a __tests__ directory and sometimes they aren't. For example:
Yeah the __tests__ folder was placed in that location since NextJS uses every file in the pages folder to make a URL route handler. We obviously don't want test files becoming routes on the web server so we have that + all the other unit tests are colocated.
Thanks so much for providing this! It's helpful in learning these technologies
One question I had when looking at the code is that there seem to be different places to put the tests. Sometimes they're in a
__tests__
directory and sometimes they aren't. For example:Is this intended? If so, what goes where?
The text was updated successfully, but these errors were encountered: