How to use the @octokit/rest.mockClear function in @octokit/rest

To help you get started, we’ve selected a few @octokit/rest 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 gatsbyjs / api.gatsbyjs.org / routes / __tests__ / store.js View on Github external
beforeEach(() => {
    Octokit.mockClear();
    search.issues.mockClear();
    createShopifyCustomer.mockReturnValueOnce(true);
  });
github gatsbyjs / api.gatsbyjs.org / src / lib / __tests__ / github.js View on Github external
beforeEach(() => {
    Octokit.mockClear();
    search.issues.mockClear();
  });