Skip to content

Commit 21e0c56

Browse files
author
Mohsen Azimi
committed
jest vscode
1 parent 28c17af commit 21e0c56

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,3 +114,15 @@ Pass `-t` with transform name and case name space separated to `npm test`
114114
```
115115
npm test -- -t "react-js-make-props-and-state-transform propless-stateless"
116116
```
117+
118+
#### Using Visual Studio Code to debug tests
119+
120+
To run all test run "Test All" from debug panel.
121+
122+
##### Run a single test
123+
124+
Edit `.vscode/launch.json` to add the same argument you pass to jest for your specific test.
125+
126+
##### Breakpoints work with test 🎉
127+
128+
Throw a breakpoint anywhere in code to stop the test there and inspect issue.

0 commit comments

Comments
 (0)