PrismaP
Prisma2y ago
1 reply
Jannik

Prisma is not using test env file

 "test": "cross-env NODE_ENV=test && dotenv -e .env.test -- npx prisma db push && vitest"


it is creating the following db
DATABASE_URL="./dev.db"

but it should
DATABASE_URL="./test.db"
Was this page helpful?