Tesla makes revenue, and they have costs. Their revenues are offset by their costs.
Any profit Tesla makes is eventually taxed -- either when Tesla shareholders sell appreciated stock, when the company makes distributions or when they liquidate.
Corporate tax only applies to un-distributed profits carried forward from year to year instead of invested into the business or distributed to shareholders.