Fix GHAE CodeQL setup test

This commit is contained in:
Henry Mercer 2023-01-10 12:58:15 +00:00
parent 9203e314a3
commit 9f8ddbdfd7
6 changed files with 41 additions and 10 deletions

View file

@ -1,5 +1,6 @@
import * as github from "@actions/github";
import { TestFn } from "ava";
import * as nock from "nock";
import * as sinon from "sinon";
import * as apiClient from "./api-client";
@ -90,6 +91,9 @@ export function setupTests(test: TestFn<any>) {
process.stdout.write(t.context.testOutput);
}
// Undo any modifications made by nock
nock.cleanAll();
// Undo any modifications made by sinon
sinon.restore();