fix(tests): fix tests

This commit is contained in:
Juergen Kunz
2025-06-22 23:10:56 +00:00
parent 131a454b28
commit e5ec48abd3
6 changed files with 298 additions and 90 deletions

View File

@ -311,11 +311,17 @@ smartproxy_connection_duration_seconds_count 850
- Provide clear migration guide in documentation
### Implementation Approach
1. Create new `ThroughputTracker` class for time-series data
2. Implement new `IMetrics` interface with clean API
3. Replace `MetricsCollector` implementation entirely
4. Update all references to use new API
5. Add comprehensive tests for accuracy validation
1. Create new `ThroughputTracker` class for time-series data
2. Implement new `IMetrics` interface with clean API
3. Replace `MetricsCollector` implementation entirely
4. Update all references to use new API
5. ⚠️ Add comprehensive tests for accuracy validation (partial)
### Additional Refactoring Completed
- Refactored all SmartProxy components to use cleaner dependency pattern
- Components now receive only `SmartProxy` instance instead of individual dependencies
- Access to other components via `this.smartProxy.componentName`
- Significantly simplified constructor signatures across the codebase
## 9. Success Metrics