Unit Testing for Express using Dependency Injection
Have you ever tried to unit-test Express’ routes? If so and if your tests involved some HTTP mock or if you wrote assertions on the route’s response then you weren’t writing Unit Tests.
Have you ever tried to unit-test Express’ routes? If so and if your tests involved some HTTP mock or if you wrote assertions on the route’s response then you weren’t writing Unit Tests.