Browse Source

jest config for realm

pull/1/head
Tim Glasgow 2 years ago
parent
commit
b12c34f9c9
  1. 3
      squarenotsquare/jest.config.js

3
squarenotsquare/jest.config.js

@ -7,7 +7,8 @@ module.exports = {
moduleNameMapper: {
// '@react-native-firebase/messaging: '<rootDir>/__mock__/mockFirebase.js',
'../services/Keystore': '<rootDir>/__mock__/mockKeyStore.js',
'\\.(jpg|ico|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': '<rootDir>/__mock__/file.js'
'\\.(jpg|ico|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': '<rootDir>/__mock__/file.js',
'^(realm)': '<rootDir>/__mock__/mockRealmObject'
},
transform: {
'^.+\\.(ts|tsx)?$': 'ts-jest',

Loading…
Cancel
Save