We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent efd6630 commit 979e183Copy full SHA for 979e183
doc/api/test.md
@@ -1173,8 +1173,11 @@ import process from 'node:process';
1173
import path from 'node:path';
1174
1175
run({ files: [path.resolve('./tests/test.js')] })
1176
- .compose(tap)
1177
- .pipe(process.stdout);
+ .on('test:fail', () => {
+ process.exitCode = 1;
1178
+ })
1179
+ .compose(tap)
1180
+ .pipe(process.stdout);
1181
```
1182
1183
```cjs
@@ -1183,8 +1186,11 @@ const { run } = require('node:test');
1186
const path = require('node:path');
1184
1187
1185
1188
1189
1190
1191
1192
1193
1194
1195
1196
## `test([name][, options][, fn])`
0 commit comments