---
title: "Comment by DJ Scruggs on \"Integration testing Remix apps with Vitest, Typescript & Docker\" | Hashnode"
description: "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 &amp;&amp; dotenv -e .env.test -- npx pri"
url: "https://hashnode.com/posts/integration-testing-remix-apps-with-vitest-typescript-docker/653930bcc376cf0d7dac5cfe/comment/67587777d483b0279390c873"
---

[Discussion](https://hashnode.com/posts/integration-testing-remix-apps-with-vitest-typescript-docker/653930bcc376cf0d7dac5cfe)

Comment [Integration testing Remix apps with Vitest, Typescript & Docker](https://hashnode.com/posts/integration-testing-remix-apps-with-vitest-typescript-docker/653930bcc376cf0d7dac5cfe)

[DJ Scruggs](https://hashnode.com/@djscruggs)

[Dec 10, 2024](https://hashnode.com/posts/integration-testing-remix-apps-with-vitest-typescript-docker/653930bcc376cf0d7dac5cfe/comment/67587777d483b0279390c873)

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
