-
Notifications
You must be signed in to change notification settings - Fork 128
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
Set environment variables before running tests. #138
Comments
take a look here: this will only work for debug |
generally it should also be possible to define an alternative jest command
than in your vscode config "jestrunner.jestCommand": "npm run test --" |
Nice, that works for running. I found the debug config via the linked issue. For others coming here, to set env vars for run and debug: Setup
|
nice thx for your feedback |
How can I specify an environment variable that should be available during the execution of my tests?
Eg. I want to set the
AWS_DEFAULT_PROFILE
environment variable to run my test.The text was updated successfully, but these errors were encountered: