MCPcopy Create free account
hub / github.com/Snapchat/Valdi / _launch

Method _launch

valdi/vscode_debugger/src/test/test.ts:424–449  ·  view source on GitHub ↗
(
    url: string,
    options: Partial<AnyChromiumLaunchConfiguration> = {},
  )

Source from the content-addressed store, hash-verified

422 }
423
424 async _launch(
425 url: string,
426 options: Partial<AnyChromiumLaunchConfiguration> = {},
427 ): Promise<TestP> {
428 await this.initialize;
429 this._launchUrl = url;
430
431 const tmpLogPath = getLogFileForTest(this._testTitlePath);
432 this._root.dap.launch({
433 ...chromeLaunchConfigDefaults,
434 url,
435 runtimeArgs: this._args,
436 webRoot: this._webRoot,
437 rootPath: this._workspaceRoot,
438 skipNavigateForTest: true,
439 trace: { logFile: tmpLogPath },
440 runtimeExecutable: playwright.chromium.executablePath(),
441 outFiles: [`${this._workspaceRoot}/**/*.js`, '!**/node_modules/**'],
442 __workspaceFolder: this._workspaceRoot,
443 cleanUp: 'wholeBrowser', // We want the tests to clean up chrome afterwards
444 ...options,
445 } as AnyChromiumLaunchConfiguration);
446
447 const result = await new Promise(f => (this._launchCallback = f));
448 return result as TestP;
449 }
450
451 async runScript(
452 filename: string,

Callers 5

launchMethod · 0.95
launchAndLoadMethod · 0.95
launchUrlMethod · 0.95
launchUrlAndLoadMethod · 0.95
reactTest.tsFile · 0.45

Calls 2

getLogFileForTestFunction · 0.90
launchMethod · 0.65

Tested by

no test coverage detected