P
Prisma3mo ago
Jannik

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"
0 Replies
No replies yetBe the first to reply to this messageJoin