Clean and slice the mushrooms thinly.
Chop basil and garlic as well.
Heat olive oil in a pan, sauté the garlic, then add the mushrooms and cook.
Put basil, pine nuts, Parmesan cheese, olive oil, salt, and pepper in a blender to make pesto sauce.
Toss the cooked mushrooms with the pesto sauce.