]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
refactor(tests): improve test isolation and remove dead code
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 27 Feb 2026 22:54:59 +0000 (23:54 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 27 Feb 2026 22:54:59 +0000 (23:54 +0100)
commitcac380fc8eb8f07bddd63f01d474888d3210267e
treed38dab8542b40f1ad7f6dc68bb874fe2e491b64f
parent00051db475ef42a203c653b5de29a3d327623073
refactor(tests): improve test isolation and remove dead code

- Fix module-level state sharing in 6 OCPP 2.0 RequestService tests
- Remove unused createMockTemplate function from StationHelpers
- Remove unused TestStationHelper, TestTimerHelper, TestEnvironmentHelper classes (206 LOC)
- Add createMockAuthCache and createMockOCPPAdapter factories
- Update TEST_STYLE_GUIDE.md with test isolation best practices
- Clean up orphaned imports after dead code removal
tests/TEST_STYLE_GUIDE.md
tests/charging-station/ChargingStationTestUtils.ts
tests/charging-station/helpers/StationHelpers.ts
tests/charging-station/ocpp/2.0/OCPP20RequestService-BootNotification.test.ts
tests/charging-station/ocpp/2.0/OCPP20RequestService-HeartBeat.test.ts
tests/charging-station/ocpp/2.0/OCPP20RequestService-ISO15118.test.ts
tests/charging-station/ocpp/2.0/OCPP20RequestService-NotifyReport.test.ts
tests/charging-station/ocpp/2.0/OCPP20RequestService-SignCertificate.test.ts
tests/charging-station/ocpp/2.0/OCPP20RequestService-StatusNotification.test.ts
tests/charging-station/ocpp/auth/helpers/MockFactories.ts
tests/helpers/TestLifecycleHelpers.ts