UNPKG

hardhat

Version:

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

34 lines 1.86 kB
import type { TestsStream } from "./types.js"; import type { ChainType } from "../../../types/network.js"; import type { SolidityTestProfileConfig } from "../../../types/test.js"; import type { SolidityTestRunnerConfigArgs, Artifact, ObservabilityConfig } from "@nomicfoundation/edr"; import type { Writable } from "node:stream"; interface SolidityTestConfigParams { chainType: ChainType; projectRoot: string; hardfork?: string; config: Omit<SolidityTestProfileConfig, "eip712Types">; verbosity: number; observability?: ObservabilityConfig; testPattern?: string; excludeTestPattern?: string; generateGasReport: boolean; eip712CanonicalTypes?: string[]; testSourcePaths?: Record<string, string>; } export declare function solidityTestConfigToSolidityTestRunnerConfigArgs({ chainType, projectRoot, hardfork, config, verbosity, observability, testPattern, excludeTestPattern, generateGasReport, eip712CanonicalTypes, testSourcePaths, }: SolidityTestConfigParams): Promise<SolidityTestRunnerConfigArgs>; export declare function isTestSuiteArtifact(artifact: Artifact): boolean; /** * Writes the test reporter's output to `output` and waits for the test run to * complete, returning the error that failed it, if any. * * @param runStream The runner's stream of test events. * @param reporterStream The reporter's stream of output, composed from * `runStream`. * @param output Where the reporter's output is written to. * @returns The error that failed the run, or `undefined` if it succeeded. */ export declare function writeTestRunOutput(runStream: TestsStream, reporterStream: NodeJS.ReadableStream, output: Writable): Promise<unknown>; export declare function warnDeprecatedTestFail(artifact: Artifact, sourceNameToUserSourceName: Map<string, string>): void; export {}; //# sourceMappingURL=helpers.d.ts.map