You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I want to load .env.test.local instead of the default .env.local during the test but I can't seem to find anything about it
I've tried using dotenv but it's not update the process env
importdotenvfrom'dotenv';import{join}from'node:path';dotenv.config({path: join(import.meta.dir,'.env.test.local'),});console.log(process.env.NODE_ENV);// development
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I want to load
.env.test.local
instead of the default.env.local
during the test but I can't seem to find anything about itI've tried using dotenv but it's not update the process env
Beta Was this translation helpful? Give feedback.
All reactions