Setting up Axios - OpenSourceFellows/amplify GitHub Wiki
Setting up Axios
Test for Axios
Last updated: 10/25/2023
The code is a test suite for the Axios Cache Interceptor, a module that allows caching of HTTP requests made with Axios. The tests use the Axios library, the axios-cache-interceptor module, and the public APIs endpoint.
The test suite consists of three tests:
- the first test checks that the configuration for Axios with the cache interceptor is valid and available to check;
- the second test checks that the cache is working as expected with concurrent requests;
- the third test checks that the cache is invalidated when the time-to-live (TTL) expires.