add test to gitignore & jest settings
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -32,6 +32,7 @@ Thumbs.db
|
||||
# Testing
|
||||
coverage/
|
||||
.nyc_output/
|
||||
__tests__/
|
||||
|
||||
# Build
|
||||
dist/
|
||||
|
||||
12
jest.config.js
Normal file
12
jest.config.js
Normal file
@@ -0,0 +1,12 @@
|
||||
export default {
|
||||
testEnvironment: 'node',
|
||||
transform: {},
|
||||
testMatch: ['**/__tests__/routes/**/*.test.js'],
|
||||
moduleFileExtensions: ['js', 'mjs'],
|
||||
verbose: true,
|
||||
testTimeout: 30000,
|
||||
// ESM modules need isolation - each test file gets its own module cache
|
||||
maxWorkers: 1,
|
||||
forceExit: true,
|
||||
detectOpenHandles: false,
|
||||
};
|
||||
@@ -46,9 +46,5 @@
|
||||
"nodemon": "^3.1.7",
|
||||
"supertest": "^6.3.4"
|
||||
},
|
||||
"type": "module",
|
||||
"jest": {
|
||||
"testEnvironment": "node",
|
||||
"transform": {}
|
||||
}
|
||||
"type": "module"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user