© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
How to use t3env in unit tests? - Theo's Typesafe Cult
TTC
Theo's Typesafe Cult
•
5mo ago
•
1 reply
Chen
How to use t3env in unit tests?
I
’m looking to adopt t3env
, but since environment variables are parsed once when the app starts
, I
’m not able to use unit testing utilities like
vi.stubEnv
vi.stubEnv
during tests because they change the underlying values
, not the parsed ones
.
Has anyone else run into this limitation
?
Recent Announcements
Similar Threads
Mocked unit tests or Integration tests
TTC
Theo's Typesafe Cult / questions
4y ago
UNIT TESTS EXPO APP
TTC
Theo's Typesafe Cult / questions
4y ago
UI, Unit, Integration, Security Tests required?
TTC
Theo's Typesafe Cult / questions
6mo ago
Using hardcoded data for comparison in unit tests with toEqual?
TTC
Theo's Typesafe Cult / questions
2y ago