Skip to content

Instantly share code, notes, and snippets.

@mtimbs
Created March 10, 2020 14:10
Show Gist options
  • Save mtimbs/7d0e0fa6c5dd3e31ff622fa213f6eade to your computer and use it in GitHub Desktop.
Save mtimbs/7d0e0fa6c5dd3e31ff622fa213f6eade to your computer and use it in GitHub Desktop.
jest setup set/overwrite environment variables before running tests
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