Fix GHAE CodeQL setup test
This commit is contained in:
parent
9203e314a3
commit
9f8ddbdfd7
6 changed files with 41 additions and 10 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue