mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-18 07:33:12 +09:00
The reporter now handles all three modes: verbose prints everything, normal prints output from failing tests and hooks, silent prints only the results. The integration spawn helper and setup_logging no longer filter output themselves. npm install output in plugin install now goes through the logger instead of inherited stdio, so it follows the log level and is captured in tests like the rest. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
13 lines
382 B
JavaScript
13 lines
382 B
JavaScript
import { ConsoleTransport, TerminalFormat, logger } from "@clusterio/lib";
|
|
|
|
// Some integration tests may cause log events, import this file for such tests
|
|
// to avoid getting the "Attempt to write logs with no transports" warning when
|
|
// running tests individually.
|
|
|
|
before(function() {
|
|
logger.add(new ConsoleTransport({
|
|
level: "info",
|
|
format: new TerminalFormat(),
|
|
}));
|
|
});
|