Skip to content

Commit 40a65aa

Browse files
committed
fix: empty cache dir before deleting it
1 parent b02caf9 commit 40a65aa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

+3
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,9 @@ describe("console/task-action", function () {
145145
});
146146

147147
afterEach(function () {
148+
if (fs.existsSync(history)) {
149+
fs.rmSync(history, { force: true });
150+
}
148151
fs.rmSync(cacheDir, { recursive: true, force: true });
149152
});
150153

0 commit comments

Comments
 (0)