When writing tests, you sometimes need to wait for something to happen. This article describes different methods of doing this, including a new tryUntil() construct available in purple-tape.
We all know that JSON can only contain, arrays, objects, strings, numbers, booleans and null. But when working with javascript, it is easy to forget that you have implicitly converted a data structure to JSON and back and in the process actually modified the data structure.
Pino is a logging framework for node that promises “Very low overhead”. This article explains how to use it inside a docker container.
Running your code in docker can give you reproducibility and guarantee that your code does not depend on your working environment. Getting it to run just right with tests and a small image size is however fairly complicated. This article explains how to do it with sample code.