Hi!
I think we should use a different SQLite database instance for e2e testing. That is to separate whatever state the local database has during development. Basically, each test run should start with a clean database (and likely even drop the db between test suites/cases as well) to ensure proper test isolation.
I've tried setting DATABASE_URL to file:./data.db? in here:
|
env: { |
|
PORT, |
|
NODE_ENV: 'test', |
|
}, |
I've also tried DATABASE_PATH: './prisma/test.db' to no effect.
But that had no effect on the app under test; it still used ./prisma/data.db. I might be doing something wrong here... Any hints would be appreciated!
Hi!
I think we should use a different SQLite database instance for e2e testing. That is to separate whatever state the local database has during development. Basically, each test run should start with a clean database (and likely even drop the db between test suites/cases as well) to ensure proper test isolation.
I've tried setting
DATABASE_URLtofile:./data.db?in here:epic-stack/playwright.config.ts
Lines 37 to 40 in 97135fc
But that had no effect on the app under test; it still used
./prisma/data.db. I might be doing something wrong here... Any hints would be appreciated!