Skip to content

Commit

Permalink
feat: expose cleanAll method to clean up mocks (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhbapna authored Aug 4, 2023
1 parent 25c0e74 commit b36db09
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/moctokit/moctokit.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import endpointToMethod from "@mg/moctokit/generated/endpoint-request";
import nock from "nock";

export class Moctokit {
private _rest;
Expand All @@ -9,4 +10,8 @@ export class Moctokit {
get rest() {
return this._rest;
}

cleanAll() {
nock.cleanAll();
}
}

0 comments on commit b36db09

Please sign in to comment.