Skip to content

Commit 86f14b4

Browse files
committed
Added a conditional check to add the diff property only with node versions greater than 22.19.0
1 parent 1a10ef5 commit 86f14b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/logger/tests/unit/formatters.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ describe('Formatters', () => {
371371
operator: 'strictEqual',
372372
code: 'ERR_ASSERTION',
373373
generatedMessage: true,
374-
diff: 'simple',
374+
diff: process.versions.node >= '22.19.0' ? 'simple' : undefined,
375375
},
376376
},
377377
{

0 commit comments

Comments
 (0)