You can use Vitest instead of Jest for testing. It supports module type javascript and doesn't need any additional configuration plus the methods are the same as the Jest.
Thanks a lot, really great session. I have one question though. At many places in above video, we created mocks for validationResult, matchedData and hashPassword etc. Cant we simply spy them and get the work done instead if creating mock objects? With spy we can simply override the specific behaviour we need in a test. Please share your thoughts on this?
@@ansonthedev but unit test should not test API endpoint i think ? It's more like component testing. Uniting testing is for simple functions that does not need other services to be mocked. Don't you think ? I'm kind of lost because everyone is interpretating ^^
i like the way your videos are so specific and you are very articulate teaching , i mean you use the write words when teaching . it is one of a kind .......... thank you once again... you are really good
you are the best. Thank you for sharing this to us
Great tutorial. I would have loved the entire course be converted to typescript and tested.
You can use Vitest instead of Jest for testing. It supports module type javascript and doesn't need any additional configuration plus the methods are the same as the Jest.
which one is best for express application?
also for complex and large projects
This is a brilliant video. How many videos are there overall in this series?
About 23 I believe. There's a playlist for everything and you can also check out the full video that is 8 hours long in the description.
very useful video and clear explanation!!! Thank you so much
Thanks a lot, really great session.
I have one question though. At many places in above video, we created mocks for validationResult, matchedData and hashPassword etc.
Cant we simply spy them and get the work done instead if creating mock objects? With spy we can simply override the specific behaviour we need in a test.
Please share your thoughts on this?
Should you not unit test your routes against a real database? How would that be done?
Unit testing never deals with the database or a real API. You do that with integration or e2e testing.
@@ansonthedev Thank you for explaining that. Would this unit testing approach work with prisma and postgres instead of mongoose?
@@ansonthedev but unit test should not test API endpoint i think ? It's more like component testing. Uniting testing is for simple functions that does not need other services to be mocked. Don't you think ? I'm kind of lost because everyone is interpretating ^^
PLEASE WHAT IS THE THEME YOU USED FOR THIS VIDEO?
@@davidi.lawrence7357 chill brother
Thank you
Plz videos on scaling out Node JS as well as on NGINX .
nice video, very helpfull 😍
hi anson can you make project based tutorial using microservice architecture nestjs,docker,graphql,prisma,nextjs so on please
checkout (Coding with Tushar) for microservices
so brilliant!! i
i like the way your videos are so specific and you are very articulate teaching , i mean you use the write words when teaching . it is one of a kind .......... thank you once again... you are really good
Thank you very much for the kind words!
whoops 🙃
Spent 11 minutes only on configuration. This is why I hate JavaScript related frameworks.