]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
refactor(tests): remove eslint-disable and fix type safety issues
authorJérôme Benoit <jerome.benoit@sap.com>
Sat, 28 Feb 2026 14:06:42 +0000 (15:06 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Sat, 28 Feb 2026 14:34:49 +0000 (15:34 +0100)
commit7513f6339b33c863f11a0187dba41a5966789166
tree77639e65d5a530ca0be095226620e05493b6fa88
parent36b22af4bb0a531d6f08fed9c0e334e07bc21758
refactor(tests): remove eslint-disable and fix type safety issues

- Remove file-level eslint-disable comments from OCPP 2.0 transaction tests
- Replace `as any` casts with proper TypeScript types (ChargingStation, SentRequest)
- Fix test isolation by moving state reset to beforeEach hooks
- Use `stationInfo = undefined` pattern instead of delete with any cast
- Remove unnecessary async keywords and optional chains per lint rules
tests/charging-station/Helpers.test.ts
tests/charging-station/ocpp/2.0/OCPP20ServiceUtils-TransactionEvent-Offline.test.ts
tests/charging-station/ocpp/2.0/OCPP20ServiceUtils-TransactionEvent-Periodic.test.ts
tests/charging-station/ocpp/2.0/OCPP20ServiceUtils-TransactionEvent.test.ts