zetachang / react-native-dotenv

A Babel preset let you import application configs from .env file (zero runtime dependency)
MIT License
915 stars 68 forks source link

.env file not found in testing environment #36

Closed wachunei closed 6 years ago

wachunei commented 6 years ago

Hello,

I've set up circleci to run jest on my project, as far as I know, every RN project comes with babel-jest and jest transpiles it before testing (I'm testing some reducers).

The tests are passing in my local machine but on circleci they fail, I guess it is because when it tries to transpile the project it can not find any .env file, thus throwing a exception.

What is the right way to use react-native-dotenv in a cloud testing service?

Thanks

wachunei commented 6 years ago

I ended up versioning default .env file (check #37)