github-desktop/script/jest.config.js
2020-07-09 22:47:41 +02:00

24 lines
593 B
JavaScript

module.exports = {
roots: ['<rootDir>/changelog/', '<rootDir>/draft-release/'],
transform: {
'^.+\\.tsx?$': 'ts-jest',
},
testMatch: ['**/*-test.ts'],
moduleFileExtensions: ['ts', 'js', 'jsx', 'json', 'node'],
collectCoverageFrom: [
'**/*.{js,jsx,ts,tsx}',
'!**/node_modules/**',
'!**/vendor/**',
'!**/*.d.*',
// ignore index files
'!**/index.ts',
],
reporters: ['default', '<rootDir>/jest-actions-reporter.js'],
coverageReporters: ['text-summary', 'json', 'html', 'cobertura'],
globals: {
'ts-jest': {
useBabelrc: true,
},
},
}