1. Cook the pasta according to the packet instructions, then drain and set aside.
2. Heat the oil in a pan and stir-fry the onion and garlic until soft. Add the vegetables and stir-fry lightly for about 1 minute.
3. Add the canned tomatoes, tomato paste and pesto and heat for 10 minutes until fragrant.