From https://www.tesla.com/en_IE/support/vehicle-warranty?redirect=no
Your vehicle is covered by a New Vehicle Limited Warranty for 4 years or 80,000 km, whichever comes first. The Battery and Drive Unit in your vehicle are covered for a period of:
These warranties cover the repair or replacement necessary to correct defects in the materials or workmanship of any parts manufactured or supplied by Tesla, which occur under normal use.