Skip to content

Commit 77094ab

Browse files
committed
Use default value for rpcCachePath when running solidity tests
1 parent 1fea7c8 commit 77094ab

File tree

6 files changed

+23
-1
lines changed

6 files changed

+23
-1
lines changed

.changeset/long-toes-deny.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"hardhat": patch
3+
---
4+
5+
Use default value for rpcCachePath when running solidity tests

v-next/hardhat/src/internal/builtin-plugins/solidity-test/config.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,11 @@ export async function resolveSolidityTestUserConfig(
121121
testsPath = typeof testsPath === "object" ? testsPath.solidity : testsPath;
122122
testsPath ??= "test";
123123

124+
const solidityTest = {
125+
rpcCachePath: "edr-cache",
126+
...userConfig.solidityTest,
127+
};
128+
124129
return {
125130
...resolvedConfig,
126131
paths: {
@@ -130,6 +135,6 @@ export async function resolveSolidityTestUserConfig(
130135
solidity: resolveFromRoot(resolvedConfig.paths.root, testsPath),
131136
},
132137
},
133-
solidityTest: userConfig.solidityTest ?? {},
138+
solidityTest,
134139
};
135140
}

v-next/hardhat/templates/01-node-test-runner-viem/.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,8 @@
1313
# Hardhat compilation (v2) support directory
1414
/cache
1515

16+
# EDR Cache
17+
/edr-cache
18+
1619
# Typechain output
1720
/types

v-next/hardhat/templates/01-node-test-runner-viem/gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,8 @@
1313
# Hardhat compilation (v2) support directory
1414
/cache
1515

16+
# EDR Cache
17+
/edr-cache
18+
1619
# Typechain output
1720
/types

v-next/hardhat/templates/02-mocha-ethers/.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,8 @@
1313
# Hardhat compilation (v2) support directory
1414
/cache
1515

16+
# EDR Cache
17+
/edr-cache
18+
1619
# Typechain output
1720
/types

v-next/hardhat/templates/02-mocha-ethers/gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,8 @@
1313
# Hardhat compilation (v2) support directory
1414
/cache
1515

16+
# EDR Cache
17+
/edr-cache
18+
1619
# Typechain output
1720
/types

0 commit comments

Comments
 (0)