hapi — Test Route Handlers by Injecting Requests
One of the reasons we’re passionate about hapi is its easiness of testing. The framework has a built-in server.inject method that simulates an incoming HTTP request. A server.inject call won’t create a socket connection. You’re not relying to the network stack to run tests in …
Continue Reading