test: add jest/supertest infrastructure and make server.js testable
Made-with: Cursor
This commit is contained in:
4
tests/jest.setup.js
Normal file
4
tests/jest.setup.js
Normal file
@@ -0,0 +1,4 @@
|
||||
process.env.DB_PATH = ':memory:';
|
||||
process.env.JWT_SECRET = 'test-jwt-secret-do-not-use-in-prod';
|
||||
process.env.ADMIN_KEY = 'test-admin-key';
|
||||
process.env.PORT = '0';
|
||||
Reference in New Issue
Block a user