mirror of
https://github.com/desktop/desktop
synced 2024-10-31 05:19:03 +00:00
14 lines
636 B
JavaScript
14 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))'],
|
|
}
|