Skip to content

Commit 1e591a6

Browse files
authored
Merge pull request #6143 from NomicFoundation/test-solidity-no-compile
chore: check test task options before passing on noCompile flag
2 parents 7e815f5 + ac5c280 commit 1e591a6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

v-next/hardhat/src/internal/builtin-plugins/test/task-action.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@ const runAllTests: NewTaskActionFunction<TestActionArguments> = async (
1616
}
1717

1818
for (const subtask of thisTask.subtasks.values()) {
19-
await subtask.run({ noCompile: true });
19+
if (subtask.options.has("noCompile")) {
20+
await subtask.run({ noCompile: true });
21+
} else {
22+
await subtask.run({});
23+
}
2024
}
2125

2226
if (process.exitCode !== undefined && process.exitCode !== 0) {

0 commit comments

Comments
 (0)