✅ Test, such as:
npm run test 2618
🛑 Debug, such as:
-
Open
2618.counter.test.ts
(active) -
Add a breakpoint, you can also add it to
2618.counter.ts
-
Select
Jest Debug File
on the Debug start view or press F5 and VS Code will try to run your currently active file
PS: I found a plugin that works well for me, you can try it(vscode-jest-runner)