Skip to content

Commit 6cdb04f

Browse files
committed
chore(coverage): skip coverage for logObj convenience function
1 parent e7cf7cc commit 6cdb04f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/createYahooFinance.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,15 @@ class YahooFinance {
5757
}
5858
}
5959

60+
// deno-coverage-ignore-start
6061
// @ts-ignore: relevant for ts-json-schema-generator
6162
this._logObj = Deno.stdout.isTerminal()
6263
// deno-lint-ignore no-explicit-any
6364
? (obj: any, opts?: { depth?: number }) =>
6465
this._opts.logger!.dir(obj, { depth: opts?.depth ?? 4, colors: true })
6566
// deno-lint-ignore no-explicit-any
6667
: (obj: any) => this._opts.logger!.info(JSON.stringify(obj, null, 2));
68+
// deno-coverage-ignore-stop
6769
}
6870
}
6971

0 commit comments

Comments
 (0)