Heat olive oil in a wide pan over medium heat.
Add sliced mushrooms. Cook without stirring for 3–4 minutes until browned.
Stir mushrooms and cook another 2 minutes.
Add garlic and cook for 30 seconds until fragrant.
Add gnocchi directly to the pan.
Pour in vegetable broth and scrape the bottom of the pan.
Bring to a gentle simmer. Cook for 3–4 minutes until gnocchi is tender.
Stir in cream and lower the heat.
Add spinach and let it wilt into the sauce.
Stir in parmesan, salt, and black pepper.
Taste and adjust seasoning.
Finish with red pepper flakes or lemon zest if using.
Serve warm straight from the pan.