Is there a way to access environment variables def...
# orm-help
a
Is there a way to access environment variables defined in
prisma.yml
via the prisma client? I'm writing a test using jest and want to make sure the test never runs against a real mongo environment
r
Hey @Abhischek 👋 I would suggest using environment variables in
prisma.yml
defined in an
.env
file so then you can use the same
.env
file in your tests and reference the same variable via dotenv.
a
Thanks! i'll try that
👍 1