Lets say we want to set one breakpoint in the test and one in the method itself. Here’s the typical controller logic you might want to unit-test: self.approveUser = async (req, res, next) => , Now we can get started! Unit Tests Debuggingįirst and easiest thing to debug is unit tests. Of course, you might even go without any IDE-based debuggers and build cool things with NodeJs and Typescript, however sometimes it’s very useful if you can put some breakpoints and dig into your running code in your IDE. There’re a lot of tutorials over the internet showing how to do that. We’ll just look at small part of this process, and namely debugging, which is usually not really covered in tutorials mentioned above. Note, that in this material you won’t find any steps to bootstrap your application with Express/Typescript. Write a catching NodeJS Developer resume using SweetCV – an amazing online CV builder. □️ Hey! Want to be a rock star NodeJS Developer?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |