The mock factory was placing ocppVersion at the root level of the mock
ChargingStation, but AuthComponentFactory.createAdapters() looks for
chargingStation.stationInfo?.ocppVersion, causing all auth service tests
to fail with 'OCPP version not found in charging station' error.
idTagLocalAuthorized: () => false,
isConnected: () => true,
logPrefix: () => `[TEST-CS-${id}]`,
- ocppVersion,
sendRequest: () => Promise.resolve({}),
stationInfo: {
chargingStationId: `TEST-CS-${id}`,
hashId: `test-hash-${id}`,
+ ocppVersion,
},
}) as unknown as ChargingStation