If no BAP, 4 yr/50k mi battery warranty. If BAP, 10 yr/unl mi battery warranty. If the battery has been sabotaged by vehicle owner, the warranty won't cover that regardless.
I always bring up sabotage because beginners make mistakes with EV's and sometimes learn the hard way.
Here's a common example rookies do. Vehicle owner uses the car and runs the battery down to 1%. Decides it's a great time to take a vacation. Returns a month later and the car is dead. The battery is so weak it needs to be charged and left alone. But instead, the owner wants to play with all the electronics. Possibly to the point of continually trying to start the vehicle while troubleshooting. They end up draining emergency reserve and now the battery is drained to the point of no return.
A perfectly good battery, trashed, by rookie mistakes.
Folks avoiding these mistakes should have nothing to worry about. Overall the vehicles are more reliable than gas, by far, if you keep the batt charged and give it at least an occasional service, particularly in high humidity and dusty/dirty areas.