]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
test: improve test suite quality and add lifecycle helpers
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 27 Feb 2026 21:45:03 +0000 (22:45 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 27 Feb 2026 21:45:03 +0000 (22:45 +0100)
commit0610e9e21aee608f3bc4e71e6742110c454b7f90
tree3522d46ab1d9dd0660f07ee2dc73d1cb6dd64eae
parentf5bfca630923337c40f07e5209c54be4bb26d286
test: improve test suite quality and add lifecycle helpers

- Add TestLifecycleHelpers module with reusable setup/cleanup classes
- Add afterEach hooks to prevent test pollution
- Fix lint errors and add complete JSDoc documentation
- Update TEST_STYLE_GUIDE with acceptable eslint-disable patterns
- Rename OCPP20AuthAdapter.offline.test.ts for naming consistency
tests/TEST_STYLE_GUIDE.md
tests/charging-station/ChargingStation.test.ts
tests/charging-station/ChargingStationTestUtils.ts
tests/charging-station/Helpers.test.ts
tests/charging-station/ocpp/2.0/OCPP20ServiceUtils-TransactionEvent.test.ts
tests/charging-station/ocpp/2.0/OCPP20VariableManager.test.ts
tests/charging-station/ocpp/auth/adapters/OCPP20AuthAdapter-Offline.test.ts [moved from tests/charging-station/ocpp/auth/adapters/OCPP20AuthAdapter.offline.test.ts with 100% similarity]
tests/helpers/TestLifecycleHelpers.ts [new file with mode: 0644]
tests/utils/Utils.test.ts