As of today, Memento can be used for stubbing external services in integration tests, but Memento has to be run manually outside the test suite, and the cache-location is shared with the dev environment.
This can be improved. The ideal integration would be to setup Memento in a beforeAll hook (assuming an API similar to jest), and kill Memento in an afterAll hook.
To provide this integration, the following must be done :
As of today, Memento can be used for stubbing external services in integration tests, but Memento has to be run manually outside the test suite, and the cache-location is shared with the dev environment.
This can be improved. The ideal integration would be to setup Memento in a
beforeAllhook (assuming an API similar to jest), and kill Memento in anafterAllhook.To provide this integration, the following must be done :
.memento-cacheat the moment). For instance, users could decide to cache requests inmemento-integrationand decide to track this file in the VCS