Unit Testing Node.js with tsyringe and TypeORM

Get the code for this tutorial here: https://github.com/hypercolor/typeorm-unit-testing I’ve been using TypeORM for my Node.js database work for years, but until recently I wasn’t writing units tests with it.  When using TypeORM’s ActiveRecord pattern, testing without a database connection is difficult.  You can spin up a test database or even an in-memory sqlite database, but […]

Noisy Notifications

When was the last time you turned off push notifications for a noisy app? Mobile apps live and die by their permissions. Sending pushes to users is a great way to get their attention, but too much of a good thing can backfire. Here’s a few tips to keep your engagement up and to the right. * […]