Just catch and rethrow the error for simple logging.
test('my test', () => { try { expect(something).toStrictEqual(whatever) } catch (error) { console.log(your, stuff, here); throw error; } })