Mock a different response for identical API calls that only differ on payload I have a Lit component that makes two AJAX calls to an external API: