Skip to content

Commit fa506a7

Browse files
committed
Use default value for rpcCachePath when running solidity tests
1 parent db98630 commit fa506a7

File tree

5 files changed

+18
-1
lines changed

5 files changed

+18
-1
lines changed

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)