WellNuo/jest.config.js
Sergei e4d7ae94a1 Fix jest config to exclude web/admin/WellNuoLite test directories
These projects have their own jest configurations with different path
mappings. Running their tests from root jest config causes module
resolution errors. Each project should run tests using its own config.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-02-01 11:28:37 -08:00

34 lines
1.1 KiB
JavaScript

module.exports = {
preset: 'jest-expo',
testEnvironment: 'node',
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
transformIgnorePatterns: [
'node_modules/(?!(expo|expo-router|expo-font|expo-asset|expo-constants|expo-modules-core|expo-status-bar|expo-splash-screen|expo-file-system|@expo/.*|@expo-google-fonts/.*|@react-native|react-native|react-native-reanimated|react-native-worklets|@react-navigation|react-navigation|@unimodules/.*|unimodules|sentry-expo|native-base|react-native-svg|react-native-ble-plx|react-native-base64|@stripe/.*)/)',
],
testPathIgnorePatterns: [
'/node_modules/',
'<rootDir>/web/',
'<rootDir>/admin/',
'<rootDir>/WellNuoLite/',
],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/$1',
},
collectCoverageFrom: [
'components/**/*.{ts,tsx}',
'app/**/*.{ts,tsx}',
'services/**/*.{ts,tsx}',
'contexts/**/*.{ts,tsx}',
'!**/*.d.ts',
'!**/node_modules/**',
],
globals: {
'ts-jest': {
tsconfig: {
jsx: 'react',
},
},
},
};