We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have an env variable APP_KEY which should come from Alfred workflow, but what should we do in the test? Could I set that in the test?
I tried:
test: export APP_KEY='9840c89040f56003' && ava
Thanks!
The text was updated successfully, but these errors were encountered:
temporarily, I modify your package. In env.js file, I add the environment variable and it works.
env.js
Sorry, something went wrong.
Since you're using https://github.com/avajs/ava you should be able to use the environmentVariables config option.
environmentVariables
For example, in your package.json
"ava": { "environmentVariables": { "APP_KEY": "14444444" } }
Then in your test you can simply reference that from process.env.APP_KEY.
process.env.APP_KEY
No branches or pull requests
I have an env variable APP_KEY which should come from Alfred workflow, but what should we do in the test? Could I set that in the test?
I tried:
test: export APP_KEY='9840c89040f56003' && ava
, still couldn't get it.Thanks!
The text was updated successfully, but these errors were encountered: