hardhat
Version:
Hardhat is an extensible developer tool that helps smart contract developers increase productivity by reliably bringing together the tools they want.
23 lines (18 loc) • 538 B
text/typescript
import type { ConfigHooks } from "../../../../types/hooks.js";
import { resolveTestUserConfig } from "../config.js";
export default async (): Promise<Partial<ConfigHooks>> => {
const handlers: Partial<ConfigHooks> = {
resolveUserConfig: async (
userConfig,
resolveConfigurationVariable,
next,
) => {
const resolvedConfig = await next(
userConfig,
resolveConfigurationVariable,
);
return resolveTestUserConfig(userConfig, resolvedConfig);
},
};
return handlers;
};