(stack: string)
| 13 | }; |
| 14 | |
| 15 | const s = (stack: string) => { |
| 16 | const evalIndex = stack.indexOf('eval at '); |
| 17 | const atIndex = stack.indexOf('at '); |
| 18 | const index = evalIndex === -1 ? atIndex : evalIndex; |
| 19 | |
| 20 | return stack |
| 21 | .slice(index) |
| 22 | .split('\n') |
| 23 | .map((line) => line.trim()) |
| 24 | .join('\n'); |
| 25 | }; |
| 26 | |
| 27 | // A case for |
| 28 | // https://github.com/microsoft/playwright/blob/99d1ad5a88c3e89360829eee92dbaa98d75beaa4/packages/playwright-core/src/server/dispatchers/dispatcher.ts#L329 |
no test coverage detected