npx ava -r dotenv-flow/config not working #3256
-
Hello! I want to load environment-specific variables with the help of a dotenv library. My current workflow with other libraries is to use the '-r ' argument so node car preload the library for me so it populates my environment variables for me in a transparent way. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
Beta Was this translation helpful? Give feedback.
-
and this is a nice sample with the package.json alternative config :-) i feel that i can fully migrate from mocha to ava now, thank you very much! |
Beta Was this translation helpful? Give feedback.
-r
is a Node.js argument, not an AVA argument. You can loaddotenv-flow/config
in test files using therequire
config, e.g.ava.config.mjs
: