(str: string)
| 504 | const errorRegexp = /^Error:?\s*$/; |
| 505 | |
| 506 | const removeBlankErrorLine = (str: string) => |
| 507 | str |
| 508 | .split('\n') |
| 509 | // Lines saying just `Error:` are useless |
| 510 | .filter(line => !errorRegexp.test(line)) |
| 511 | .join('\n') |
| 512 | .trimEnd(); |
| 513 | |
| 514 | // jasmine and worker farm sometimes don't give us access to the actual |
| 515 | // Error object, so we have to regexp out the message from the stack string |
no test coverage detected