(
processId: number,
options: Partial<INodeAttachConfiguration> = {},
)
| 528 | } |
| 529 | |
| 530 | async attachNode( |
| 531 | processId: number, |
| 532 | options: Partial<INodeAttachConfiguration> = {}, |
| 533 | ): Promise<NodeTestHandle> { |
| 534 | await this.initialize; |
| 535 | this._launchUrl = `process${processId}`; |
| 536 | this._root.dap.launch({ |
| 537 | ...nodeAttachConfigDefaults, |
| 538 | trace: { logFile: getLogFileForTest(this._testTitlePath) }, |
| 539 | processId: `inspector${processId}`, |
| 540 | __workspaceFolder: this._workspaceRoot, |
| 541 | ...options, |
| 542 | } as INodeAttachConfiguration); |
| 543 | const result = await new Promise(f => (this._launchCallback = f)); |
| 544 | return result as NodeTestHandle; |
| 545 | } |
| 546 | |
| 547 | async launch( |
| 548 | content: string, |
no test coverage detected