This is a nice combination that was new to me. Green beans with mushrooms is a classic combination, but I'd never thought about throwing bacon into the mix.
Bring a large pot of generously salted water to a boil and add the green beans. Meanwhile, fill a bowl with ice and water. Cook the beans until tender, 4 to 5 minutes. Dump into the ice water, leave for a few minutes, then drain.
Heat a large, heavy sauté pan over medium heat and add the bacon. Sauté until crisp. Remove from the pan and drain on racks.
Add the shallots to the bacon fat and sauté until tender, about 5 minutes. Add the mushrooms and continue to cook, stirring often or shaking the pan, until tender, 5 to 10 minutes. Season to taste with salt and pepper.
Add the green beans and cook, stirring, until heated through. Adjust seasonings, sprinkle with the bacon, and serve immediately.