I’ve started developing my docker apps (APIs, at least) to use a different container for API tests. Basically, build the app as production always and have another docker container run tests against it. I’ve managed to get Nodemon and Mocha working between the containers in such a way that during development you can have ‘watch’ working on both containers.