25 lines
883 B
JavaScript
25 lines
883 B
JavaScript
'use strict';
|
||
|
||
/** @type {import('jest').Config} */
|
||
module.exports = {
|
||
testMatch: ['**/tests/integration/**/*.integration.test.js'],
|
||
testEnvironment: 'node',
|
||
collectCoverageFrom: [
|
||
'controllers/**/*.js',
|
||
'!controllers/export.js',
|
||
'!controllers/upload_job.js',
|
||
],
|
||
coverageDirectory: 'coverage/integration',
|
||
coverageReporters: ['text', 'lcov', 'json-summary'],
|
||
// Allow extra time on first run when mongodb-memory-server downloads its binary.
|
||
testTimeout: 60000,
|
||
// Each test file spins up its own in-memory MongoDB instance so files can
|
||
// run in parallel safely. Keep maxWorkers=1 to avoid hammering the CI
|
||
// machine; increase if your machine has spare cores.
|
||
maxWorkers: 1,
|
||
// CommonJS project – no Babel/ESM transform needed.
|
||
transform: {},
|
||
// Silence the mongodb-memory-server download progress logs during tests.
|
||
silent: false,
|
||
};
|