mirror of
https://github.com/hanzoai/puppeteer.git
synced 2026-10-30 14:46:24 +00:00
21 lines
549 B
JavaScript
21 lines
549 B
JavaScript
/**
|
|
* @license
|
|
* Copyright 2022 Google Inc.
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/**
|
|
* @type {import('mocha').MochaOptions}
|
|
*/
|
|
module.exports = {
|
|
spec: ['build/**/*.test.js'],
|
|
require: ['source-map-support/register'],
|
|
exit: !!process.env.CI,
|
|
timeout: 240_000,
|
|
// This should make mocha crash on uncaught errors.
|
|
// See https://github.com/mochajs/mocha/blob/master/docs/index.md#--allow-uncaught.
|
|
allowUncaught: true,
|
|
// See https://github.com/mochajs/mocha/blob/master/docs/index.md#--async-only--a.
|
|
asyncOnly: true,
|
|
};
|