mirror of
https://github.com/hanzo-apps/android-rn-obytes.git
synced 2026-11-09 15:50:32 +00:00
41 lines
1.4 KiB
JavaScript
41 lines
1.4 KiB
JavaScript
module.exports = {
|
||
preset: 'jest-expo',
|
||
setupFilesAfterEnv: ['<rootDir>/jest-setup.ts'],
|
||
testMatch: ['**/?(*.)+(spec|test).ts?(x)'],
|
||
collectCoverageFrom: [
|
||
'src/**/*.{ts,tsx}',
|
||
'!**/coverage/**',
|
||
'!**/node_modules/**',
|
||
'!**/babel.config.js',
|
||
'!**/jest-setup.ts',
|
||
'!**/docs/**',
|
||
'!**/cli/**',
|
||
],
|
||
moduleFileExtensions: ['js', 'ts', 'tsx'],
|
||
transformIgnorePatterns: [
|
||
`node_modules/(?!(?:.pnpm/)?((jest-)?react-native|@react-native(-community)?|expo(nent)?|@expo(nent)?/.*|@expo-google-fonts/.*|react-navigation|@react-navigation/.*|@unimodules/.*|unimodules|@sentry/.*|native-base|react-native-svg|@gorhom/.*|@shopify/.*|@tanstack/.*|react-native-reanimated|react-native-mmkv|react-native-nitro-modules|react-native-worklets|moti|zustand|tailwind-merge|tailwind-variants|uniwind))`,
|
||
],
|
||
coverageReporters: ['json-summary', ['text', { file: 'coverage.txt' }]],
|
||
reporters: [
|
||
'default',
|
||
['github-actions', { silent: false }],
|
||
'summary',
|
||
[
|
||
'jest-junit',
|
||
{
|
||
outputDirectory: 'coverage',
|
||
outputName: 'jest-junit.xml',
|
||
ancestorSeparator: ' › ',
|
||
uniqueOutputName: 'false',
|
||
suiteNameTemplate: '{filepath}',
|
||
classNameTemplate: '{classname}',
|
||
titleTemplate: '{title}',
|
||
},
|
||
],
|
||
],
|
||
coverageDirectory: '<rootDir>/coverage/',
|
||
moduleNameMapper: {
|
||
'^@/(.*)$': '<rootDir>/src/$1',
|
||
},
|
||
};
|