mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
updated scripts
This commit is contained in:
parent
5d18e917ba
commit
879c95cde7
|
@ -33,19 +33,29 @@ 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({
|
||||||
cmd: "npx",
|
cmd: "npx",
|
||||||
args: ["hardhat", "test", path],
|
args: ["hardhat", "test", path],
|
||||||
env: {
|
env: {
|
||||||
networkType: chain,
|
networkType: chain,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
}
|
||||||
end = Date.now();
|
end = Date.now();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user