UNPKG

@gp_jcisneros/aws-utils

Version:

AWS SDK utilities for GreenPay microservices

61 lines (45 loc) 1.29 kB
module.exports = { // Test environment testEnvironment: 'node', // Test file patterns testMatch: ['**/tests/**/*.test.js', '**/__tests__/**/*.test.js'], // Coverage configuration collectCoverageFrom: [ 'src/**/*.js', '!src/index.js', // Exclude main entry point from coverage '!**/node_modules/**', ], // Coverage thresholds coverageThreshold: { global: { branches: 80, functions: 80, lines: 80, statements: 80, }, }, // Coverage reporters coverageReporters: ['text', 'lcov', 'html'], // Coverage directory coverageDirectory: 'coverage', // Setup files setupFilesAfterEnv: ['<rootDir>/tests/setup.js'], // Test timeout testTimeout: 10000, // Verbose output verbose: true, // Clear mocks between tests clearMocks: true, // Restore mocks between tests restoreMocks: true, // Module file extensions moduleFileExtensions: ['js', 'json'], // Transform configuration transform: {}, // Module name mapping moduleNameMapper: {}, // Test path ignore patterns testPathIgnorePatterns: ['/node_modules/', '/coverage/'], // Watch path ignore patterns watchPathIgnorePatterns: ['/node_modules/', '/coverage/'], };