Skip to content

Commit 6dc034f

Browse files
committed
feat: add option to only post failures
1 parent bd74337 commit 6dc034f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

jest/reporter.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ class JestBuildkiteAnalyticsReporter {
3434
const prefixedTestPath = this._paths.prefixTestPath(testResult.testFilePath);
3535

3636
testResult.testResults.forEach((result) => {
37+
if (this._options.failuresOnly && result.status !== 'failed') return
3738
let id = uuidv4()
3839
this._testResults.push({
3940
'id': id,

0 commit comments

Comments
 (0)