Skip to content

Commit

Permalink
expose clear all to clean up mocks at the end of tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhbapna committed Aug 4, 2023
1 parent 25c0e74 commit 433d0aa
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 433d0aa

Please sign in to comment.