Commit Graph

23 Commits

Author SHA1 Message Date
9bee0a013b unit test auto-provider refactor
All checks were successful
Deploy to Test Environment / deploy-to-test (push) Successful in 17m8s
2026-01-02 11:58:03 -08:00
ef4b8e58fe several fixes to various tests 2025-12-27 09:10:51 -08:00
768d02b9ed several fixes to various tests
All checks were successful
Deploy to Test Environment / deploy-to-test (push) Successful in 14m14s
2025-12-26 23:37:39 -08:00
a10f84aa48 complete project using prettier! 2025-12-22 09:45:14 -08:00
bc2c24bcff more refactor
Some checks failed
Deploy to Test Environment / deploy-to-test (push) Has been cancelled
2025-12-21 20:34:32 -08:00
0cf4ca02b7 large mock refector hopefully done + no errors?
All checks were successful
Deploy to Test Environment / deploy-to-test (push) Successful in 1h19m21s
2025-12-21 12:38:53 -08:00
c49e5f7019 large mock refector hopefully done + no errors?
All checks were successful
Deploy to Test Environment / deploy-to-test (push) Successful in 1h13m59s
2025-12-21 02:43:03 -08:00
a3d3ddd772 mock mock mock !
All checks were successful
Deploy to Test Environment / deploy-to-test (push) Successful in 57m50s
2025-12-19 20:31:04 -08:00
f34c66bab1 Refactor: Enhance logging and error handling in FlyerUploader, AuthProvider, and checksum utilities for improved debugging and maintainability
All checks were successful
Deploy to Test Environment / deploy-to-test (push) Successful in 17m58s
2025-12-16 01:07:22 -08:00
d1cd0b332e Refactor: Improve test assertions and error messages in useAuth and recipe routes tests for clarity
All checks were successful
Deploy to Test Environment / deploy-to-test (push) Successful in 15m14s
2025-12-15 23:31:59 -08:00
08340a4cf2 Refactor: Introduce requiredString helper for consistent validation across routes and services
All checks were successful
Deploy to Test Environment / deploy-to-test (push) Successful in 8m21s
2025-12-15 19:19:23 -08:00
d5f185ad99 Refactor tests and improve error handling across various services
All checks were successful
Deploy to Test Environment / deploy-to-test (push) Successful in 10m38s
- Updated `useAuth` tests to use async functions for JSON responses to avoid promise resolution issues.
- Changed `AdminBrandManager` tests to use `mockImplementation` for consistent mock behavior.
- Enhanced `ProfileManager.Authenticated` tests to ensure proper error handling and assertions for partial updates.
- Modified `SystemCheck` tests to prevent memory leaks by using `mockImplementation` for API calls.
- Improved error handling in `ai.routes.ts` by refining validation schemas and adding error extraction utility.
- Updated `auth.routes.test.ts` to inject mock logger for better error tracking.
- Refined `flyer.routes.ts` to ensure proper validation and error handling for flyer ID parameters.
- Enhanced `admin.db.ts` to ensure specific errors are re-thrown for better error management.
- Updated `budget.db.test.ts` to improve mock behavior and ensure accurate assertions.
- Refined `flyer.db.ts` to improve error handling for race conditions during store creation.
- Enhanced `notification.db.test.ts` to ensure specific error types are tested correctly.
- Updated `recipe.db.test.ts` to ensure proper handling of not found errors.
- Improved `user.db.ts` to ensure consistent error handling for user retrieval.
- Enhanced `flyerProcessingService.server.test.ts` to ensure accurate assertions on transformed data.
- Updated `logger.server.ts` to disable transport in test environments to prevent issues.
- Refined `queueService.workers.test.ts` to ensure accurate mocking of email service.
- Improved `userService.test.ts` to ensure proper mock implementations for repository classes.
- Enhanced `checksum.test.ts` to ensure reliable file content creation in tests.
- Updated `pdfConverter.test.ts` to reset shared state objects and mock implementations before each test.
2025-12-15 16:40:13 -08:00
0c590675b3 Refactor and enhance error handling across various routes and hooks
All checks were successful
Deploy to Test Environment / deploy-to-test (push) Successful in 9m29s
- Added error logging for image generation in useAiAnalysis hook.
- Updated useAuth tests to relax strict call count checks for compatibility with React Strict Mode.
- Improved user data tests to handle multiple renders and mock API responses more effectively.
- Enhanced watched items tests to ensure isolation and proper mock behavior.
- Updated validation middleware tests to accommodate potential variations in error messages.
- Removed flaky test for invalid job ID format in AI routes due to routing limitations.
- Adjusted auth routes tests to check for error messages in a more resilient manner.
- Improved flyer routes to ensure proper validation and error handling.
- Enhanced gamification routes tests to check for error messages using regex for flexibility.
- Updated recipe routes to ensure type safety and proper error handling for query parameters.
- Enhanced stats routes to ensure proper validation and error handling for query parameters.
- Improved system routes tests to accommodate variations in validation error messages.
- Updated user routes tests to ensure proper validation and error handling for various scenarios.
- Refactored user routes to ensure type safety and proper handling of query parameters.
2025-12-15 11:43:52 -08:00
2a79f31af3 Refactor: Enhance test mocks and assertions for improved clarity and structure across multiple test files
All checks were successful
Deploy to Test Environment / deploy-to-test (push) Successful in 7m24s
2025-12-15 04:38:19 -08:00
c533521021 Refactor: Improve test structure and mock implementations across multiple test files
All checks were successful
Deploy to Test Environment / deploy-to-test (push) Successful in 7m21s
2025-12-15 03:44:57 -08:00
43ca7f9df2 Refactor context and provider structure for improved organization and maintainability
Some checks failed
Deploy to Test Environment / deploy-to-test (push) Has been cancelled
- Removed individual context files for Auth, Flyers, MasterItems, Modal, UserData, and their respective hooks.
- Introduced centralized provider files for each context, encapsulating logic and state management.
- Updated imports across the application to reflect the new structure, ensuring all hooks and contexts are correctly referenced.
- Enhanced the AppProviders component to streamline the wrapping of all context providers in the application.
- Improved type definitions and context management for better type safety and clarity.
2025-12-14 21:00:58 -08:00
82b7ce82e7 refactor: Add custom hooks for context access in various contexts
Some checks failed
Deploy to Test Environment / deploy-to-test (push) Has been cancelled
2025-12-14 20:24:18 -08:00
8274f4c871 Refactor hooks and contexts for improved state management and modularity
Some checks are pending
Deploy to Test Environment / deploy-to-test (push) Has started running
- Updated `useActiveDeals` hook to include reset functionality for API calls.
- Enhanced `useApi` hook to provide a reset method for clearing state.
- Refactored `useAuth`, `useFlyers`, `useMasterItems`, `useModal`, and `useUserData` hooks to utilize context providers for better state management.
- Created new context files: `AuthContext`, `FlyersContext`, `MasterItemsContext`, `ModalContext`, and `UserDataContext` to encapsulate related state and logic.
- Updated tests for hooks to accommodate changes in context structure and reset functionality.
- Adjusted imports in `index.tsx` to reflect new context structure.
2025-12-14 20:08:15 -08:00
8b06a66b17 testing ADR - architectural decisions
Some checks failed
Deploy to Test Environment / deploy-to-test (push) Has been cancelled
2025-12-12 00:01:35 -08:00
d3d637ebfe unit test fixes + error refactor
All checks were successful
Deploy to Test Environment / deploy-to-test (push) Successful in 13m41s
2025-12-11 21:17:48 -08:00
5d7598eadf unit test fixes + error refactor
All checks were successful
Deploy to Test Environment / deploy-to-test (push) Successful in 12m45s
2025-12-11 20:26:34 -08:00
6aa72dd90b unit test fixin
All checks were successful
Deploy to Test Environment / deploy-to-test (push) Successful in 8m50s
2025-12-11 00:53:24 -08:00
b929925a6e lots more tests !
Some checks failed
Deploy to Test Environment / deploy-to-test (push) Failing after 7m32s
2025-12-10 21:02:01 -08:00