From 89a6ed33506006bfe63b755e021452af5247b5b1 Mon Sep 17 00:00:00 2001 From: einhornimmond Date: Tue, 17 Jun 2025 19:31:33 +0200 Subject: [PATCH] add some comment for test logger mock --- config-schema/test/testSetup.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/config-schema/test/testSetup.ts b/config-schema/test/testSetup.ts index c1d679d8a..ef471cc03 100644 --- a/config-schema/test/testSetup.ts +++ b/config-schema/test/testSetup.ts @@ -1,3 +1,10 @@ +/* + * This file is used to mock the log4js logger in the tests. + * It is used to collect all log entries in the logs array. + * If you want to debug your test, you can use `printLogs()` to print all log entries collected through the tests. + * To have only the relevant logs, call `clearLogs()` before your calling the methods you like to test and `printLogs()` after. + */ + jest.setTimeout(1000000) type LogEntry = {