Rinse the beans in a sieve and let them drain. Peel and finely chop the onion. Clean the mushrooms, wash them briefly if necessary and halve them depending on size. Wash the rocket and shake dry. Grate parmesan finely.
Heat 2 tablespoons of clarified butter in a large pan and fry the mushrooms for about 5 minutes. After about 3 minutes add onion. Season with salt and pepper and remove from the pan.
Heat 2 tablespoons of clarified butter in a frying pan and fry the gnocchi for about 8 minutes, turning them over. Add beans and mushrooms, heat up, season with salt and pepper. Fold in rocket. Serve and sprinkle with parmesan.