Skip to content

Commit 873ee08

Browse files
committed
tests: fix broken tests
1 parent d76caf8 commit 873ee08

1 file changed

Lines changed: 3 additions & 20 deletions

File tree

src/bin/chrome-devtools.ts

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -47,29 +47,12 @@ const startCliOptions = {
4747
delete startCliOptions.autoConnect;
4848
// Missing CLI serialization.
4949
delete startCliOptions.viewport;
50-
// CLI is generated based on the default tool definitions. To enable conditional
51-
// tools, they need to be enabled during CLI generation.
52-
delete startCliOptions.experimentalPageIdRouting;
53-
delete startCliOptions.experimentalVision;
54-
delete startCliOptions.experimentalWebmcp;
55-
delete startCliOptions.experimentalInteropTools;
56-
delete startCliOptions.experimentalScreencast;
57-
delete startCliOptions.categoryEmulation;
58-
delete startCliOptions.categoryPerformance;
59-
delete startCliOptions.categoryNetwork;
60-
delete startCliOptions.categoryExtensions;
61-
// Always on in CLI.
62-
delete startCliOptions.experimentalStructuredContent;
63-
// Change the defaults.
64-
if (!('default' in cliOptions.headless)) {
65-
throw new Error('headless cli option unexpectedly does not have a default');
66-
}
67-
if ('default' in cliOptions.isolated) {
68-
throw new Error('isolated cli option unexpectedly has a default');
69-
}
50+
51+
// Change the defaults for the CLI.
7052
startCliOptions.headless!.default = true;
7153
startCliOptions.isolated!.description =
7254
'If specified, creates a temporary user-data-dir that is automatically cleaned up after the browser is closed. Defaults to true unless userDataDir is provided.';
55+
startCliOptions.categoryExtensions!.default = true;
7356

7457
const y = yargs(hideBin(process.argv))
7558
.scriptName('chrome-devtools')

0 commit comments

Comments
 (0)