(handle: NodeTestHandle, expression: string)
| 32 | } |
| 33 | |
| 34 | async function evaluate(handle: NodeTestHandle, expression: string) { |
| 35 | handle.load(); |
| 36 | const { threadId } = handle.log(await handle.dap.once('stopped')); |
| 37 | const stack = await handle.dap.stackTrace({ threadId }); |
| 38 | await handle.logger.evaluateAndLog(expression, { |
| 39 | params: { |
| 40 | frameId: stack.stackFrames[0].id, |
| 41 | }, |
| 42 | }); |
| 43 | |
| 44 | handle.assertLog(); |
| 45 | } |
| 46 | |
| 47 | function assertSkipFiles(expectedStacktrace: string) { |
| 48 | const stackframes = expectedStacktrace.trim().split('\n'); |
no test coverage detected