Using the Jest extension (orta.vscode-jest) “Debug Test” feature
Using launch.json with F5 to debug Jest tests
Running the same Jest command directly in terminal works perfectly.
The issue appears to be that Cursor’s js-debug extension is passing an empty testSequencer option to Jest, causing it to try resolving “jest-sequencer-”
(prefix + empty string).
For AI issues: which model did you use?
Model name (e.g., Sonnet 4, Tab…)
For AI issues: add Request ID with privacy disabled
Request ID: f9a7046a-279b-47e5-ab48-6e8dc12daba1
For Background Agent issues, also post the ID: bc-…
Additional Information
Add any other context about the problem here.
Does this stop you from using Cursor?
Yes - Cursor is unusable
Sometimes - I can sometimes use Cursor
No - Cursor works, but with this issue
The more details you provide, the easier it is for us to reproduce and fix the issue. Thanks!
Hey, glad you figured it out! The root cause was the “Break on thrown exceptions” setting in the debugger. Jest uses exceptions internally for error handling, and the debugger was catching them.
If you’re seeing the same Cannot find module 'jest-sequencer-/package.json' error while debugging Jest, check your debugger breakpoint settings and make sure “Uncaught Exceptions” is the only one enabled. Disable “Raised Exceptions” or “All Exceptions”.
Marking this as solved. Let us know if anything else comes up.