Commit 477552e 1 parent 8e6a92e commit 477552e Copy full SHA for 477552e
File tree 5 files changed +8
-13
lines changed
src/internal/builtin-plugins/solidity-test
5 files changed +8
-13
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ import type { HardhatUserConfig } from "../../../config.js";
2
2
import type { HardhatConfig } from "../../../types/config.js" ;
3
3
import type { HardhatUserConfigValidationError } from "../../../types/hooks.js" ;
4
4
5
+ import path from "node:path" ;
6
+
5
7
import { isObject } from "@nomicfoundation/hardhat-utils/lang" ;
6
8
import { resolveFromRoot } from "@nomicfoundation/hardhat-utils/path" ;
7
9
import {
@@ -121,8 +123,13 @@ export async function resolveSolidityTestUserConfig(
121
123
testsPath = typeof testsPath === "object" ? testsPath . solidity : testsPath ;
122
124
testsPath ??= "test" ;
123
125
126
+ const defaultRpcCachePath = path . join (
127
+ resolvedConfig . paths . cache ,
128
+ "edr-cache" ,
129
+ ) ;
130
+
124
131
const solidityTest = {
125
- rpcCachePath : "edr-cache" ,
132
+ rpcCachePath : defaultRpcCachePath ,
126
133
...userConfig . solidityTest ,
127
134
} ;
128
135
Original file line number Diff line number Diff line change 13
13
# Hardhat compilation (v2) support directory
14
14
/cache
15
15
16
- # EDR Cache
17
- /edr-cache
18
-
19
16
# Typechain output
20
17
/types
Original file line number Diff line number Diff line change 13
13
# Hardhat compilation (v2) support directory
14
14
/cache
15
15
16
- # EDR Cache
17
- /edr-cache
18
-
19
16
# Typechain output
20
17
/types
Original file line number Diff line number Diff line change 13
13
# Hardhat compilation (v2) support directory
14
14
/cache
15
15
16
- # EDR Cache
17
- /edr-cache
18
-
19
16
# Typechain output
20
17
/types
Original file line number Diff line number Diff line change 13
13
# Hardhat compilation (v2) support directory
14
14
/cache
15
15
16
- # EDR Cache
17
- /edr-cache
18
-
19
16
# Typechain output
20
17
/types
You can’t perform that action at this time.
0 commit comments