Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support .env.test when process.env.NODE_ENV === 'test' #23

Open
antonakospanos opened this issue Jun 21, 2023 · 1 comment
Open

Support .env.test when process.env.NODE_ENV === 'test' #23

antonakospanos opened this issue Jun 21, 2023 · 1 comment

Comments

@antonakospanos
Copy link

antonakospanos commented Jun 21, 2023

Sourcing .env so that we can easily override the default configs during the local development is a great feature but it's also very common to need an override during test execution.

Sourcing .env.test in that case is sth supported in similar libraries for other frameworks too (i.e. RoR)

@nikostoulas
Copy link
Collaborator

@antonakospanos if the env does not contain secrets then you could utilize: https://github.com/Workable/job-board/blob/master/src/config/env/test.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants