TypeScript reports 'system' is possibly undefined since it comes from array indexing. Replace expect().toBeDefined() with an explicit throw guard so the type narrows for subsequent property accesses.
TypeScript reports 'system' is possibly undefined since it comes from array indexing. Replace expect().toBeDefined() with an explicit throw guard so the type narrows for subsequent property accesses.