Skip to content

Commit cdb5606

Browse files
committed
Changed the formatter test to match the error object instead of deep equality
1 parent b92b0c6 commit cdb5606

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
@@ -450,7 +450,7 @@ describe('Formatters', () => {
450450
const formattedError = formatter.formatError(error);
451451

452452
// Assess
453-
expect(formattedError).toEqual({
453+
expect(formattedError).toMatchObject({
454454
stack: expect.arrayContaining([
455455
expect.stringMatching(fileNameRegexpWithLine),
456456
]),

0 commit comments

Comments
 (0)