]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
refactor(tests): consolidate duplicate test helpers
authorJérôme Benoit <jerome.benoit@sap.com>
Thu, 2 Apr 2026 19:48:40 +0000 (21:48 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Thu, 2 Apr 2026 19:48:40 +0000 (21:48 +0200)
commitbe2949ef748ec51c3837d5247fc53d769e9e5147
tree2b4c21441484a3d50547e41e15225e829af143d5
parent7de01a37f4db8698c3803444caa3475bf6d7a841
refactor(tests): consolidate duplicate test helpers

Extract createStationWithRequestHandler to shared
TestLifecycleHelpers, eliminating duplication between
OCPPConnectorStatusOperations and OCPPServiceOperations tests.
Extend setupConnectorWithTransaction to support string
transactionId and pending mode, replacing local
setupTransaction/setupPendingTransaction helpers.
tests/charging-station/ocpp/OCPPConnectorStatusOperations.test.ts
tests/charging-station/ocpp/OCPPServiceOperations.test.ts
tests/helpers/TestLifecycleHelpers.ts