Self-isolating students in end-of-tenancy ‘nightmare’

What happens if a housemate tests positive for Covid just as you were about to move out?