Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Jan 28, 2025
1 parent 5298278 commit fe4db84
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions src/printer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,18 +62,19 @@ export class ErrorsPrinter {
* Parsers chai assertion error
*/
async #parseAssertionError(error: any): Promise<any> {
const parsedError = error
if (error.showDiff) {
console.error()
// const { actual, expected } = error
// const diff = jestDiff(expected, actual, {
// expand: true,
// includeChangeCounts: true,
// })
// parsedError.message = `${parsedError.message}\n${diff}`
}

return parsedError
return error
// const parsedError = error
// if (error.showDiff) {
// console.error()
// // const { actual, expected } = error
// // const diff = jestDiff(expected, actual, {
// // expand: true,
// // includeChangeCounts: true,
// // })
// // parsedError.message = `${parsedError.message}\n${diff}`
// }

// return parsedError
}

/**
Expand Down

0 comments on commit fe4db84

Please sign in to comment.