Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

update packages

ammarahm-ed3845c2af60d1
diff --git a/apps/mobile/babel.config.js b/apps/mobile/babel.config.js
index b14de0fe7..67a421bff 100644
--- a/apps/mobile/babel.config.js
+++ b/apps/mobile/babel.config.js
@@ -5,6 +5,10 @@ const configs = {
presets: ['module:metro-react-native-babel-preset'],
plugins: ['@babel/plugin-transform-named-capturing-groups-regex']
},
+ test: {
+ presets: ['module:metro-react-native-babel-preset'],
+ plugins: ['@babel/plugin-transform-named-capturing-groups-regex']
+ },
production: {
presets: ['module:metro-react-native-babel-preset'],
plugins: ['transform-remove-console', '@babel/plugin-transform-named-capturing-groups-regex']
diff --git a/apps/mobile/index.js b/apps/mobile/index.js
index 813832779..3c82b0f46 100644
--- a/apps/mobile/index.js
+++ b/apps/mobile/index.js
@@ -1,11 +1,17 @@
import React from 'react';
import { AppRegistry, LogBox, Platform, UIManager } from 'react-native';
+import Config from 'react-native-config';
import 'react-native-gesture-handler';
import { SafeAreaProvider } from 'react-native-safe-area-context';
import { enableScreens } from 'react-native-screens';
import { name as appName } from './app.json';
import Notifications from './src/services/notifications';
global.Buffer = require('buffer').Buffer;
+
+if (Config.isTesting) {
+ Date.prototype.toLocaleString = () => 'XX-XX-XX';
+}
+
enableScreens(true);
UIManager.setLayoutAnimationEnabledExperimental &&
UIManager.setLayoutAnimationEnabledExperimental(true);
diff --git a/apps/mobile/tsconfig.json b/apps/mobile/tsconfig.json
index 14d3b2084..a5c89a3ac 100644
--- a/apps/mobile/tsconfig.json
+++ b/apps/mobile/tsconfig.json
@@ -13,8 +13,16 @@
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"skipLibCheck": false,
- "maxNodeModuleJsDepth": 10,
+ "maxNodeModuleJsDepth": 6,
"downlevelIteration": true
},
- "exclude": ["babel.config.js", "metro.config.js", "jest.config.js", "android", "ios", "html"]
+ "exclude": [
+ "babel.config.js",
+ "metro.config.js",
+ "jest.config.js",
+ "android",
+ "ios",
+ "html",
+ "e2e"
+ ]
}