Yegor Kariaguine

Results 3 comments of Yegor Kariaguine

Thanks for the reply! I tried setting up a test for the [file mentioned above](https://github.com/hoangvvo/nextjs-mongodb-app/blob/master/pages/api/users/%5BuserId%5D/index.js#L8), and realize it's the [database](https://github.com/hoangvvo/nextjs-mongodb-app/blob/master/middlewares/database.js) and [session](https://github.com/hoangvvo/nextjs-mongodb-app/blob/master/middlewares/session.js) middlewares causing the `500` error. `200` happens when...

Still getting a 500 sadly. [Here are the changes I made](https://github.com/hoangvvo/nextjs-mongodb-app/compare/master...yegorkay:feature/testing?expand=1) if you want to see what's going on: https://github.com/yegorkay/nextjs-mongodb-app/tree/feature/testing

If I did the conditional logic of `process.env.VITEST && remix()` I would get a new error in some of my tests: ``` ReferenceError: React is not defined ``` If you...