Skip to content

Commit ab6a1b2

Browse files
committed
chore: set exit code
1 parent 43fc00b commit ab6a1b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/bench/granular/common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { Suite } from 'dbx-js-tools/packages/bson-bench';
2-
import * as process from 'process';
32
import * as path from 'path';
43
import * as fs from 'fs/promises';
54

@@ -62,6 +61,7 @@ export function getMixedTestTags(documentPath: string) {
6261
export async function runSuiteAndWriteResults(suite: Suite) {
6362
const targetDirectory = path.resolve(`${__dirname}/../../etc`);
6463
await suite.run();
64+
if (suite.errors.length) process.exitCode = 1;
6565
await suite.writeResults(`${targetDirectory}/${suite.name.toLowerCase()}Results.json`);
6666
}
6767

0 commit comments

Comments
 (0)