we need to get a list of all routes from router.js
in a test. preferably a lower level test (unit/integration).
use case for context: we have metadata that is required for all routes. this test is to make sure that the appropriate metadata was added, and not forgotten, when a new route is added.
similar questions here and here have been asked, but attempts to adopt/modify those solutions within a test have not been fruitful.
Aucun commentaire:
Enregistrer un commentaire