Finely chop onion. Heat a little bit of pesto in a large pan and sauté the onion until it turns translucent. In the meantime, halve the tomatoes and cut the smoked bacon into bite-sized cubes.
Add gnocchi and the rest of the pesto into the pan. Once the gnocchi are heated through, add tomatoes and smoked bacon and combine. Add the spinach and fold in until it wilts. Serve hot and enjoy!