소스 검색

Fix envvar setting for test and coverage (#5392)

Hadrien Croubois 9 달 전
부모
커밋
482665495b
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      package.json
  2. 1 1
      scripts/checks/coverage.sh

+ 1 - 1
package.json

@@ -25,7 +25,7 @@
     "prepack": "scripts/prepack.sh",
     "generate": "scripts/generate/run.js",
     "version": "scripts/release/version.sh",
-    "test": "scripts/set-max-old-space-size.sh && hardhat test",
+    "test": ". scripts/set-max-old-space-size.sh && hardhat test",
     "test:generation": "scripts/checks/generation.sh",
     "test:inheritance": "scripts/checks/inheritance-ordering.js artifacts/build-info/*",
     "test:pragma": "scripts/checks/pragma-consistency.js artifacts/build-info/*",

+ 1 - 1
scripts/checks/coverage.sh

@@ -5,7 +5,7 @@ set -euo pipefail
 export COVERAGE=true
 export FOUNDRY_FUZZ_RUNS=10
 
-scripts/set-max-old-space-size.sh
+. scripts/set-max-old-space-size.sh
 
 # Hardhat coverage
 hardhat coverage