updated scripts

This commit is contained in:
pradyuman-verma 2021-12-06 18:17:22 +05:30 committed by Ishan Jain
parent bd96a95853
commit 292c333209

View File

@ -33,19 +33,29 @@ async function testRunner() {
start = Date.now();
let path: string;
if (testName === "all") {
path = availableTests.map((file) => join(testsPath, file)).join(" ");
for (let test of availableTests) {
path = join(testsPath, test);
path += "/*";
await execScript({
cmd: "npx",
args: ["hardhat", "test", path],
env: {
networkType: chain,
},
});
}
} else {
path = join(testsPath, testName);
}
path += "/*";
path += "/*";
await execScript({
cmd: "npx",
args: ["hardhat", "test", path],
env: {
networkType: chain,
},
});
await execScript({
cmd: "npx",
args: ["hardhat", "test", path],
env: {
networkType: chain,
},
});
}
end = Date.now();
}