Skip to content

Commit

Permalink
add guard
Browse files Browse the repository at this point in the history
  • Loading branch information
juan-fernandez committed Sep 26, 2024
1 parent 5da15bd commit 280dd7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/datadog-instrumentations/src/mocha/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ addHook({
const testSuites = this.files.map(file => getTestSuitePath(file, process.cwd()))
const isFaulty = getIsFaultyEarlyFlakeDetection(
testSuites,
config.knownTests.mocha,
config.knownTests?.mocha || {},
config.earlyFlakeDetectionFaultyThreshold
)
if (isFaulty) {
Expand Down Expand Up @@ -541,7 +541,7 @@ addHook({
const testSuites = files.map(file => getTestSuitePath(file, process.cwd()))
const isFaulty = getIsFaultyEarlyFlakeDetection(
testSuites,
config.knownTests.mocha,
config.knownTests?.mocha || {},
config.earlyFlakeDetectionFaultyThreshold
)
if (isFaulty) {
Expand Down

0 comments on commit 280dd7c

Please sign in to comment.