()
| 45 | } |
| 46 | |
| 47 | async function runTests() { |
| 48 | const instance = new NodeInstance(['--inspect=0'], script); |
| 49 | const session = await instance.connectInspectorSession(); |
| 50 | await session.send([ |
| 51 | { 'method': 'Runtime.enable' }, |
| 52 | { 'method': 'Debugger.enable' }, |
| 53 | { 'method': 'Debugger.setAsyncCallStackDepth', |
| 54 | 'params': { 'maxDepth': 10 } }, |
| 55 | { 'method': 'Debugger.setBlackboxPatterns', |
| 56 | 'params': { 'patterns': [] } }, |
| 57 | ]); |
| 58 | |
| 59 | await waitForInitialSetup(session); |
| 60 | await setupTimeoutForStackTrace(session); |
| 61 | await checkAsyncStackTrace(session); |
| 62 | |
| 63 | console.error('[test]', 'Stopping child instance'); |
| 64 | session.disconnect(); |
| 65 | instance.kill(); |
| 66 | } |
| 67 | |
| 68 | runTests(); |
no test coverage detected