updating unit and integration tests
This commit is contained in:
@@ -1,5 +1,22 @@
|
||||
module.exports = {
|
||||
testEnvironment: 'node',
|
||||
projects: [
|
||||
{
|
||||
displayName: 'unit',
|
||||
testEnvironment: 'node',
|
||||
testMatch: ['**/tests/unit/**/*.test.js'],
|
||||
setupFilesAfterEnv: ['<rootDir>/tests/setup.js'],
|
||||
testTimeout: 10000,
|
||||
},
|
||||
{
|
||||
displayName: 'integration',
|
||||
testEnvironment: 'node',
|
||||
testMatch: ['**/tests/integration/**/*.test.js'],
|
||||
setupFilesAfterEnv: ['<rootDir>/tests/integration-setup.js'],
|
||||
testTimeout: 30000,
|
||||
},
|
||||
],
|
||||
// Run tests sequentially to avoid module cache conflicts between unit and integration tests
|
||||
maxWorkers: 1,
|
||||
coverageDirectory: 'coverage',
|
||||
collectCoverageFrom: [
|
||||
'**/*.js',
|
||||
@@ -9,10 +26,6 @@ module.exports = {
|
||||
'!jest.config.js'
|
||||
],
|
||||
coverageReporters: ['text', 'lcov', 'html'],
|
||||
testMatch: ['**/tests/**/*.test.js'],
|
||||
setupFilesAfterEnv: ['<rootDir>/tests/setup.js'],
|
||||
forceExit: true,
|
||||
testTimeout: 10000,
|
||||
coverageThreshold: {
|
||||
global: {
|
||||
lines: 80,
|
||||
|
||||
Reference in New Issue
Block a user