mirror of
https://github.com/desktop/desktop
synced 2024-10-31 11:07:25 +00:00
32 lines
689 B
JavaScript
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,
|
|
},
|
|
},
|
|
}
|