Fry the shredded chicken with a little olive oil in the frying pan for about 5 minutes without any spices, then put aside in a plate.
In the same frying pan, briefly fry the chopped garlic clove and onion, add the pesto and pour in the cream. Season to taste with salt and pepper and simmer on low heat until the sauce has thickened as desired. Add the meat to the sauce and let it simmer briefly.
While the sauce is simmering, cook the pasta al dente in plenty of salted water.