Skip to content

Setting up Axios

Cocoa Wang edited this page Oct 25, 2023 · 2 revisions

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:

  1. the first test checks that the configuration for Axios with the cache interceptor is valid and available to check;
  2. the second test checks that the cache is working as expected with concurrent requests;
  3. the third test checks that the cache is invalidated when the time-to-live (TTL) expires.
Clone this wiki locally