UNPKG

hardhat

Version:

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

32 lines (27 loc) 750 B
import type { ConfigHooks } from "../../../../types/hooks.js"; import { resolveSolidityTestUserConfig, validateSolidityTestUserConfig, } from "../config.js"; export default async (): Promise<Partial<ConfigHooks>> => { const handlers: Partial<ConfigHooks> = { validateUserConfig: async (userConfig) => validateSolidityTestUserConfig(userConfig), resolveUserConfig: async ( userConfig, resolveConfigurationVariable, next, ) => { const resolvedConfig = await next( userConfig, resolveConfigurationVariable, ); return resolveSolidityTestUserConfig( userConfig, resolvedConfig, resolveConfigurationVariable, ); }, }; return handlers; };