Light comes with an easy way to test your routes that is compatible with ava, jest and other testing frameworks. Light exports a
createTest function which generates a server for you containing all of the routes. You can then use that server to start and test it, or you can plug it into a library such as
supertest to test it.
createTest returns an object with the keys
router which you can use. The server is an HTTP server, and the
router is a find-my-way route object which you can use to insert more routes if you need.