From e8b580e5dda797192b14ac6ba58e3aa6ffc24467 Mon Sep 17 00:00:00 2001
From: ruben-rebelo <ruben.rato96@gmail.com>
Date: Mon, 5 Feb 2024 16:28:23 +0000
Subject: [PATCH] [TS migration] Migrate react-native-config mock

---
 __mocks__/react-native-config.js | 6 ------
 __mocks__/react-native-config.ts | 8 ++++++++
 2 files changed, 8 insertions(+), 6 deletions(-)
 delete mode 100644 __mocks__/react-native-config.js
 create mode 100644 __mocks__/react-native-config.ts

diff --git a/__mocks__/react-native-config.js b/__mocks__/react-native-config.js
deleted file mode 100644
index 7c3900efa21e..000000000000
--- a/__mocks__/react-native-config.js
+++ /dev/null
@@ -1,6 +0,0 @@
-const path = require('path');
-const dotenv = require('dotenv');
-
-const env = dotenv.config({path: path.resolve('./.env.example')}).parsed;
-
-export default env;
diff --git a/__mocks__/react-native-config.ts b/__mocks__/react-native-config.ts
new file mode 100644
index 000000000000..129d7c97ed43
--- /dev/null
+++ b/__mocks__/react-native-config.ts
@@ -0,0 +1,8 @@
+import dotenv from 'dotenv';
+import path from 'path';
+
+type ReactNativeConfigMock = dotenv.DotenvParseOutput | undefined;
+
+const reactNativeConfigMock: ReactNativeConfigMock = dotenv.config({path: path.resolve('./.env.example')}).parsed;
+
+export default reactNativeConfigMock;