ssh-notify-tool
Version:
Universal notification system for CLI tools with support for local and remote execution via SSH
61 lines (48 loc) • 1.12 kB
JavaScript
/**
* Jest configuration for SSH Notify Tool
*/
module.exports = {
// Test environment
testEnvironment: 'node',
// Root directory for tests
roots: ['<rootDir>/src', '<rootDir>/tests'],
// Test file patterns
testMatch: [
'**/__tests__/**/*.js',
'**/?(*.)+(spec|test).js'
],
// Coverage configuration
collectCoverage: true,
collectCoverageFrom: [
'src/**/*.js',
'!src/**/*.test.js',
'!src/**/*.spec.js'
],
coverageDirectory: 'coverage',
coverageReporters: ['text', 'lcov', 'html'],
// Coverage thresholds
coverageThreshold: {
global: {
branches: 70,
functions: 80,
lines: 80,
statements: 80
}
},
// Setup files
setupFilesAfterEnv: ['<rootDir>/tests/setup.js'],
// Transform configuration (for ES6 modules if needed)
transform: {},
// Module paths
modulePaths: ['<rootDir>/src'],
// Test timeout
testTimeout: 10000,
// Verbose output
verbose: true,
// Clear mocks between tests
clearMocks: true,
// Reset modules between tests
resetModules: true,
// Error handling
errorOnDeprecated: true
};