diff --git a/packages/expect/src/__tests__/asymmetricMatchers.test.ts b/packages/expect/src/__tests__/asymmetricMatchers.test.ts index dac1a7c1b804..843e51b8719c 100644 --- a/packages/expect/src/__tests__/asymmetricMatchers.test.ts +++ b/packages/expect/src/__tests__/asymmetricMatchers.test.ts @@ -169,6 +169,17 @@ test('ObjectContaining matches', () => { objectContaining({first: objectContaining({second: {}})}).asymmetricMatch({ first: {second: {}}, }), + objectContaining({foo: Buffer.from('foo')}).asymmetricMatch({ + foo: Buffer.from('foo'), + jest: 'jest', + }), + objectContaining({foo: {bar: [Buffer.from('foo')]}}).asymmetricMatch({ + foo: { + bar: [Buffer.from('foo'), 1], + qux: 'qux', + }, + jest: 'jest', + }), ].forEach(test => { jestExpect(test).toEqual(true); });