Clean, wash and cut the spring onions into rings. Clean, wash and halve or slice the mushrooms. Grate parmesan.
Preheat oven (electric cooker: 225°C/circulating air: 200°C/gas: see manufacturer). Heat 2 tablespoons of oil in a large pan. Fry the uncooked gnocchi for 3-4 minutes, turning them until golden brown.
Heat 1 tablespoon of oil in the frying fat. Fry the minced meat in it until crumbly. Fry spring onions and mushrooms. Season with salt and pepper. Stir in pesto and cream and bring to the boil. Fold in gnocchi and season again.
Pour everything into an ovenproof dish and sprinkle with Parmesan cheese. Cook in a hot oven for 6-8 minutes.