]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
refactor(tests): extend MockChargingStationOptions with all factory options
authorJérôme Benoit <jerome.benoit@sap.com>
Sat, 28 Feb 2026 18:31:44 +0000 (19:31 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Sat, 28 Feb 2026 18:31:44 +0000 (19:31 +0100)
commit5b15338148e9d3c18c7c88ff221762799a466839
tree172f0ca2a083a8143bacf6fe09c25f86bad63d80
parent88ddccdaf9443e6c54cf100ada1cf70ea336588e
refactor(tests): extend MockChargingStationOptions with all factory options

- Add missing options: connectionTimeout, connectorDefaults, evseConfiguration,
  ocppConfiguration, ocppIncomingRequestService, ocppRequestService, starting,
  stationInfo, websocketPingInterval
- Add MockOCPPIncomingRequestService and MockOCPPRequestService interfaces
- Update createMockChargingStation() to handle new options
- Add EVSE auto-detection: if stationInfo.ocppVersion is VERSION_20 or VERSION_201,
  set useEvses = true
- Export new interfaces from ChargingStationTestUtils.ts
tests/charging-station/ChargingStationTestUtils.ts
tests/charging-station/helpers/StationHelpers.ts