Upgrade Ava to v4

This commit is contained in:
Henry Mercer 2022-02-01 18:01:11 +00:00
parent 9a40cc5274
commit ce89f1b611
1153 changed files with 27264 additions and 95308 deletions

View file

@ -1,5 +1,5 @@
import * as github from "@actions/github";
import { TestInterface } from "ava";
import { TestFn } from "ava";
import * as sinon from "sinon";
import * as apiClient from "./api-client";
@ -46,8 +46,8 @@ function wrapOutput(context: TestContext) {
};
}
export function setupTests(test: TestInterface<any>) {
const typedTest = test as TestInterface<TestContext>;
export function setupTests(test: TestFn<any>) {
const typedTest = test as TestFn<TestContext>;
typedTest.beforeEach((t) => {
// Set an empty CodeQL object so that all method calls will fail