Preheat the oven.
Preheat the oven to 200°C (375°F).
Prepare the vegetables and other ingredients.
Peel and finely dice the onion. Dice the courgette into small bitesized pieces. Drain and rinse the chickpeas.
Assemble everything in a casserole dish.
In a large casserole or baking dish, add the diced onion, diced courgette, chickpeas, cherry tomatoes, pasta, vegetable stock, tin of chopped tomatoes, pesto, salt and black pepper. Gently mix everything to combine. Ensure the pasta is fully submerged in the liquid for even cooking.
Bake the pasta.
Cover the dish tightly with a lid, baking parchment or aluminium foil. Place in the preheated oven and bake for 20 minutes, or until the pasta is al dente. Remove the foil or lid and bake for a further 10 mins or until the pasta is cooked and soft but still has some bite.
Taste and season .
Remove the dish from the oven and carefully stir to ensure the sauce is evenly distributed. Taste and adjust the seasoning to your liking by adding more salt, black pepper or chili.
Serve and enjoy.
Serve immediately, garnish with a glug of olive oil, some fresh basil and/ or a sprinkle with chilli flakes and enjoy!