mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-18 07:33:12 +09:00
Setup logging transport in tests
Without a transport Winston will print annoying "Attempt to write logs with no transports" warnings all over the place. Setup a transport in tests that cause logging to suppress this.
This commit is contained in:
1 parent
2c52c265cf
commit
ea1cb67502
20 files changed
+42
-9
No files matched your search
@@ -4,6 +4,8 @@ import * as lib from "@clusterio/lib";
|
||||
import { Controller, ControlConnection } from "@clusterio/controller";
|
||||
import { Host } from "@clusterio/host";
|
||||
|
||||
import "../setup_logging.js";
|
||||
|
||||
describe("messages/plugin", function() {
|
||||
/** @type {Host} */
|
||||
let host;
|
||||
|
||||
Reference in new issue
Block a user