Fix test failure in Node 20 and 22 parallel tests

This commit is contained in:
Steve Gravrock
2026-02-07 20:03:59 -08:00
parent 42baa422b3
commit 5de03beea1

View File

@@ -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]}`);