// request-foo.js
import {mock} from 'mocktail';
import foo from 'foo'; // foo is a third-party dependency that makes and io operation
class Request {
...
}
export default mock(Request);
How am I going to mock foo while testing request-foo.js?
Any pointer would be helpful. Thanks!!
How am I going to mock
foo
while testingrequest-foo.js
? Any pointer would be helpful. Thanks!!