22 lines
332 B
TypeScript
22 lines
332 B
TypeScript
/**
|
|
* Test setup and teardown
|
|
*/
|
|
|
|
beforeAll(async () => {
|
|
// Setup test environment
|
|
process.env.NODE_ENV = 'test';
|
|
process.env.JWT_SECRET = 'test-secret-key-for-testing-only';
|
|
});
|
|
|
|
afterAll(async () => {
|
|
// Cleanup
|
|
});
|
|
|
|
beforeEach(() => {
|
|
// Reset mocks if needed
|
|
});
|
|
|
|
afterEach(() => {
|
|
// Cleanup after each test
|
|
});
|