github-desktop/app/jest.unit.config.js
2022-05-04 12:13:38 +02:00

15 lines
636 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'],
reporters: ['default', '<rootDir>../script/jest-actions-reporter.js'],
// For now, @github Node modules required to be transformed by jest-esm-transformer
transformIgnorePatterns: ['node_modules/(?!(@github))'],
}