server-side environment variable in jest

I'm testing a function that's it used in getStaticPaths with jest And @t3-oss/env-nextjs tell me that I can't because I'm not in a server-side What do you recommend ?
1 Reply
sliprose
sliprose2y ago
actualy putting /** * @jest-environment node */ at the top of the test solve the probleme
Want results from more Discord servers?
Add your server