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...

Markdown supported · ⌘↵ to post
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