]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
fix(test-isolation): replace mock.reset() with mock.restoreAll() in auth tests
authorJérôme Benoit <jerome.benoit@sap.com>
Sat, 28 Feb 2026 16:56:29 +0000 (17:56 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Sat, 28 Feb 2026 16:56:29 +0000 (17:56 +0100)
commit454427f5cd65568d839e1fd3ba201ed52eadef16
treecb192bccfb0bf1601ea2714d539489a88456d9ad
parent902950177e9e75eea9e73cdd89d1d2ac32f4d3b8
fix(test-isolation): replace mock.reset() with mock.restoreAll() in auth tests

- Replace incorrect mock.reset() with mock.restoreAll() in 7 auth test files
- Remove duplicate table rows in TEST_STYLE_GUIDE.md (lines 287-296)

Ensures proper mock cleanup between tests to prevent cross-test pollution.
tests/TEST_STYLE_GUIDE.md
tests/charging-station/ocpp/auth/OCPPAuthIntegration.test.ts
tests/charging-station/ocpp/auth/adapters/OCPP16AuthAdapter.test.ts
tests/charging-station/ocpp/auth/adapters/OCPP20AuthAdapter.test.ts
tests/charging-station/ocpp/auth/cache/InMemoryAuthCache.test.ts
tests/charging-station/ocpp/auth/strategies/CertificateAuthStrategy.test.ts
tests/charging-station/ocpp/auth/strategies/LocalAuthStrategy.test.ts
tests/charging-station/ocpp/auth/strategies/RemoteAuthStrategy.test.ts