• Martin Hanzel's avatar
    Add helpers to wait for axios requests · 31d5a946
    Martin Hanzel authored
    Add two methods to the axios_utils Jest mock:
    
    - `waitFor(url)`, which returns a Promise that resolves when the
      next request to `url` finishes.
    - `waitForAll()`, which returns a Promise that resolves when all
      pending requests finish.
    31d5a946
axios_utils.js 1.04 KB