Skip to content

Commit

Permalink
Fix: coverage failure
Browse files Browse the repository at this point in the history
  • Loading branch information
levx-me committed Sep 13, 2021
1 parent be9a59f commit fe0b20e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import "hardhat-spdx-license-identifier";
import "hardhat-watcher";
import "solidity-coverage";
import "@tenderly/hardhat-tenderly";
import { TASK_TEST_SETUP_TEST_ENVIRONMENT } from "hardhat/builtin-tasks/task-names";
import { TASK_TEST_GET_TEST_FILES, TASK_TEST_SETUP_TEST_ENVIRONMENT } from "hardhat/builtin-tasks/task-names";
import { HardhatUserConfig, task } from "hardhat/config";
import { removeConsoleLog } from "hardhat-preprocessor";

Expand All @@ -32,6 +32,11 @@ task("accounts", "Prints the list of accounts", async (args, { ethers }) => {
}
});

task(TASK_TEST_GET_TEST_FILES).setAction(async (args, hre, runSuper) => {
const files = await runSuper(args);
return files.filter(file => !file.includes("test/typechain") && !file.includes("test/utils"));
});

task(TASK_TEST_SETUP_TEST_ENVIRONMENT).setAction(async (args, hre, runSuper) => {
const copyFolderSync = (from, to) => {
fs.mkdirSync(to);
Expand Down

0 comments on commit fe0b20e

Please sign in to comment.