Cook spaghetti according to package directions. Reserve 1/2 cup pasta water before draining.
In a large skillet over medium high heat, cook sausage until no longer pink and starting to crisp up on the edges, remove from the heat and set on a paper towel for the grease to drain. Wipe the skillet with a paper towel to remove excess grease.
In the same large skillet used to cook the sausage, over medium heat, add olive oil, red onion, and baby spinach. Cook until the onions are translucent and the spinach is wilted.
Add the pesto to the skillet and stir with the veggies. Add the sausage and the spaghetti noodles. If the pasta is too thick for your liking, you can add small amounts of the pasta water to thin it out.
Toss the pasta in the sauce and top with parmesan cheese.