blob: 4d2a16f98ef59b1b31e9d94ae75d3f55574cb5cc [file]
// Copyright 2026 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import * as path from 'node:path';
import {SOURCE_ROOT} from '../conductor/paths.js';
import {loadTests, TestConfig} from '../conductor/test_config.js';
import {run} from '../shared/run-mocha.js';
import devtoolsTestInterface from './conductor/mocha-interface.js';
if (TestConfig.tests.length === 0) {
TestConfig.tests.push(import.meta.dirname);
}
void run({
require: [
path.join(path.dirname(import.meta.dirname), 'e2e', 'conductor', 'mocha_hooks.js'),
path.join(SOURCE_ROOT, 'node_modules', 'source-map-support', 'register.js'),
],
spec: loadTests(import.meta.dirname),
timeout: 10_000,
suiteName: 'e2e',
ui: devtoolsTestInterface as unknown as 'bdd',
});