Hacker News new | ask | show | jobs
by jeffkeen 1088 days ago
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.
1 comments

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)

Missed the edit window, but looks like I'm outdated: vitest does support node's debugger

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

oh thanks for that tip!