Search posts, tags, users, and pages
Alem Tuzlak
This article goes over integration testing with a real database in your Remix apps, this can be ported over to any JS app like Next.js or any server running JS as it contains universal approaches to integration testing. The tech I will be using is th...
DJ Scruggs
Software engineer
I was getting an error finding DATABASE_URL. I was able to fix by changing pretest:i in package.json to:
npm run db:up && dotenv -e .env.test -- npx prisma migrate deploy
Requires installing dotenv with npm i dotenv
Almina Brulic
Very nicely explained, thanks!
Happy to help!
DJ Scruggs
Software engineer
I was getting an error finding DATABASE_URL. I was able to fix by changing pretest:i in package.json to:
npm run db:up && dotenv -e .env.test -- npx prisma migrate deploy
Requires installing dotenv with npm i dotenv