Spinach cooks quickly on the stovetop, so don't overcook it, resulting in a mushy flavor and lackluster green. The best time to add spinach to the pasta dish is when all the pasta has been fully cooked. Ensure the pasta is on low heat, stir the spinach in, and cook just enough for the greens to wilt.