Skip to content

Commit

Permalink
co-locate props
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Sep 14, 2020
1 parent 071ab43 commit ebaf3a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/jest-console/src/BufferedConsole.ts
Expand Up @@ -24,6 +24,8 @@ export default class BufferedConsole extends Console {
private _timers: LogTimers = {};
private _groupDepth = 0;

Console: NodeJS.ConsoleConstructor = Console;

constructor() {
super({
write: (message: string) => {
Expand All @@ -34,8 +36,6 @@ export default class BufferedConsole extends Console {
} as NodeJS.WritableStream);
}

Console: NodeJS.ConsoleConstructor = Console;

static write(
buffer: ConsoleBuffer,
type: LogType,
Expand Down
4 changes: 2 additions & 2 deletions packages/jest-console/src/CustomConsole.ts
Expand Up @@ -22,6 +22,8 @@ export default class CustomConsole extends Console {
private _timers: LogTimers = {};
private _groupDepth = 0;

Console: NodeJS.ConsoleConstructor = Console;

constructor(
stdout: NodeJS.WriteStream,
stderr: NodeJS.WriteStream,
Expand All @@ -34,8 +36,6 @@ export default class CustomConsole extends Console {
this._formatBuffer = formatBuffer;
}

Console: NodeJS.ConsoleConstructor = Console;

private _log(type: LogType, message: string) {
clearLine(this._stdout);
super.log(
Expand Down

0 comments on commit ebaf3a2

Please sign in to comment.