mirror of
https://github.com/github/codeql-action.git
synced 2026-04-13 18:13:30 +00:00
Fix GHAE CodeQL setup test
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user