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:
Hornwitser committed 2026-09-15 22:18:16 +02:00
1 parent 2c52c265cf
commit ea1cb67502
20 files changed
+42 -9

No files matched your search

+2 -1
View File
@@ -1,8 +1,9 @@
import assert from "node:assert/strict";
import events from "node:events";
import * as mock from "../../mock.js";
import * as lib from "@clusterio/lib";
import * as mock from "../../mock.js";
import "../../setup_logging.js";
describe("lib/link/connectors", function() {
+1
View File
@@ -3,6 +3,7 @@ import events from "node:events";
import * as lib from "@clusterio/lib";
import * as mock from "../../mock.js";
import "../../setup_logging.js";
const addr = lib.Address.fromShorthand;