github-desktop/script/jest.config.js

32 lines
689 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',
[
'jest-junit',
{
outputDirectory: '.',
outputName: 'junit-script-test.xml',
},
],
],
coverageReporters: ['text-summary', 'json', 'html', 'cobertura'],
globals: {
'ts-jest': {
useBabelrc: true,
},
},
}