Created
March 10, 2020 14:10
-
-
Save mtimbs/7d0e0fa6c5dd3e31ff622fa213f6eade to your computer and use it in GitHub Desktop.
jest setup set/overwrite environment variables before running tests
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const env = { | |
AWS_REGION: 'local', | |
AWS_ACCESS_KEY: 'fake_key', | |
AWS_SECRET_KEY: 'fake_secret', | |
}; | |
process.env = { | |
...process.env, | |
...env, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment