Basic structure of the project

- Added a model with in-memory database, and routes, controller and
middleware to enable making initial CRUD calls to endpoints;

- Added jest and an initial test.
This commit is contained in:
Rodrigo Pinto 2025-04-02 16:34:16 -03:00
commit 9c4ea4ca90
11 changed files with 3841 additions and 1 deletions

11
jest.config.ts Normal file
View file

@ -0,0 +1,11 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
moduleFileExtensions: ['ts', 'js'],
testMatch: ['**/tests/**/*.test.(ts|js)'],
globals: {
'ts-jest': {
tsconfig: 'tsconfig.json',
},
},
};