UNPKG

hardhat

Version:

Hardhat is an extensible developer tool that helps smart contract developers increase productivity by reliably bringing together the tools they want.

21 lines 1.18 kB
import type { TestsStream } from "./types.js"; import type { ChainType } from "../../../types/network.js"; import type { ArtifactId, Artifact, SolidityTestRunnerConfigArgs, TracingConfigWithBuffers } from "@nomicfoundation/edr"; /** * Run all the given solidity tests and returns the stream of results. * * It returns a Readable stream that emits the test events similarly to how the * node test runner does it. * * The stream is closed when all the test suites have been run. * * This function, initially, was a direct port of the example v2 integration in * the EDR repo (see https://github.com/NomicFoundation/edr/blob/main/js/helpers/src/index.ts). * * Despite the changes, the signature of the function should still be considered * a draft that may change in the future. * * Important TODO: Transform this into an AsyncGenerator<SuiteResult, SolidityTestResult, void> */ export declare function run(chainType: ChainType, artifacts: Artifact[], testSuiteIds: ArtifactId[], testRunnerConfig: SolidityTestRunnerConfigArgs, tracingConfig: TracingConfigWithBuffers, sourceNameToUserSourceName: Map<string, string>): TestsStream; //# sourceMappingURL=runner.d.ts.map