Skip to content

Commit

Permalink
[TS migration] Migrate react-native-config mock
Browse files Browse the repository at this point in the history
  • Loading branch information
ruben-rebelo committed Feb 5, 2024
1 parent 6c2882a commit e8b580e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 0 additions & 6 deletions __mocks__/react-native-config.js

This file was deleted.

8 changes: 8 additions & 0 deletions __mocks__/react-native-config.ts
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit e8b580e

Please sign in to comment.