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
Loading of environment variables in a test environment doesn't appear to be working as expected.All environment variables are returning undefined. )This was working properly before upgrading to Next 10.2, but also appears to be broken in a newly made repository.
@mattcarlotta that solved the problem. It is a little confusing; because, it was working (same tests passing) before we updated. I will take a run at updating the documentation there for you though. If it caught us up it could certainly get others. Thanks again for you help.
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
vercel
locked as resolved and limited conversation to collaborators
Jan 28, 2022
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What version of Next.js are you using?
10.2.3
What version of Node.js are you using?
v14.15.4
What browser are you using?
n/a
What operating system are you using?
macOS
How are you deploying your application?
n/a
Describe the Bug
Loading of environment variables in a test environment doesn't appear to be working as expected.All environment variables are returning undefined. )This was working properly before upgrading to Next 10.2, but also appears to be broken in a newly made repository.
Expected Behavior
Environment variables should be loaded as described in Next Documentation - Test Environment Variables
To Reproduce
Have a repository that I think reproduces the issue in just about the simplest form I could come up with:
The text was updated successfully, but these errors were encountered: