]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
refactor(tests): reduce eslint-disable comments with proper typing
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 27 Feb 2026 16:51:41 +0000 (17:51 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 27 Feb 2026 16:51:41 +0000 (17:51 +0100)
commit7cd70f39190b6f1ddab9a27ea2c8b54cbe2ab634
treee68b1dcdf8e1cec065bd9c73a7b9d8cf61829d1f
parentf62321907e18368a9298f346edfbac17621f51d6
refactor(tests): reduce eslint-disable comments with proper typing

- Add MockOCPPRequestService and MockOCPPIncomingRequestService interfaces
- Export TestChargingStation type for typed mock service access
- Remove 14 eslint-disable comments from ChargingStationFactory.test.ts
- Remove 4 eslint-disable comments from ConfigurationKeyUtils.test.ts
- Use Partial<ChargingStationOcppConfiguration> for missing config tests

Remaining 43 inline eslint-disable comments are all legitimate:
- no-empty-function: Testing empty callbacks
- require-await: Mock async implementations
- no-explicit-any: Testing validators with invalid inputs
tests/ChargingStationFactory.test.ts
tests/ChargingStationFactory.ts
tests/charging-station/ConfigurationKeyUtils.test.ts