diff --git a/packages/shared/common/__tests__/logging/format.test.ts b/packages/shared/common/__tests__/logging/format.test.ts index 9ddc3ef05d..daa715906d 100644 --- a/packages/shared/common/__tests__/logging/format.test.ts +++ b/packages/shared/common/__tests__/logging/format.test.ts @@ -32,10 +32,10 @@ describe.each([ [ '', [Symbol('foo'), circular, BigInt(7), { apple: 'pie' }, global, undefined, null], - ' [Circular] 7n {"apple":"pie"} [object Object] undefined null', + /\[Circular\] 7n {"apple":"pie"} \[.*\] undefined null/, ], ])('given node style format strings', (formatStr, args, result) => { it('produces the expected string', () => { - expect(format(formatStr, ...args)).toEqual(result); + expect(format(formatStr, ...args)).toMatch(result); }); });