This repository has been archived on 2025-08-03. You can view files and clone it, but cannot push or open issues or pull requests.
network-orbit/tests/README.md
anonpenguin 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

45 lines
1.4 KiB
Markdown

# Tests
This directory contains the test suite for the Debros Network framework.
## Structure
```
tests/
├── unit/ # Unit tests for individual components
│ ├── core/ # Core framework components
│ ├── models/ # Model-related functionality
│ ├── relationships/ # Relationship management
│ ├── sharding/ # Data sharding functionality
│ ├── decorators/ # Decorator functionality
│ └── migrations/ # Database migrations
├── real-integration/ # Real integration tests with Docker
│ └── blog-scenario/ # Complete blog application scenario
├── mocks/ # Mock implementations for testing
└── setup.ts # Test setup and configuration
```
## Running Tests
### Unit Tests
Run all unit tests (fast, uses mocks):
```bash
pnpm run test:unit
```
### Real Integration Tests
Run full integration tests with Docker (slower, uses real services):
```bash
pnpm run test:real
```
## Test Categories
- **Unit Tests**: Fast, isolated tests that use mocks for external dependencies
- **Real Integration Tests**: End-to-end tests that spin up actual IPFS nodes and OrbitDB instances using Docker
## Coverage
Unit tests provide code coverage reports in the `coverage/` directory after running.