From b12c34f9c9daf3588d97431e4c44948fced4df95 Mon Sep 17 00:00:00 2001 From: Tim Glasgow Date: Sat, 30 Jul 2022 14:43:44 -0500 Subject: [PATCH] jest config for realm --- squarenotsquare/jest.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/squarenotsquare/jest.config.js b/squarenotsquare/jest.config.js index aa7322b..1fd92fd 100644 --- a/squarenotsquare/jest.config.js +++ b/squarenotsquare/jest.config.js @@ -7,7 +7,8 @@ module.exports = { moduleNameMapper: { // '@react-native-firebase/messaging: '/__mock__/mockFirebase.js', '../services/Keystore': '/__mock__/mockKeyStore.js', - '\\.(jpg|ico|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': '/__mock__/file.js' + '\\.(jpg|ico|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': '/__mock__/file.js', + '^(realm)': '/__mock__/mockRealmObject' }, transform: { '^.+\\.(ts|tsx)?$': 'ts-jest',