feat(tests): Jest backend (38 tests), Jest RTL frontend (28 tests), Playwright E2E spec

This commit is contained in:
Experiments DB Dev
2026-04-15 13:23:48 -04:00
parent c359cb4bb9
commit 5874ed8374
25 changed files with 9620 additions and 3652 deletions
+6
View File
@@ -0,0 +1,6 @@
// 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';
};