Preheat the oven to 350 degrees.
Line two baking trays with parchment paper.
Sift the flour into a medium bowl. I hook a sieve over the edges of a bowl, put in the flour, and then shift it gently back and forth.
Sift the cocoa into the bowl with the flour.
Add the baking powder, baking soda, and salt into the dry ingredients. Whisk or mix lightly with a fork. Set aside.
In the bowl of a mixer combine the butter and brown sugar. Beat until fluffy, about 2 minutes.
Add the egg and beat until combined.
Add the vanilla and espresso. Beat until combined. Make sure to scrape down the sides to incorporate everything.
Add 1/3 of the dry ingredients to the mixing bowl and mix only until combined. With each step, do not over mix the batter.
Add 1/3 of the buttermilk and combine.
Continue alternating the buttermilk and the dry ingredients until everything is incorporated.
Using a cookie scoop, place a round of batter on the prepared cookie sheets. Leave space between the scoops as they will spread out slightly.
Bake for 11-14 minutes alternating the trays midway through the bake. The whoopie pies are done when set and a toothpick inserted into the center comes out clean.
Remove the whoopie pies to a wire rack to cool completely.