Commit Graph

29 Commits

Author SHA1 Message Date
80d2b1ffe6 Add user database service and unit tests
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 4m28s
- Implement user database service with functions for user management (create, find, update, delete).
- Add comprehensive unit tests for user database service using Vitest.
- Mock database interactions to ensure isolated testing.
- Create setup files for unit tests to handle database connections and global mocks.
- Introduce error handling for unique constraints and foreign key violations.
- Enhance logging for better traceability during database operations.
2025-12-04 15:30:27 -08:00
5c214fb6f4 Refactor tests and services for improved type safety and error handling
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 4m24s
- Updated FlyerCorrectionTool tests to remove unused error notification.
- Enhanced ProfileManager tests and component to include points in user profile.
- Fixed error handling in ProfileManager to correctly log error messages.
- Adjusted AI routes tests to ensure proper mocking and added missing properties in mock responses.
- Refined AI routes to improve error message extraction and payload handling.
- Cleaned up gamification routes tests by removing unnecessary parameters.
- Simplified public routes by removing unused parameters in async handlers.
- Improved system routes tests to handle exec command callbacks more robustly.
- Updated user routes tests to remove unnecessary middleware parameters.
- Enhanced AI API client tests to use File objects for simulating uploads.
- Modified AI service tests to improve type safety and mock implementations.
- Refined database service tests to ensure proper type assertions and mock setups.
- Updated express type definitions for better clarity and organization.
- Cleaned up notification service tests to mock local re-exports instead of library directly.
2025-12-04 12:46:12 -08:00
8cd61a8646 refactor: simplify async route handlers by making 'next' optional 2025-12-04 10:00:54 -08:00
e63999694a added address table, super awesome - bunch of gitea workflow options - "Processed Flyers" made better
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 1m1s
2025-12-03 19:34:47 -08:00
a2db18f12c splitting unit + integration testing apart attempt #1
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 3m58s
2025-11-30 16:19:18 -08:00
dc8d48834f splitting unit + integration testing apart attempt #1
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 3m50s
2025-11-30 16:05:56 -08:00
d2eb05cdc2 fix unit tests
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 3m58s
2025-11-30 14:18:57 -08:00
402880fb93 fix unit tests
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 3m59s
2025-11-30 14:03:44 -08:00
acf9744e4b db optimizzzation, error handling etc
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Has been cancelled
2025-11-30 13:50:05 -08:00
949e0dc062 db optimizzzation, error handling etc
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 1m8s
2025-11-30 03:02:23 -08:00
bb2ad6ce1a acheivments + flyercorrection
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 2m18s
2025-11-29 14:54:49 -08:00
bf0bf9ae21 testing routes
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 2m23s
2025-11-29 05:29:38 -08:00
9e5c2047f7 testing routes
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 3m38s
2025-11-29 03:26:47 -08:00
d1c09d18a4 testing routes
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 3m29s
2025-11-28 21:03:11 -08:00
18f1434fa1 fix some integration tests now that PriceHistoryChart.test.tx is disabled
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 3m22s
2025-11-27 19:22:19 -08:00
a4d5e95937 some more re-org + fixes
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 1m1s
2025-11-24 14:46:17 -08:00
1c08d2dab1 db to user_id
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 40s
2025-11-24 11:54:06 -08:00
b8f1f12461 tests cannot connect to db
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 1m26s
2025-11-23 13:28:46 -08:00
05cdae6037 tests cannot connect to db
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 1m22s
2025-11-23 12:49:22 -08:00
3402fd57e0 tests cannot connect to db
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 1m13s
2025-11-23 12:20:17 -08:00
076b091632 tests cannot connect to db
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 1m21s
2025-11-23 10:05:58 -08:00
d4d6d66165 tests cannot connect to db
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 1m20s
2025-11-23 09:51:39 -08:00
a97e38fc6e tests cannot connect to db
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 1m3s
2025-11-23 09:26:12 -08:00
8e6ca747b5 upload file size limit increased in server.ts
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 1m18s
2025-11-23 08:28:12 -08:00
dc4ba26315 upload file size limit increased in server.ts
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 1m5s
2025-11-22 23:26:09 -08:00
a2d19abf30 prod broken
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 1m0s
2025-11-22 21:15:10 -08:00
46138ba10a more unit testing
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 1m17s
2025-11-22 14:46:16 -08:00
17ded81631 more unit testing
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 1m24s
2025-11-22 14:07:30 -08:00
4f87a3ee84 more ts and break apart big ass files
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Has been cancelled
2025-11-21 00:30:47 -08:00