79212537

Date: 2024-11-21 18:43:36
Score: 0.5
Natty:
Report link

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;
    }
})
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: user1160006