• Martin Hanzel's avatar
    Add helpers to wait for axios requests · bd20aeb6
    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.
    bd20aeb6
axios_utils.js 1.99 KB