Search posts, tags, users, and pages
Master integration testing for Remix apps using Vitest, TypeScript, Docker, and real databases, with adaptable techniques for any JS app like Next.js
Alem Tuzlak
@Alle00 · Sarajevo, Bosnia and Herzegovi
Making your http://Remix.run experience more enjoyable. Creator of Remix Forge & remix-hook-form & remix-development-tools. OSS contributor and enthusiast.
Markdown supported · ⌘↵ to post
DJ Scruggs
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
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