Reverse test name and the line

master
Frédéric Matte 2025-06-02 18:59:06 -04:00
parent d9786a78d0
commit ee6ef75765
1 changed files with 1 additions and 1 deletions

View File

@ -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