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