taymoor
TTCTheo's Typesafe Cult
•Created by CuriouslyCory on 8/10/2023 in #questions
.env parsing causing cypress failure
Has anyone tried stubbing/mocking either the export value from
createEnv
or createEnv
itself in cypress w/ component testing?
I have a "ui" component that is only going to be RSC'd because it relies on a env variable only scoped to the server
Component testing forces it be browser rendered, so i was thinking stubbing and mocking the env
you import in from ~/env
could be a solution, however i can't find a good way to cy.stub
either createEnv
or env
24 replies