Skip to content

Commit

Permalink
Merge pull request #35834 from ruben-rebelo/ts-migration/react-native…
Browse files Browse the repository at this point in the history
…-config-mock

[TS migration] Migrate react-native-config mock
  • Loading branch information
Hayata Suenaga authored Feb 12, 2024
2 parents b2cc3f9 + e8b580e commit d09d39b
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 d09d39b

Please sign in to comment.