I'm using AVA for the test runner, and testdouble for mocking. Glueing them together to test an Express route handler was completely straightforward, and worked the first time. Here's the gist of that.
My spec/E2E tests involve spinning up a Docker container, but—for the time being—if the application fails on start-up, the spec
script (powered by Scripty, #onbrand) fails silently, which is annoying. To quickly solve my problem, I isolated the only controller I changed into a unit test. Normally, this isn't a great idea, as it's duplicating work and it can make it harder to change implementation details.