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

Function parseConfig

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

Source from the content-addressed store, hash-verified

21
22describe('ServerConfig', () => {
23 function parseConfig(argv: string[] = [], env: NodeJS.ProcessEnv = {}) {
24 const locator = new ConfigLocator();
25 sinon.stub(locator, 'locate').returns(undefined);
26 return new ConfigParser(
27 '0.0.0',
28 ['node', 'main.js', ...argv],
29 env,
30 false,
31 locator,
32 ).parseConfig();
33 }
34
35 describe('validateConflicts', () => {
36 it('accepts a single argument from a conflict group', () => {

Callers 1

Calls 1

parseConfigMethod · 0.80

Tested by

no test coverage detected