SyntaxFix
Write A Post
Hire A Developer
Questions
I think you could try this too:
const currentEnv = process.env; process.env = { ENV_NODE: 'whatever' }; // test code... process.env = currentEnv;
This works for me and you don't need module things