Preheat the oven to 180 celsius (350 fahrenheit) and toss the cherry tomatoes and garlic in 1 tbs of olive oil and place in a small baking tray. Roast for 20 minutes or until tender and the skin has started to shrivel and split.
While the tomatoes are roasting place the basil leaves, cashews, garlic, parmesan and oil in a food processor. Pulse to combine.
Place a medium saucepan over a high heat and add the vegetable stock. Bring to a boil. Cover and reduce the heat to low.
Place a large saucepan over a medium heat and add the butter. Once the butter has melted add the onion and cook until translucent, about 5 minutes. Remove the garlic cloves from baking tray and squeeze the garlic from the paper and add to the onions. Squash the roasted garlic and cook for 1 minute. Add the quinoa and coat in the butter, onion and garlic mixture until the quinoa starts to turn translucent.
Add the wine and cook until it's absorbed. Add the stock, a ladle at a time, and cook until absorbed before adding another ladleful, stirring as you go. Once the quinoa is tender remove the saucepan from the heat and add the remaining 1 tbs of olive oil and half the cherry tomatoes. Stir, squashing the cherry tomatoes against the side of the saucepan to release their juices. Check the seasoning and adjust as necessary. Lastly add the rocket leaves and stir to combine before serving immediately with dollops of pesto.