]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
refactor(tests): modularize ChargingStationTestUtils
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 27 Feb 2026 19:33:44 +0000 (20:33 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 27 Feb 2026 19:33:44 +0000 (20:33 +0100)
commitbcaca7f15365ab0c41b83c1ba9ebba1e4fa2bbde
treefa85eb07e41300921d8e90473827b58e111b56f7
parent14c732a96dfdbb173d958210384370eea66154af
refactor(tests): modularize ChargingStationTestUtils

Split monolithic 1122-line utility file into focused modules:
- mocks/MockWebSocket.ts (188 lines) - WebSocket mock class
- mocks/MockCaches.ts (110 lines) - Cache mocks
- helpers/StationHelpers.ts (834 lines) - Station creation/cleanup
- ChargingStationTestUtils.ts (32 lines) - Barrel export

All existing imports preserved via re-exports
All 291 tests passing
tests/charging-station/ChargingStationTestUtils.ts
tests/charging-station/helpers/StationHelpers.ts [new file with mode: 0644]
tests/charging-station/mocks/MockCaches.ts [new file with mode: 0644]
tests/charging-station/mocks/MockWebSocket.ts [new file with mode: 0644]