mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-18 15:07:10 +01:00
Fix reporter 'split props' bug
This commit is contained in:
parent
e9fa2f582c
commit
c5e83d0629
4 changed files with 102 additions and 1 deletions
|
|
@ -19,6 +19,6 @@ export function parseIsoDate(str: string): Date {
|
|||
}
|
||||
|
||||
export function getFirstNonEmptyLine(stackTrace: string): string | undefined {
|
||||
const lines = stackTrace.split(/\r?\n/g)
|
||||
const lines = stackTrace ? stackTrace.split(/\r?\n/g) : []
|
||||
return lines.find(str => !/^\s*$/.test(str))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue