add test to gitignore & jest settings
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -32,6 +32,7 @@ Thumbs.db
|
|||||||
# Testing
|
# Testing
|
||||||
coverage/
|
coverage/
|
||||||
.nyc_output/
|
.nyc_output/
|
||||||
|
__tests__/
|
||||||
|
|
||||||
# Build
|
# Build
|
||||||
dist/
|
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",
|
"nodemon": "^3.1.7",
|
||||||
"supertest": "^6.3.4"
|
"supertest": "^6.3.4"
|
||||||
},
|
},
|
||||||
"type": "module",
|
"type": "module"
|
||||||
"jest": {
|
|
||||||
"testEnvironment": "node",
|
|
||||||
"transform": {}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user