From 97e38ec0e9c9ea8dcc7fc942bc097c6a6df83b79 Mon Sep 17 00:00:00 2001 From: Domen Grabec Date: Tue, 7 May 2024 17:36:52 +0200 Subject: [PATCH] fix global hooks filter --- contracts/test/_global-hooks.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contracts/test/_global-hooks.js b/contracts/test/_global-hooks.js index 0ad9877e84..f77800e6a2 100644 --- a/contracts/test/_global-hooks.js +++ b/contracts/test/_global-hooks.js @@ -36,9 +36,9 @@ mocha.before(function () { // For fork tests, scrape out all unit tests. root.suites = root.suites.filter( (s) => - s.file.endsWith(".fork-test.js") == isForkTest || - s.file.endsWith(".holesky-fork-test.js") == isHoleskyFork || - s.file.endsWith(".arb.fork-test.js") == isArbFork + (s.file.endsWith(".fork-test.js") && isForkTest) || + (s.file.endsWith(".holesky-fork-test.js") && isHoleskyFork) || + (s.file.endsWith(".arb.fork-test.js") && isArbFork) ); if (!runTestsParallely) {