agmission/Development/server/jest.integration.config.js
Devin Major 0a2b93a8c7
Some checks failed
Server Tests / Mocha – Unit & Utility Tests (push) Successful in 50s
Server Tests / Jest – Integration Tests (push) Failing after 1m25s
output the test results and coverage report as artifacts
2026-04-29 13:30:25 -04:00

25 lines
883 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

'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,
};