Layer0 now provides an EdgeJS testing utility to facilitate unit-testing your Layer0 router logic. You can mock up and run your routes in a test environment just as they would be handled live on your production site.
https://docs.layer0.co/guides/edgejs_testing