Skip to content

Commit

Permalink
fix(mockTypes): mock on options.typs
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Apr 13, 2023
1 parent 00abbe7 commit f9d86b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/consola.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ export class Consola {

for (const type in this.options.types) {
(this as any)[type] =
_mockFn(type as LogType, (this as any)._types[type]) ||
_mockFn(type as LogType, (this as any).options.types[type]) ||
(this as any)[type];
(this as any)[type].raw = (this as any)[type];
}
Expand Down

0 comments on commit f9d86b6

Please sign in to comment.