returnResponseOnTick = (timeout, i) =>
    new Promise(resolve =>
      // eslint-disable-next-line no-promise-executor-return
      window.setTimeout(() => resolve(new Response(`mock response ${i}`)), timeout),
    )
@param {number | undefined} timeout
@param {number} i