From 482665495b62fd81f5a478e2a8d6635d4a052427 Mon Sep 17 00:00:00 2001 From: Hadrien Croubois Date: Thu, 19 Dec 2024 17:04:21 +0100 Subject: [PATCH] Fix envvar setting for test and coverage (#5392) --- package.json | 2 +- scripts/checks/coverage.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index afdd5e6c1..687d3d33f 100644 --- a/package.json +++ b/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/*", diff --git a/scripts/checks/coverage.sh b/scripts/checks/coverage.sh index e3b8ffc56..a273c0669 100755 --- a/scripts/checks/coverage.sh +++ b/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