How to use the cross-fetch.__resetMocks function in cross-fetch

To help you get started, we’ve selected a few cross-fetch examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ardatan / graphql-toolkit / tests / loaders / schema / url-loader.spec.ts View on Github external
  const resetMocks = () => require('cross-fetch').__resetMocks();
  const mockRequest = (url: string, content: object) => require('cross-fetch').__registerUrlRequestMock(url, content);