Skip to content

Commit 0ec3f8c

Browse files
OrKoNDevtools-frontend LUCI CQ
authored andcommitted
Crash mocha on uncaught errors in the e2e runner
Bug: none Change-Id: Ia2720d6a14c189475026fe145a2693dd4817c63b Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6081454 Reviewed-by: Simon Zünd <[email protected]> Commit-Queue: Alex Rudenko <[email protected]>
1 parent 9e31092 commit 0ec3f8c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/e2e/mocharc.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ import * as path from 'path';
77
import {loadTests, TestConfig} from '../conductor/test_config.js';
88

99
module.exports = {
10+
// This should make mocha crash on uncaught errors.
11+
// See https://github.com/mochajs/mocha/blob/master/docs/index.md#--allow-uncaught.
12+
allowUncaught : true,
1013
require : [path.join(path.dirname(__dirname), 'conductor', 'mocha_hooks.js'), 'source-map-support/register'],
1114
spec : loadTests(__dirname),
1215
timeout : TestConfig.debug ? 0 : 10_000,

0 commit comments

Comments
 (0)