agmission/Development/server/jest.integration.config.js
2026-04-29 09:40:51 -04:00

18 lines
662 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',
// 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,
};