mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-17 07:30:41 +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
@@ -6,6 +6,8 @@ import { PlayerStats, wait } from "@clusterio/lib";
|
||||
import Instance from "@clusterio/host/dist/node/src/Instance.js";
|
||||
import { MockConnector, MockLogger, MockServer } from "../mock.js";
|
||||
|
||||
import "../setup_logging.js";
|
||||
|
||||
const addr = lib.Address.fromShorthand;
|
||||
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@ import * as hostServer from "@clusterio/host/dist/node/src/server.js";
|
||||
import { Link, wait } from "@clusterio/lib";
|
||||
import { testLines } from "../lib/factorio/lines.js";
|
||||
import { slowTest, externalTest } from "../integration/index.js";
|
||||
import "../setup_logging.js";
|
||||
|
||||
|
||||
describe("host/server", function() {
|
||||
|
||||
Reference in new issue
Block a user