module.exports = {
  testEnvironment: 'node',
  testTimeout: 15000,
  testMatch: ['**/__tests__/**/*.test.js'],
  collectCoverageFrom: [
    'state-manager.js',
    'input-validator.js',
    'crypto-utils.js',
    'health-checker.js',
    'backup-manager.js',
    'update-manager.js',
    'resource-monitor.js',
    'credential-manager.js',
    'app-templates.js'
  ],
  coverageThreshold: {
    global: {
      branches: 80,
      functions: 80,
      lines: 80,
      statements: 80
    }
  },
  setupFilesAfterEnv: ['<rootDir>/__tests__/jest.setup.js'],
  restoreMocks: true,
  clearMocks: true
};
