To keep the strings beans tender while they cook, allow some of the water to cling to them before they go into the hot pan.
Heat an 8-inch pot and add a drizzle of olive oil. Scatter in the shallots. Sprinkle on the red pepper flakes and salt. Top with the green beans. Cover and cook over medium heat for 10 minutes.
Add the chickpeas and basil sprig and stir to combine. Cook an additional 10 minutes. Turn off heat and squeeze over lemon before serving.