Main idea One day I was covering my code with tests and take note that Sinon also has an assertion as Chai has. I investigated it a little deeper and looked like it makes sense to use Sinon instead of Chai in some cases. Implementation The example of the test is based on class which... » read more
I like to debug PHP code with PHPStrom. It simply click "Debug Icon" and debugging process automatically catch all scripts running from console or browser and no other manipulation needed. NodeJS has another debug approach and it different from PHP, also, it is much complicated. You should setup debugging for every a file or a... » read more
Summary Lerna is powerful package which allow develop multiple module in one repository, this approach named monorepo. There are many cool things which can do Lerna, but in this post I describe only minimal usage.