mirror of
https://github.com/desktop/desktop
synced 2024-10-05 23:59:33 +00:00
28 lines
1,002 B
JavaScript
28 lines
1,002 B
JavaScript
module.exports = {
|
|
roots: ['<rootDir>/src/', '<rootDir>/test/'],
|
|
transform: {
|
|
'^.+\\.tsx?$': 'ts-jest',
|
|
'\\.m?jsx?$': 'jest-esm-transformer',
|
|
},
|
|
testMatch: ['**/unit/**/*-test.ts{,x}'],
|
|
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
|
|
setupFiles: ['<rootDir>/test/globals.ts', '<rootDir>/test/unit-test-env.ts'],
|
|
setupFilesAfterEnv: ['<rootDir>/test/setup-test-framework.ts'],
|
|
collectCoverageFrom: [
|
|
'src/**/*.{js,jsx,ts,tsx}',
|
|
'!**/node_modules/**',
|
|
'!**/vendor/**',
|
|
'!**/*.d.*',
|
|
// not focused on testing these areas currently
|
|
'!src/cli/**/*',
|
|
'!src/crash/**/*',
|
|
'!src/highlighter/**/*',
|
|
// ignore index files
|
|
'!**/index.ts',
|
|
],
|
|
reporters: ['default', '<rootDir>../script/jest-actions-reporter.js'],
|
|
coverageReporters: ['text-summary', 'json', 'html', 'cobertura'],
|
|
// For now, @github Node modules required to be transformed by jest-esm-transformer
|
|
transformIgnorePatterns: ['node_modules/(?!(@github))'],
|
|
}
|