updated scripts

This commit is contained in:
pradyuman-verma 2021-12-06 18:17:22 +05:30
parent 5d18e917ba
commit 879c95cde7

View File

@ -33,10 +33,19 @@ async function testRunner() {
start = Date.now(); start = Date.now();
let path: string; let path: string;
if (testName === "all") { 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 { } else {
path = join(testsPath, testName); path = join(testsPath, testName);
}
path += "/*"; path += "/*";
await execScript({ await execScript({
@ -46,6 +55,7 @@ async function testRunner() {
networkType: chain, networkType: chain,
}, },
}); });
}
end = Date.now(); end = Date.now();
} }