Skip to content

Instantly share code, notes, and snippets.

@pherris
pherris / superagent.js
Last active January 19, 2021 15:10
Jest superagent mock
'use strict';
//mock for superagent - __mocks__/superagent.js
var mockDelay;
var mockError;
var mockResponse = {
status() {
return 200;
},