feat: actually link expo and nx

This commit is contained in:
castdrian
2024-01-14 21:24:49 +01:00
parent 8f673cc7f3
commit 9f37eaa006
38 changed files with 5678 additions and 1529 deletions

View File

@@ -0,0 +1,13 @@
module.exports = {
displayName: 'mobile',
resolver: '@nx/jest/plugins/resolver',
preset: 'jest-expo',
transformIgnorePatterns: [
'node_modules/(?!((jest-)?react-native|@react-native(-community)?)|expo(nent)?|@expo(nent)?/.*|@expo-google-fonts/.*|react-navigation|@react-navigation/.*|@unimodules/.*|unimodules|sentry-expo|native-base|react-native-svg)',
],
moduleFileExtensions: ['ts', 'js', 'html', 'tsx', 'jsx'],
setupFilesAfterEnv: ['<rootDir>/test-setup.ts'],
moduleNameMapper: {
'\\.svg$': '@nx/expo/plugins/jest/svg-mock',
},
};