None of these worked for me, but I found a great article on configuring dotenv by default in Jest in the package.json:
{
"scripts": {
"test": "jest --setupFiles dotenv/config"
}
}
None of these worked for me, but I found a great article on configuring dotenv by default in Jest in the package.json:
{
"scripts": {
"test": "jest --setupFiles dotenv/config"
}
}