Tests und Mock

This commit is contained in:
ChK
2026-04-22 13:47:51 +02:00
parent 2505b8e310
commit dbe81ff8ec
7 changed files with 4392 additions and 5 deletions

13
test/setup.js Normal file
View File

@@ -0,0 +1,13 @@
// Jest Setup für alle Tests
const originalConsoleLog = console.log;
// Mock console.log um Warnings nach Tests zu vermeiden
beforeAll(() => {
console.log = jest.fn();
});
afterAll(async () => {
console.log = originalConsoleLog;
// Warten bis alle async Operationen fertig sind
await new Promise(resolve => setTimeout(resolve, 200));
});