Skip to content

Commit 5e617d4

Browse files
committed
chore(cli): fix eslint console.log issue
1 parent b70c51f commit 5e617d4

2 files changed

Lines changed: 3 additions & 7 deletions

File tree

packages/cli/src/cli-default-servient.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
*
1414
* SPDX-License-Identifier: EPL-2.0 OR W3C-20150513
1515
********************************************************************************/
16+
/* eslint no-console: "off" */
1617

1718
// global W3C WoT Scripting API definitions
1819
import * as WoT from "wot-typescript-definitions";

packages/cli/test/runtime-test.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import { should, assert } from "chai";
2525
import DefaultServient from "../src/cli-default-servient";
2626

2727
import fs from "fs";
28+
import { EventEmitter } from "stream";
2829
// should must be called to augment all variables
2930
should();
3031

@@ -39,13 +40,7 @@ class WoTRuntimeTest {
3940
};
4041

4142
static async before() {
42-
// We need to disable this check for killing servient logs
43-
/* eslint-disable @typescript-eslint/no-empty-function */
44-
console.error = () => {};
45-
console.debug = () => {};
46-
console.warn = () => {};
47-
console.info = () => {};
48-
/* eslint-enable @typescript-eslint/no-empty-function */
43+
EventEmitter.setMaxListeners(20);
4944
this.servient = new DefaultServient(true);
5045
await this.servient.start();
5146
}

0 commit comments

Comments
 (0)