Cook the gnocchi according to package instructions.
Heat olive oil in a large skillet over medium heat.
Add sliced mushrooms and sauté until browned, about 5-7 minutes.
Stir in minced garlic and cook for 1-2 minutes until fragrant.
Add chopped spinach and sauté until wilted, about 2-3 minutes.
Pour in the heavy cream and bring to a gentle simmer.
Stir in grated Parmesan cheese until melted and the sauce thickens slightly.
Gently fold in the cooked gnocchi, coating them in the creamy sauce.
Season with salt and pepper to taste, adjusting flavors as needed.
Serve immediately, garnished with fresh basil if desired.