We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f52749b commit 78af9cdCopy full SHA for 78af9cd
1 file changed
CONTRIBUTING.md
@@ -68,6 +68,24 @@ where a separate process like `mitmproxy` can intercept outbound requests:
68
yarn test-mitm --mode integration
69
```
70
71
+### Run tests in VSCode "JavaScript Debug Terminal"
72
+
73
+If using VSCode, the easiest debugging method is to open a "JavaScript Debug
74
+Terminal" (which you can do via the command palette
75
+"`Debug: JavaScript Debug Terminal`"). Put a `debugger;` statement where you
76
+want to break, and then run vitest in single-threaded mode:
77
78
+```bash
79
+yarn test --single-thread
80
+```
81
82
+Or, if you also want to use mitmproxy (assumed to be listening on port `7979`),
83
+then:
84
85
86
+yarn test-mitm --single-thread
87
88
89
### Typecheck
90
91
We use `tsc` for typechecking, with the default solution file `tsconfig.json`
0 commit comments