You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/recipes/debugging-with-vscode.md
+20
Original file line number
Diff line number
Diff line change
@@ -68,6 +68,26 @@ Assuming the names of your test files are unique you could try the following con
68
68
}
69
69
```
70
70
71
+
### Using Yarn PnP (Plug'n'Play)
72
+
73
+
As [Yarn's PnP (Plug'n'Play)](https://yarnpkg.com/features/pnp) installation strategy does not produce a `node_modules` folder, the `ava` binary must be called using `yarn run`:
74
+
75
+
```json
76
+
{
77
+
"type": "node",
78
+
"request": "launch",
79
+
"name": "Debug AVA test file",
80
+
"runtimeExecutable": "yarn",
81
+
"runtimeArgs": ["run", "ava"],
82
+
"args": ["${file}"],
83
+
"outputCapture": "std",
84
+
"console": "integratedTerminal", // optional
85
+
"skipFiles": [
86
+
"<node_internals>/**/*.js"
87
+
]
88
+
}
89
+
```
90
+
71
91
## Serial debugging
72
92
73
93
By default AVA runs tests concurrently. This may complicate debugging. Instead make sure AVA runs only one test at a time.
0 commit comments