File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -1173,8 +1173,11 @@ import process from 'node:process';
1173
1173
import path from ' node:path' ;
1174
1174
1175
1175
run ({ files: [path .resolve (' ./tests/test.js' )] })
1176
- .compose (tap)
1177
- .pipe (process .stdout );
1176
+ .on (' test:fail' , () => {
1177
+ process .exitCode = 1 ;
1178
+ })
1179
+ .compose (tap)
1180
+ .pipe (process .stdout );
1178
1181
```
1179
1182
1180
1183
``` cjs
@@ -1183,8 +1186,11 @@ const { run } = require('node:test');
1183
1186
const path = require (' node:path' );
1184
1187
1185
1188
run ({ files: [path .resolve (' ./tests/test.js' )] })
1186
- .compose (tap)
1187
- .pipe (process .stdout );
1189
+ .on (' test:fail' , () => {
1190
+ process .exitCode = 1 ;
1191
+ })
1192
+ .compose (tap)
1193
+ .pipe (process .stdout );
1188
1194
```
1189
1195
1190
1196
## ` test([name][, options][, fn]) `
You can’t perform that action at this time.
0 commit comments