1. Preheat your oven to 200°C (390°F). Bring a large pot of salted water to a boil and cook the gnocchi according to the package instructions, usually until they float to the top (2-3 minutes). Drain and set aside. Keep 1 cup of pasta water aside.
2. In a large skillet, heat the olive oil over medium heat. Add the finely chopped onion and minced garlic, cooking until the onion becomes translucent (about 5 minutes).
3. Add the passata sauce and cherry tomatoes to the skillet, stirring to combine with the onions and garlic. Season with salt and pepper to taste. Simmer for about 5 minutes.
4. In a large baking dish, combine the cooked gnocchi with the sauce, 1 cup of the saved pasta water, salt, pepper and chilli to taste gently stirring to coat the gnocchi evenly.
5. Sprinkle the shredded mozzarella cheese and grated Parmesan cheese evenly over the top of the gnocchi mixture.
6. Bake in the preheated oven for 15-20 minutes, or until the cheese is melted and bubbly, and the top is slightly golden.
7. Remove from the oven and let it cool for a few minutes. Garnish with fresh basil leaves before serving.