hardhat
Version:
Hardhat is an extensible developer tool that helps smart contract developers increase productivity by reliably bringing together the tools they want.
14 lines • 699 B
JavaScript
import { getTestProfile, resolveTestProfileName, } from "./select-test-profile.js";
/**
* The `test` task forwards its arguments to the subtasks that declare them, so
* this override only validates the selected profile. It does that here, rather
* than leaving it to the Solidity subtask, because the umbrella task builds the
* project before running any subtask: an unknown profile would otherwise be
* reported after a full compilation.
*/
const validateTestProfile = async (args, hre, runSuper) => {
getTestProfile(hre.config, resolveTestProfileName(args.testProfile));
return await runSuper(args);
};
export default validateTestProfile;
//# sourceMappingURL=test-task-action.js.map