26 Commits

Author SHA1 Message Date
f3d5096d1c feat: Add migration guide and documentation test runner
- Introduced a comprehensive migration guide for DebrosFramework 0.5.x, detailing breaking changes, upgrade procedures, and best practices.
- Implemented a documentation test runner to validate code examples in documentation files, ensuring accuracy and consistency with the current implementation.
- Enhanced BlogAPIServer to handle potential null values in API responses, improving robustness and error handling.
2025-07-12 14:22:21 +03:00
dfc39bd975 feat: Add appName configuration to DebrosFramework and enhance DatabaseManager with app-specific handling 2025-07-11 06:32:43 +03:00
6e1cc2cbf0 feat: Improve database query handling and slug generation in BlogAPIServer 2025-07-10 05:28:45 +03:00
0ebdb7cbbf feat: Enhance model registration and validation with default configurations and improved error handling 2025-07-09 19:43:39 +03:00
9d8a8b1c2c feat: Add static count method to BaseModel and enhance OrbitDBService with debugging logs 2025-07-09 16:00:00 +03:00
97d9191a45 feat: Add Jest integration configuration and update test commands in package.json 2025-07-06 06:38:01 +03:00
f4be989616 feat(tests): update versioning and add blog integration test command in Docker setup 2025-07-05 05:52:44 +03:00
619dfe1ddf refactor(tests): remove DebrosFramework integration tests and update blog scenario tests
- Deleted the DebrosFramework integration test file to streamline the test suite.
- Updated blog API server to import reflect-metadata for decorator support.
- Changed Docker Compose command for blog integration tests to run real tests.
- Modified TypeScript configuration for Docker to target ES2022 and enable synthetic default imports.
- Removed obsolete Jest configuration and setup files for blog scenario tests.
- Cleaned up global test setup by removing console mocks and custom matchers.
2025-07-03 07:00:54 +03:00
8c8a19ab5f feat(tests): Add integration tests for blog scenario
- Implement basic operations tests for user, category, post, and comment management.
- Create cross-node operations tests to verify distributed content creation and concurrent operations.
- Introduce Jest configuration and setup files for testing environment.
- Enhance BlogTestHelper with methods for user, category, post, and comment operations.
- Ensure data consistency and network metrics verification across nodes.
2025-07-03 06:15:27 +03:00
e6636c8850 fix: Update OrbitDBService type mapping and adjust BlogAPIServer initialization to use correct service references 2025-07-03 05:52:55 +03:00
1481bd8594 fix: Enhance initialization checks in FrameworkOrbitDBService and FrameworkIPFSService; add tsconfig.docker.json for integration tests 2025-07-02 07:45:55 +03:00
b0a68b19c9 fix: Update Dockerfile and docker-compose to enhance dependency installation and adjust IPFS port mappings 2025-07-02 07:39:03 +03:00
e82b95878e refactor: Improve decorator handling and error management in Field and hooks; update Blog API Dockerfile for better dependency management 2025-07-02 07:24:07 +03:00
1e14827acd fix: Update Dockerfile to install full dependencies and use tsx for starting the blog API server 2025-07-02 05:48:46 +03:00
59b0fbcc73 fix: Override entrypoint in Dockerfile to ensure proper startup of IPFS daemon 2025-07-02 05:30:34 +03:00
08d110b7e6 feat: Update Docker configurations and integrate IPFS and OrbitDB services 2025-06-21 12:07:36 +03:00
64ed9e82a7 Add integration tests for blog workflow and supporting infrastructure
- Implemented comprehensive integration tests for user management, category management, content publishing, comment system, performance, scalability, and network resilience.
- Created DockerNodeManager to manage Docker containers for testing.
- Developed ApiClient for API interactions and health checks.
- Introduced SyncWaiter for synchronizing node states and ensuring data consistency.
- Enhanced test reliability with increased timeouts and detailed logging.
2025-06-21 11:15:33 +03:00
83c7b985ff Remove real integration tests and related setup files
- Deleted the real integration test file `real-integration.test.ts` which contained tests for the DebrosFramework, RealTestUser, and RealTestPost models.
- Removed the `helia-wrapper.ts`, `ipfs-setup.ts`, `orbitdb-setup.ts`, `swarm-setup.ts`, and `test-lifecycle.ts` files that provided setup and utility functions for the real IPFS and OrbitDB network tests.
2025-06-19 22:26:56 +03:00
831c977eda feat: Add debug script for field defaults and enhance Jest configuration for ES modules 2025-06-19 21:47:35 +03:00
8d3ccdc80c Add real integration tests for IPFS and OrbitDB
- Implemented real integration tests in `real-integration.test.ts` to validate the functionality of the DebrosFramework with IPFS and OrbitDB.
- Created `RealTestUser` and `RealTestPost` models for testing user and post functionalities.
- Developed setup and teardown lifecycle methods for managing the test environment.
- Introduced `RealIPFSService` and `RealOrbitDBService` classes for managing IPFS and OrbitDB instances.
- Added `PrivateSwarmSetup` for configuring a private IPFS network.
- Implemented utility functions for creating and shutting down IPFS and OrbitDB networks.
- Created a global test manager for managing test lifecycle and network state.
- Updated TypeScript configuration to include test files and exclude them from the main build.
2025-06-19 21:29:50 +03:00
0807547a51 feat: Enhance BaseModel validation with unique constraint checks and improve RelationshipManager model resolution 2025-06-19 20:55:17 +03:00
0305cb1737 feat: Enhance QueryBuilder with operator normalization and null handling; update ShardManager to ensure shard index bounds; improve BaseModel tests for email validation 2025-06-19 12:54:21 +03:00
9f425f2106 feat: Refactor BaseModel and decorators for improved field handling and relationships 2025-06-19 12:45:10 +03:00
64163a5b93 feat: Enhance model decorators and query builder
- Added validation for field and model configurations in decorators.
- Improved handling of relationships in the BelongsTo, HasMany, HasOne, and ManyToMany decorators.
- Introduced new methods in QueryBuilder for advanced filtering, caching, and relationship loading.
- Updated RelationshipManager to support new relationship configurations.
- Enhanced error handling and logging in migration tests.
- Refactored test cases for better clarity and coverage.
2025-06-19 12:09:23 +03:00
071723f673 feat: add Jest configuration and basic framework tests 2025-06-19 11:26:45 +03:00
1cbca09352 Add unit tests for RelationshipManager and ShardManager
- Implement comprehensive tests for RelationshipManager covering various relationship types (BelongsTo, HasMany, HasOne, ManyToMany) and eager loading functionality.
- Include caching mechanisms and error handling in RelationshipManager tests.
- Create unit tests for ShardManager to validate shard creation, routing, management, global index operations, and query functionalities.
- Ensure tests cover different sharding strategies (hash, range, user) and handle edge cases like errors and non-existent models.
2025-06-19 11:20:13 +03:00