Heat the olive oil in a large pot over medium heat. Add the minced garlic and cook for about 1 minute until fragrant.
Pour in the vegetable broth and bring it to a gentle boil. Add the pasta, stir well, and cook according to the package directions, stirring occasionally, until the pasta is tender and most of the liquid has been absorbed.
Reduce the heat to low. Stir in the basil pesto, heavy cream, and Parmesan cheese until the sauce is smooth and creamy.
Add the baby spinach (if using) and stir until just wilted.
Taste and season with salt and black pepper as needed.
Serve immediately, garnished with fresh basil and an extra sprinkle of Parmesan cheese.