UNPKG

hardhat

Version:

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

18 lines 546 B
import { validateUserConfigZodType } from "@nomicfoundation/hardhat-zod-utils"; import { z } from "zod"; const userConfigType = z.object({ coverage: z .object({ skipFiles: z.array(z.string()).optional(), }) .optional(), }); export function validateCoverageUserConfig(userConfig) { return validateUserConfigZodType(userConfig, userConfigType); } export function resolveCoverageConfig(userConfig) { return { skipFiles: userConfig.coverage?.skipFiles ?? [], }; } //# sourceMappingURL=config.js.map