chore: add prettier config and prettify

This commit is contained in:
Ralph Khreish
2025-04-08 12:22:21 +02:00
parent a56a3628b3
commit 4136ef5679
57 changed files with 20007 additions and 17331 deletions

View File

@@ -1,6 +1,6 @@
/**
* Jest setup file
*
*
* This file is run before each test suite to set up the test environment.
*/
@@ -16,15 +16,15 @@ process.env.PROJECT_NAME = 'Test Project';
process.env.PROJECT_VERSION = '1.0.0';
// Add global test helpers if needed
global.wait = (ms) => new Promise(resolve => setTimeout(resolve, ms));
global.wait = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
// If needed, silence console during tests
if (process.env.SILENCE_CONSOLE === 'true') {
global.console = {
...console,
log: jest.fn(),
info: jest.fn(),
warn: jest.fn(),
error: jest.fn(),
};
}
global.console = {
...console,
log: jest.fn(),
info: jest.fn(),
warn: jest.fn(),
error: jest.fn()
};
}