scaffold-scripts
Version:
Simple CLI tool for managing and running your own scripts. Add any script, run it anywhere.
25 lines • 685 B
JavaScript
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
roots: ['<rootDir>/tests'],
testMatch: ['**/?(*.)+(spec|test).ts'],
testPathIgnorePatterns: [
'<rootDir>/tests/files/',
'<rootDir>/node_modules/'
],
collectCoverageFrom: [
'src/**/*.ts',
'!src/**/*.d.ts',
],
coverageDirectory: 'coverage',
coverageReporters: ['text', 'lcov'],
testTimeout: 60000, // Increased for CI environments
// Run tests serially to avoid database conflicts
maxWorkers: 1,
// Ensure tests are isolated
resetMocks: true,
restoreMocks: true,
// Optimize for CI performance
verbose: false,
silent: process.env.CI === 'true'
};