Reverse test name and the line
parent
d9786a78d0
commit
ee6ef75765
|
@ -15,7 +15,7 @@ const linereporter = () => {
|
|||
fail: (test, e) => {
|
||||
const line = e.stack.match(/at.*:(.*):/)[1]
|
||||
lines.push(line)
|
||||
log(chalk.redBright('✗'), line, test.name)
|
||||
log(chalk.redBright('✗'), test.name, `(line ${line})`)
|
||||
},
|
||||
end: (stats) => {
|
||||
const { success, fail, testFail } = stats
|
||||
|
|
Loading…
Reference in New Issue