Build layers in this order in a baking dish from the bottom up: pasta, cheese mixture, vegetables, mozzarella, grated Parmesan, and pesto. Repeat until you have used up the ingredients. (The number of layers will depend on the size of your baking dish.)