feat: add API unit tests
Add Bun test suite covering: - Auth: register, login, duplicate email, invalid password - Events: create, location, validation, unauthorized - Journals: get, generate, delete, list with pagination - Settings: get, update, clear prompt, change password - Export/Import: export data, events with location - Search: search events, no matches, cross-date - Days: list days, get day details, empty day
This commit is contained in:
2
backend/bunfig.toml
Normal file
2
backend/bunfig.toml
Normal file
@@ -0,0 +1,2 @@
|
||||
[test]
|
||||
preload = ["./src/__tests__/helpers.ts"]
|
||||
Reference in New Issue
Block a user