test: add jest/supertest infrastructure and make server.js testable

Made-with: Cursor
This commit is contained in:
cottongin
2026-03-15 18:40:44 -04:00
parent 81fcae545e
commit 84b0c83409
6 changed files with 6653 additions and 16 deletions

8
jest.config.js Normal file
View File

@@ -0,0 +1,8 @@
module.exports = {
testEnvironment: 'node',
roots: ['<rootDir>/tests'],
setupFiles: ['<rootDir>/tests/jest.setup.js'],
testMatch: ['**/*.test.js'],
testTimeout: 10000,
moduleDirectories: ['node_modules', '<rootDir>/backend/node_modules'],
};