7 lines
288 B
JavaScript
7 lines
288 B
JavaScript
// Global setup — runs once before all test suites.
|
|
// When DATABASE_URL points to a real test DB, Prisma migrations are applied here.
|
|
// In CI/local runs without a live DB, tests use mocked Prisma via jest.mock.
|
|
module.exports = async function () {
|
|
process.env.NODE_ENV = 'test';
|
|
};
|