We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43fc00b commit ab6a1b2Copy full SHA for ab6a1b2
test/bench/granular/common.ts
@@ -1,5 +1,4 @@
1
import { Suite } from 'dbx-js-tools/packages/bson-bench';
2
-import * as process from 'process';
3
import * as path from 'path';
4
import * as fs from 'fs/promises';
5
@@ -62,6 +61,7 @@ export function getMixedTestTags(documentPath: string) {
62
61
export async function runSuiteAndWriteResults(suite: Suite) {
63
const targetDirectory = path.resolve(`${__dirname}/../../etc`);
64
await suite.run();
+ if (suite.errors.length) process.exitCode = 1;
65
await suite.writeResults(`${targetDirectory}/${suite.name.toLowerCase()}Results.json`);
66
}
67
0 commit comments