Preheat the oven to 350 F degrees.
Lightly grease an 8 x 8 -inch baking dish with olive oil and line with unbleached parchment paper.
In a medium bowl, whisk together the flour, sugar, cocoa powder, salt, espresso, if using, and baking soda. In a large measuring cup or bowl, whisk together the vinegar, oil, water/coffee, and vanilla until emulsified. Pour the dry ingredients into the wet and combine until no flour is visible. Transfer batter to the prepared baking dish and smooth the top with a spatula.
Bake for 25-35 minutes, until the center of the cake springs back.
Raise oven temperature to 425 F. Place the sweet potato on a parchment-lined baking sheet. Roast in the oven until very tender. The amount of time will depend on the size of your sweet potato. This could take 35 minutes or up to an hour. Let the sweet potato cool slightly. Peel and measure 3/4 cups of the flesh. In a blender or food processor, puree the sweet potato, chocolate chips, cocoa powder, coconut oil, and salt until smooth like a frosting. If the sweet potato is still warm, the heat will help melt the chocolate. Otherwise, melt the chocolate in the microwave or over a pot of simmering water before adding to the blender. Frosting can be made up to 5 days in advance.
Spread frosting over COOLED cake when ready to serve. Cake can stay at room temp for 2-3 days and then needs to be refrigerated.