I'd echo most of the commenters here, but instead of saying run away, I'd ask what the lead is like. If there's no lead, keep far away. You'd have to get into the friend group before they'll really listen. If there is a lead, then that's who you need to evaluate, not the team as a whole. I've been line manager for friends before, and I've always made it clear: work is work. If they screw up I'm going to treat them as employees first and friends last. However, not everyone can make that distinction, so be very careful and if you take the job, be ready to leave if it doesn't look like the position is going to pan out fairly.