2018-08-08 00:25:36 +00:00
|
|
|
module.exports = {
|
2018-12-31 18:22:03 +00:00
|
|
|
roots: ['<rootDir>/src/', '<rootDir>/test/'],
|
2020-07-09 17:48:45 +00:00
|
|
|
transform: {
|
|
|
|
'^.+\\.tsx?$': 'ts-jest',
|
2022-01-11 11:42:22 +00:00
|
|
|
'\\.m?jsx?$': 'jest-esm-transformer',
|
2020-07-09 17:48:45 +00:00
|
|
|
},
|
2018-09-21 16:34:33 +00:00
|
|
|
testMatch: ['**/unit/**/*-test.ts{,x}'],
|
2020-07-09 17:48:45 +00:00
|
|
|
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
|
2018-12-31 18:22:03 +00:00
|
|
|
setupFiles: ['<rootDir>/test/globals.ts', '<rootDir>/test/unit-test-env.ts'],
|
2021-02-15 19:05:51 +00:00
|
|
|
setupFilesAfterEnv: ['<rootDir>/test/setup-test-framework.ts'],
|
2020-07-09 17:41:10 +00:00
|
|
|
reporters: ['default', '<rootDir>../script/jest-actions-reporter.js'],
|
2022-01-11 12:15:33 +00:00
|
|
|
// 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
|
|
|
}
|