]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
refactor(test): audit-driven test quality improvements
authorJérôme Benoit <jerome.benoit@sap.com>
Mon, 2 Mar 2026 14:36:12 +0000 (15:36 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Mon, 2 Mar 2026 14:36:55 +0000 (15:36 +0100)
commit03ca39b5c36cd244262011f33a2f6b742db8607d
treebb8afc604e0314832d893a2906b9773fb508e2dc
parent0696d077c8275a74eb035c0088d6f3cb059090f4
refactor(test): audit-driven test quality improvements

- Add edge case tests for BaseError, OCPPError, ElectricUtils, AsyncLock, StatisticUtils
- Replace real timers with withMockTimers in UIServerSecurity rate limiter tests
- Add 'Date' to MockableTimerAPI type for Date.now() mocking support
- Factor duplicated OCPP 2.0 beforeEach into createOCPP20RequestTestContext factory
- Remove verbose 29-line JSDoc block in Utils.test.ts
12 files changed:
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-StatusNotification.test.ts
tests/charging-station/ocpp/2.0/OCPP20TestUtils.ts
tests/charging-station/ui-server/UIServerSecurity.test.ts
tests/exception/BaseError.test.ts
tests/exception/OCPPError.test.ts
tests/helpers/TestLifecycleHelpers.ts
tests/utils/AsyncLock.test.ts
tests/utils/ElectricUtils.test.ts
tests/utils/StatisticUtils.test.ts
tests/utils/Utils.test.ts