In a large pot of salted boiling water, cook the pasta al dente. Drain.
In the same pot, heat a drizzle of olive oil over medium heat and sauté the onion for 1 to 2 minutes.
Add the shredded duck confit and heat for 2 to 3 minutes, stirring occasionally.
Add the cream and sun-dried tomato pesto. Bring to a boil and cook for 2 minutes.
Add the tagliatelle noodles and artichoke hearts. Season with salt and pepper, and stir.
If desired, garnish with the shredded fresh mozzarella and basil before serving.