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 9a2a8f9 commit 3e71a42
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/printer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import colors from '@poppinss/colors'
import supportsColor from 'supports-color'
// import { diff as jestDiff } from 'jest-diff'
import type { ParsedError } from 'youch/types'
// import type { ParsedError } from 'youch/types'

const { columns } = process.stdout
const ansi = supportsColor.stdout ? colors.ansi() : colors.silent()
Expand Down Expand Up @@ -60,7 +60,7 @@ export class ErrorsPrinter {
/**
* Parsers chai assertion error
*/
async #parseAssertionError(error: any): Promise<ParsedError> {
async #parseAssertionError(error: any): Promise<any> {
const parsedError = await this.#parseErrorStack(error)
if (!('showDiff' in error) || error.showDiff) {
console.error()
Expand Down Expand Up @@ -132,7 +132,7 @@ export class ErrorsPrinter {
/**
* Parses an error to JSON
*/
async parseError(error: any): Promise<ParsedError | { message: string }> {
async parseError(error: any): Promise<any | { message: string }> {
/**
* Values that are not object objects are not parsed
*/
Expand Down

0 comments on commit 3e71a42

Please sign in to comment.