hardhat
Version:
Hardhat is an extensible developer tool that helps smart contract developers increase productivity by reliably bringing together the tools they want.
27 lines • 867 B
JavaScript
import { testRunDone, testRunStart, testWorkerDone, } from "../hook-handlers/test.js";
/**
* The following helpers are kept for backward compatibility with older versions
* of test runner plugins (hardhat-mocha, hardhat-node-test-runner) that import
* from "hardhat/internal/coverage".
*/
let cachedHre;
async function getHre() {
if (cachedHre === undefined) {
const { default: hre } = await import("../../../../index.js");
cachedHre = hre;
}
return cachedHre;
}
export async function markTestRunStart(id) {
const hre = await getHre();
await testRunStart(hre, id);
}
export async function markTestWorkerDone(id) {
const hre = await getHre();
await testWorkerDone(hre, id);
}
export async function markTestRunDone(id) {
const hre = await getHre();
await testRunDone(hre, id);
}
//# sourceMappingURL=compat.js.map