Skip to content

Commit 74110fd

Browse files
modify root tests script
1 parent ee92534 commit 74110fd

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

scripts/run-tests-with-custom-solc.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ fi
1111
cd "$(git rev-parse --show-toplevel)"
1212

1313
# install dependencies
14-
yarn
14+
pnpm install
1515

1616
# run hardhat tests
1717
cd packages/hardhat-core
18-
yarn test
18+
pnpm test

scripts/run-tests.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const isGithubActions = process.env.GITHUB_WORKFLOW !== undefined;
1313
const isLinux = os.type() === "Linux";
1414
const isWindows = os.type() === "Windows_NT";
1515

16-
shell.exec("yarn build");
16+
shell.exec("pnpm build");
1717

1818
// ** check for packages to be ignored ** //
1919

@@ -23,7 +23,7 @@ const shouldIgnoreSolppTests = isWindows;
2323
const ignoredPackagesList = [];
2424

2525
if (shouldIgnoreSolppTests) {
26-
ignoredPackagesList.push("--exclude @nomiclabs/hardhat-solpp");
26+
ignoredPackagesList.push("--filter=!@nomiclabs/hardhat-solpp");
2727
}
2828

2929
const ignoredPackages = ignoredPackagesList.join(" ");
@@ -32,8 +32,8 @@ function runTests() {
3232
console.time("Total test time");
3333

3434
try {
35-
const fastExit = process.env.NO_FAST_EXIT ? "" : "--fast-exit";
36-
const command = `yarn wsrun --serial ${fastExit} --exclude-missing ${ignoredPackages} test`;
35+
const fastExit = process.env.NO_FAST_EXIT ? "--no-bail" : "--bail";
36+
const command = `pnpm run --recursive --workspace-concurrency 1 ${fastExit} ${ignoredPackages} test`;
3737

3838
shell.exec(command);
3939
} finally {

0 commit comments

Comments
 (0)