Start by heating your pot over medium heat. Saute the onion, carrot, and celery in the oil until the onion is translucent.
Once the onion is translucent, add the garlic and saute for 30 seconds.
Add the Italian seasoning, bay leaf, green beans, cannellini beans, diced tomatoes, and broth. Bring to a boil.
Once boiling, add in the pasta and cook until al dente.
Once pasta is al dente, remove the pot from heat. Add in the parsley, spinach, and pesto. Stir until the spinach is wilted.
Season with salt and pepper to taste. Serve garnished with freshly grated parmesan. Enjoy!