MCPcopy Create free account
hub / github.com/ChromeDevTools/chrome-devtools-mcp / parseConfig

Function parseConfig

tests/cli.test.ts:35–45  ·  view source on GitHub ↗
(argv: string[], env: NodeJS.ProcessEnv = {})

Source from the content-addressed store, hash-verified

33import {createTempFile} from './utils.js';
34
35function parseConfig(argv: string[], env: NodeJS.ProcessEnv = {}) {
36 const locator = new ConfigLocator();
37 sinon.stub(locator, 'locate').returns(undefined);
38 return new ConfigParser(
39 '0.0.0',
40 ['node', 'main.js', ...argv],
41 env,
42 false,
43 locator,
44 ).parse();
45}
46
47describe('cli args parsing', () => {
48 const defaultArgs = {

Callers 1

cli.test.tsFile · 0.70

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected