Skip to content

Commit 378da78

Browse files
authored
test: enable --allow-uncaught in mocha runs (#7575)
test: enable --allow-uncaught in mocha runs Add --allow-uncaught to mocha-based test scripts in package.json so uncaught errors are treated as fatal instead of being absorbed by mocha. Update the direct mocha invocation in platform.yml to match script behavior for CI jobs that do not go through npm/yarn test scripts. refactor(test): centralize mocha allow-uncaught flag Configure allowUncaught in .mocharc.js and remove duplicated --allow-uncaught flags from test scripts and workflow invocation. This keeps mocha behavior consistent while reducing script noise. Co-authored-by: Cursor <cursoragent@cursor.com> Merge branch 'master' into watson/mocha-abort-on-uncaught Co-authored-by: thomas.watson <thomas.watson@datadoghq.com>
1 parent ae859a9 commit 378da78

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.mocharc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict'
22

33
module.exports = {
4+
allowUncaught: true,
45
color: true,
56
exit: true,
67
timeout: 5000,

0 commit comments

Comments
 (0)