This commit is contained in:
parent
35b5d16292
commit
911d9b6bc5
5 changed files with 554 additions and 86 deletions
17
src/__tests__/setup.ts
Normal file
17
src/__tests__/setup.ts
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
// Test setup file for Jest
|
||||
// Mock environment variables
|
||||
process.env.NODE_ENV = 'test';
|
||||
process.env.DB_HOST = 'localhost';
|
||||
process.env.DB_PORT = '3306';
|
||||
process.env.DB_USERNAME = 'test';
|
||||
process.env.DB_PASSWORD = 'test';
|
||||
process.env.DB_DATABASE = 'test_db';
|
||||
|
||||
// Mock console methods to reduce noise in tests
|
||||
global.console = {
|
||||
...console,
|
||||
error: jest.fn(),
|
||||
warn: jest.fn(),
|
||||
info: jest.fn(),
|
||||
log: jest.fn(),
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue