test: add jest/supertest infrastructure and make server.js testable
Made-with: Cursor
This commit is contained in:
8
jest.config.js
Normal file
8
jest.config.js
Normal 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'],
|
||||
};
|
||||
Reference in New Issue
Block a user