Hey Brad so I read Swaggerize your API Documentation and I’m sold but what about protected APIs? How do I use Swagger to hit APIs which require an authentication token? Swagger has you covered for cases where your API requires some sort of authentication token be included in the request; all you have to do… To read more click here.
Hey Brad I keep hearing people talk about how we should use swagger to document our APIs but what the heck is that? Good question, I too was confused by what exactly Swagger was because we talk about it as an API documentation tool similar to JSDocs but when you Google Swagger it appears to… To read more click here.
Hey Brad I want to write some unit tests, that is tests which don’t need me to stand up and seed a database just to test my codes logic, but how do I mock out calls to backing functions I don’t want to actually make during the test? That is a good question, in my… To read more click here.
Hey Brad I have a function which returns a promise, how the heck do I test that with Mocha? TL;DR Either call the done callback or simply return the promise. Checkout Things to Watch out For when testing Promises No worries I can help, the mocha testing framework does support testing asynchronous code. The only… To read more click here.
Hey Brad I am writing some code and in a review someone said I should add some log messages but I don’t know what I should be logging. What purpose do the log messages serve and what information should I be logging? TL;DR See Summary section below What is a log? A log is a… To read more click here.
Hey Brad we are being asked to write automated tests with every code change, this is just more effort which is slowing us down and I don’t see the value. What the heck are automated tests for? I hear you, you spend all this effort making your changes and verifying they are working only to… To read more click here.