(argv: string[] = [])
| 60 | }); |
| 61 | |
| 62 | function parseConfig(argv: string[] = []) { |
| 63 | const locator = new ConfigLocator(); |
| 64 | sinon.stub(locator, 'locate').returns(undefined); |
| 65 | return new ConfigParser( |
| 66 | '1.0.0', |
| 67 | ['node', 'script.js', ...argv], |
| 68 | { |
| 69 | CHROME_DEVTOOLS_MCP_NO_USAGE_STATISTICS: 'true', |
| 70 | }, |
| 71 | false, |
| 72 | locator, |
| 73 | ).parseConfig(); |
| 74 | } |
| 75 | |
| 76 | it('calls getPageById for page scoped tools when pageId is provided', async () => { |
| 77 | let handlerCalled = false; |
no test coverage detected