3 * Copyright 2020 Google Inc.
4 * SPDX-License-Identifier: Apache-2.0
7 let timeout = process.platform === 'win32' ? 20_000 : 10_000;
8 if (!!process.env.DEBUGGER_ATTACHED) {
14 require: ['./test/build/mocha-utils.js', 'source-map-support/register'],
15 exit: !!process.env.CI,
16 retries: process.env.CI ? 3 : 0,
17 parallel: !!process.env.PARALLEL,
19 reporter: process.env.CI ? 'spec' : 'dot',
20 // This should make mocha crash on uncaught errors.
21 // See https://github.com/mochajs/mocha/blob/master/docs/index.md#--allow-uncaught.
23 // See https://github.com/mochajs/mocha/blob/master/docs/index.md#--async-only--a.