Jannik
Jannik
Explore posts from servers
PPrisma
Created by Jannik on 5/15/2024 in #help-and-questions
Prisma is not using test env file
"test": "cross-env NODE_ENV=test && dotenv -e .env.test -- npx prisma db push && vitest"
"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"
DATABASE_URL="./dev.db"
but it should
DATABASE_URL="./test.db"
DATABASE_URL="./test.db"
2 replies