Drain the pasta and stir into the roasted vegetables. Stir through the mozzarella and pesto, top with Parmesan and return to the oven for another 10 minutes, until the cheese has melted.
Meanwhile, to make the pesto, blend all the ingredients in a food processor. When the vegetables have been in the oven for about 15 minutes, cook the pasta according to the packet instructions.