Routed HTTP requests are a key element of any Hapi application. Unfortunately, the request/response payloads that Hapi automatically generates cannot be intuitively stubbed out. As a result, it’s difficult to manually write inputs for our unit tests.
In the process of building our Artificial Intelligence program, we the developers at Foyer Inc. knew that we had to find a streamlined and efficient way of testing our software and its individual units of source code. However, unit testing around databases gets complicated fast.