Cook the pasta in a large saucepan of salted boiling water according to the packet instructions until al dente.
Meanwhile, finely chop the tomatoes, garlic cloves, rocket and pine nuts by hand, then stir in the oil. Season with salt and pepper. Transfer to a bowl.
Drain the pasta, add to the bowl with the pesto and toss to combine. Serve immediately, garnished with a few basil leaves.