(testFilePath: string, error: string)
| 233 | } |
| 234 | |
| 235 | export function findTestFileStackTrace(testFilePath: string, error: string): ParsedStack | undefined { |
| 236 | // first line is the error message |
| 237 | const lines = error.split('\n').slice(1) |
| 238 | for (const line of lines) { |
| 239 | const stack = parseSingleStack(line) |
| 240 | if (stack && stack.file === testFilePath) { |
| 241 | return stack |
| 242 | } |
| 243 | } |
| 244 | } |
no test coverage detected