Initial commit: add .gitignore and README
This commit is contained in:
21
tests/setup.ts
Normal file
21
tests/setup.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
/**
|
||||
* 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
|
||||
});
|
||||
Reference in New Issue
Block a user