Skip to content

npx ava -r dotenv-flow/config not working #3256

Closed Answered by novemberborn
sombriks asked this question in Q&A
Discussion options

You must be logged in to vote

-r is a Node.js argument, not an AVA argument. You can load dotenv-flow/config in test files using the require config, e.g. ava.config.mjs:

export default {
  require: ['dotenv-flow/config']
}

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@sombriks
Comment options

Answer selected by sombriks
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants
Converted from issue

This discussion was converted from issue #3253 on November 06, 2023 19:31.