This commit includes a major refactoring of the Docker orchestrator implementation along with improvements to the testing infrastructure: - Refactored Docker orchestrator to handle dynamic port assignment - Added comprehensive test utilities in docker-test-utils.ts - Improved error handling and resource cleanup in test environments - Enhanced NodeStatus interface with containerId and networkId - Added support for different storage types in NodeConfig - Fixed request port handling in TestOrchestrator - Added proper cleanup method to NodeOrchestrator interface The changes ensure more reliable container management and better test isolation while maintaining backward compatibility with existing implementations. BREAKING CHANGE: The NodeOrchestrator interface now requires a cleanup() method.
20 lines
422 B
TypeScript
20 lines
422 B
TypeScript
// Extend the global Jest namespace
|
|
declare global {
|
|
namespace jest {
|
|
interface Matchers<R> {
|
|
toBeWithinRange(a: number, b: number): R;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Add any global test setup here
|
|
|
|
// This is a placeholder test to satisfy Jest's requirement for at least one test
|
|
describe('Test Setup', () => {
|
|
it('should pass', () => {
|
|
expect(true).toBe(true);
|
|
});
|
|
});
|
|
|
|
export {}; // This file needs to be a module
|