jest-codemods icon indicating copy to clipboard operation
jest-codemods copied to clipboard

tape: keep custom expect messages

Open milahu opened this issue 4 years ago • 1 comments

fix #106 by preserving the custom expect message

sample

-  t.equal(1+1, 2, '1+1 should be 2');
+  expect(1+1, '1+1 should be 2').toBe(2);

milahu avatar Sep 27 '21 19:09 milahu

I'm not convinced we should support this use case as isn't supported natively by Jest and requires the custom jest-expect-message dependency (18K weekly downloads compared to Jest with 14M weekly downloads).

skovhus avatar Dec 18 '21 22:12 skovhus