From 5de03beea14cb40467a22c48007dc1148371ecd7 Mon Sep 17 00:00:00 2001 From: Steve Gravrock Date: Sat, 7 Feb 2026 20:03:59 -0800 Subject: [PATCH] Fix test failure in Node 20 and 22 parallel tests --- spec/core/ExceptionFormatterSpec.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/spec/core/ExceptionFormatterSpec.js b/spec/core/ExceptionFormatterSpec.js index 6916fba6..87b312e2 100644 --- a/spec/core/ExceptionFormatterSpec.js +++ b/spec/core/ExceptionFormatterSpec.js @@ -369,7 +369,13 @@ describe('ExceptionFormatter', function() { lines.shift(); } - const filteredLines = lines.filter(x => !x.includes('/jasmine.js:')); + // Exclude lines that vary from environment to environment + const filteredLines = lines.filter( + x => + !x.includes('/jasmine.js:') && + // Some Node 20 and 22 minors when running in parallel + !x.includes('process.processTicksAndRejections') + ); for (let i = 0; i < filteredLines.length; i++) { jasmine.debugLog(`Line ${i} after filtering: ${filteredLines[i]}`);