News for hackers. Stuff that matters.
Re:Jest not recommended to be used in Node.js due to instanc... by jeffkeen on Saturday July 01, 2023 @10:10AM (#36550316)
I’d love to see how you use it. My encounters with jest have been painful, and it seemed unnecessarily cruel to run browser tests in node, where you couldn’t just easily put a debugger statement in there and use the inspector to see what was going on.
Re:Jest not recommended to be used in Node.js due to instanc... by c-hendricks on Saturday July 01, 2023 @12:05PM (#36551565)
You can debug Jest tests in Chrome use node's included inspector.

Ironically it's vitest that doesn't support this (IIRC, haven't checked in a minute)

Re:Jest not recommended to be used in Node.js due to instanc... by jeffkeen on Saturday July 01, 2023 @01:33PM (#36552597)
oh thanks for that tip!
Re:Jest not recommended to be used in Node.js due to instanc... by c-hendricks on Saturday July 01, 2023 @04:04PM (#36554494)
Missed the edit window, but looks like I'm outdated: vitest does support node's debugger

https://vitest.dev/guide/debugging.html