@@ -26,11 +26,12 @@ Alternatively you can create a launch configuration, which makes it easier to de
26
26
"type" : " node" ,
27
27
"request" : " launch" ,
28
28
"name" : " Debug AVA test file" ,
29
- "runtimeExecutable " : " ${workspaceFolder}/node_modules/.bin/ ava" ,
30
- "runtimeArgs " : [
29
+ "program " : " ${workspaceFolder}/node_modules/ava/entrypoints/cli.mjs " ,
30
+ "args " : [
31
31
" ${file}"
32
32
],
33
33
"outputCapture" : " std" ,
34
+ "console" : " integratedTerminal" , // optional
34
35
"skipFiles" : [
35
36
" <node_internals>/**/*.js"
36
37
]
@@ -55,11 +56,12 @@ Assuming the names of your test files are unique you could try the following con
55
56
"type" : " node" ,
56
57
"request" : " launch" ,
57
58
"name" : " Debug AVA test file" ,
58
- "runtimeExecutable " : " ${workspaceFolder}/node_modules/.bin/ ava" ,
59
- "runtimeArgs " : [
59
+ "program " : " ${workspaceFolder}/node_modules/ava/entrypoints/cli.mjs " ,
60
+ "args " : [
60
61
" build/**/${fileBasenameNoExtension}.*"
61
62
],
62
63
"outputCapture" : " std" ,
64
+ "console" : " integratedTerminal" , // optional
63
65
"skipFiles" : [
64
66
" <node_internals>/**/*.js"
65
67
]
@@ -81,12 +83,13 @@ Or, if you're using a launch configuration, add the `--serial` argument:
81
83
"type" : " node" ,
82
84
"request" : " launch" ,
83
85
"name" : " Debug AVA test file" ,
84
- "runtimeExecutable " : " ${workspaceFolder}/node_modules/.bin/ ava" ,
85
- "runtimeArgs " : [
86
+ "program " : " ${workspaceFolder}/node_modules/ava/entrypoints/cli.mjs " ,
87
+ "args " : [
86
88
" --serial" ,
87
89
" ${file}"
88
90
],
89
91
"outputCapture" : " std" ,
92
+ "console" : " integratedTerminal" , // optional
90
93
"skipFiles" : [
91
94
" <node_internals>/**/*.js"
92
95
]
0 commit comments