Put the spaghetti, tinned tomatoes, onion, garlic, olive oil, pesto, salt and pepper, and stock in a large saucepan.
With the lid on, put it over a medium heat for about 10 minutes, until the pasta is almost cooked.
Stir in the cherry tomatoes and cook for a further 3 or 4 minutes until the pasta is cooked and the cherry tomatoes are softened.
Top with the parmesan cheese to serve.
Did you make this recipe? Click here to let us know how it went and give it a ⭐️ rating! Your feedback helps us to make more recipes you really want.