github-desktop/app/jest.unit.config.js

15 lines
636 B
JavaScript
Raw Normal View History

2018-08-08 00:25:36 +00:00
module.exports = {
roots: ['<rootDir>/src/', '<rootDir>/test/'],
transform: {
'^.+\\.tsx?$': 'ts-jest',
'\\.m?jsx?$': 'jest-esm-transformer',
},
2018-09-21 16:34:33 +00:00
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'],
2020-07-09 17:41:10 +00:00
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))'],
2018-08-08 00:25:36 +00:00
}