In a large skillet, heat the olive oil over medium heat. Add the diced onion and sauté for about 3-4 minutes until translucent.
Stir in the minced garlic and sliced mushrooms. Cook for an additional 5-7 minutes until the mushrooms are browned and tender.
Add the dried thyme, salt, and black pepper, stirring to combine.
Pour in the vegetable broth and bring to a simmer. Allow it to cook for about 5 minutes.
Reduce the heat to low and stir in the heavy cream and chopped spinach. Cook for another 2-3 minutes until the spinach wilts.
In a separate pot, cook the gnocchi according to package instructions. Drain and add to the skillet with the creamy sauce.
Gently toss the gnocchi in the sauce until well coated. Stir in the grated Parmesan cheese until melted and combined.
Serve immediately, garnished with fresh parsley.