]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
fix(test): remove redundant standardCleanup() from nested afterEach
authorJérôme Benoit <jerome.benoit@sap.com>
Sun, 1 Mar 2026 01:08:26 +0000 (02:08 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Sun, 1 Mar 2026 01:10:02 +0000 (02:10 +0100)
commitcee36fe440c0680876af94e55aadb369c3b1bf2c
tree63f2a822da7ddc786cbba1fb55a31ec3a0a40538
parent019e3a27c08d720ec2b23462719262ee11371809
fix(test): remove redundant standardCleanup() from nested afterEach

UIHttpServer and OCPP20AuthAdapter tests had nested describes with
afterEach blocks calling standardCleanup(), duplicating the outer
afterEach cleanup. This could cause mock.restoreAll() to be called
twice per test, potentially causing issues on Windows.
tests/charging-station/ocpp/auth/adapters/OCPP20AuthAdapter.test.ts
tests/charging-station/ui-server/UIHttpServer.test.ts