From 3fe4d9d09264d86e7a565032beeb27f3265bc6a5 Mon Sep 17 00:00:00 2001 From: Joe Hildebrand Date: Wed, 20 Aug 2025 10:53:36 -0600 Subject: [PATCH] fix(tests): ensure tests pass on node 24.6 Node 24.6 broke the tests due to an added new field on AssertionError. Fixes #211. --- test/e2e/compare.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/compare.sh b/test/e2e/compare.sh index e0e0e8e..c59d394 100755 --- a/test/e2e/compare.sh +++ b/test/e2e/compare.sh @@ -3,7 +3,7 @@ set -e # Function to replace test duration with 0 and remove file paths remove_variables() { - echo "$1" | sed -E 's/\"duration\": [0-9\.]+/\"duration\": 0/g' | sed -E 's/\/.*\/test\//test\//g' + echo "$1" | sed -E 's/\"duration\": [0-9.]+/\"duration\": 0/g' | sed -E 's/\/.*\/test\//test\//g' | sed -E 's/("operator": "strictEqual"),/\1/g' | sed -E '/ *"diff": "simple"/d' } # Run sample tests and generate the report, ignoring errors