Tesla 85 (and up) have a warranty that covers the battery and drive train till 2021, no mileage limit.
The battery on mine after two years and 60000 km is like-new, well over 400 km of "rated" range.
There are thousands of members here, some of whom have updated a global spreadsheet of battery information (car mileage, maximum charge range, replacements if any) and the graphs produced are insightful, showing very low degradation of the battery, and very small battery repairs. Tesla repairs by opening the pack, replacing specific parts and giving the same pack back.
The battery cells are good for thousands of full charge/discharge cycles till they hold 80%, at 400 km range, that is up to a million km!