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

Function parseConfig

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

Source from the content-addressed store, hash-verified

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

Callers 1

cli.test.tsFile · 0.70

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected