UNPKG

@app-connect/core

Version:
57 lines (46 loc) 1.16 kB
const path = require('path'); module.exports = { // Test environment testEnvironment: 'node', // Test file patterns testMatch: [ '<rootDir>/test/**/*.test.js', '<rootDir>/**/*.test.js' ], // Setup files setupFilesAfterEnv: [ '<rootDir>/test/setup.js' ], // Coverage configuration collectCoverage: true, coverageDirectory: '<rootDir>/coverage', coverageReporters: ['text', 'lcov', 'html'], coveragePathIgnorePatterns: [ '/node_modules/', '/test/', '/coverage/', 'jest.config.js', 'setup.js' ], // Module resolution moduleDirectories: ['node_modules', '<rootDir>'], moduleNameMapper: { '^@app-connect/core/(.*)$': '<rootDir>/$1' }, // Test timeout testTimeout: 30000, // Reporters reporters: ['default'], // Ignore patterns modulePathIgnorePatterns: [ '<rootDir>/node_modules/', '<rootDir>/coverage/', '<rootDir>/test-results/' ], // Clear mocks between tests clearMocks: true, // Restore mocks between tests restoreMocks: true, // Verbose output verbose: true };