Hi guys, I use Jest for unit testing, so I want to...
# orm-help
c
Hi guys, I use Jest for unit testing, so I want to create another database for only testing. Have a solution, thanks.
prismo gif 1
🤔 1
prisma rainbow 1
👀 1
❤️ 1
parrotwave2 1
👋 1
j
Hey Cuong, can’t you do that with a second DB and .env vars? Are you looking to set this up on localhost?
t
The way I do it with Cypress is I just have a very specific Jest user and company specific for logging in and doing Jest testing. I don’t do a completely different DB.
j
Haven’t tried Cypress before - looks v cool. Thanks @tmoney
c
@JamesJ I want to setup on localhost.
j
@Cuong Duy Nguyen presuming you have a react front end too is there any useful tips in Dave Ceddia’s article here that you can use? https://daveceddia.com/multiple-environments-with-react/
👍 1