mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 16:53:25 +00:00
feat: actually link expo and nx
This commit is contained in:
13
apps/mobile/jest.config.ts
Normal file
13
apps/mobile/jest.config.ts
Normal 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',
|
||||
},
|
||||
};
|
Reference in New Issue
Block a user