Cook gnocchi according to package directions. Once fully cooked, drain and set aside.
Meanwhile, add olive oil to a medium skillet over medium-high heat. Add onions, sauté until the onions are tender and translucent. Reduce the heat to low. Add pesto and half-and-half to the skillet, stirring to combine. Season with salt and pepper to taste.
Turn off the heat and add the cooked gnocchi to the skillet. Fold in spinach until it begins to wilt.
Top with cherry tomatoes and shredded parmesan cheese. Serve and enjoy!