Browse Source

merge: pull request #8 from TomAFrench/clean-coverage

re-enable deletion of coverage files in clean task
Paul Razvan Berg 4 years ago
parent
commit
53af2bebbc
3 changed files with 2 additions and 11 deletions
  1. 0 2
      hardhat.config.ts
  2. 2 2
      tasks/clean.ts
  3. 0 7
      types/augmentations.d.ts

+ 0 - 2
hardhat.config.ts

@@ -64,8 +64,6 @@ const config: HardhatUserConfig = {
   paths: {
     artifacts: "./artifacts",
     cache: "./cache",
-    coverage: "./coverage",
-    coverageJson: "./coverage.json",
     sources: "./contracts",
     tests: "./test",
   },

+ 2 - 2
tasks/clean.ts

@@ -3,8 +3,8 @@ import { TASK_CLEAN } from "hardhat/builtin-tasks/task-names";
 import { task } from "hardhat/config";
 
 task(TASK_CLEAN, "Overrides the standard clean task", async function (_taskArgs, { config }, runSuper) {
-  // await fsExtra.remove(config.paths.coverage);
-  // await fsExtra.remove(config.paths.coverageJson);
+  await fsExtra.remove("./coverage");
+  await fsExtra.remove("./coverage.json");
   if (config.typechain?.outDir) {
     await fsExtra.remove(config.typechain.outDir);
   }

+ 0 - 7
types/augmentations.d.ts

@@ -1,13 +1,6 @@
 import { Accounts, Signers } from "./";
 import { Greeter } from "../typechain/Greeter";
 
-declare module "hardhat/types" {
-  interface ProjectPathsUserConfig {
-    coverage: string;
-    coverageJson: string;
-  }
-}
-
 declare module "mocha" {
   export interface Context {
     accounts: Accounts;