Bring a large pot of salted water to a boil over medium-high heat. Keep the water at a boil until you’re ready to cook the gnocchi.: The moment the water starts steaming heavily you should smell a faint minerally scent from the salt, and surface ripples will indicate vigorous simmering. Salting the water seasons the gnocchi from the inside, which matters because gnocchi absorbs liquid quickly and would otherwise taste flat. A common mistake is under salting, which leaves the final dish bland, so add enough salt that the water tastes like the sea but not overly briny.
Add the pine nuts, garlic, and lemon juice to the bowl of a food processor and pulse until they are broken up, about 10 pulses.: You will hear quick chuffing sounds as the pieces chop, and the mixture should look coarsely broken rather than smooth. This initial break down helps release nut oils and garlic aroma, creating a base texture for the pesto. Avoid over processing here, because turning the nuts to dust will change the mouthfeel and make the pesto gritty rather than pleasantly textured.
Next, add the basil and parmesan and pulse until the basil is broken into small pieces, about 10 pulses.: As the basil is incorporated you will smell that fresh, green herbaceous note blooming. The parmesan adds a slightly granular body that helps thicken the sauce. If you pulse too long at this stage the basil can heat and darken, so work quickly to keep the color bright.
With the food processor on low speed, slowly drizzle in 1/3 cup olive oil.: You will notice the mixture become glossier and silkier as the olive oil emulsifies with the cheese and basil. The slow drizzle is crucial because rapid addition can cause the oil to separate, leaving an oily pool rather than a cohesive sauce. If separation happens, briefly pulse to reincorporate; patience here yields a clingy, luxurious pesto.
Season with salt and pepper to taste.: A little salt will lift the flavors while black pepper adds a subtle heat that complements the garlic . Taste a small spoonful against the lemon note to ensure the balance feels bright rather than flat. Over salting is the most common error, so season gradually and re-taste after mixing with the gnocchi .
Heat the remaining 2 tablespoons of olive oil in a large skillet over medium heat.: As the oil warms you should see a slight shimmer and faint wisps of aroma. The heated oil creates a contact surface that encourages the asparagus to blister slightly, enhancing flavor through light caramelization. Avoid overheating; if the oil smokes, lower the heat to prevent bitter burnt notes.
Add the asparagus and cook for 2-3 minutes, or just until crisp-tender.: You will hear gentle sizzles and see bright green stalks soften but still hold shape. The goal is a tender interior and lightly seared exterior, which provides contrast to the soft gnocchi . Overcooking makes the asparagus floppy and dulls its vibrant color, so test a piece for a slight resistance.
While the asparagus cooks, cook the gnocchi for 2 minutes less than the time on the package. My gnocchi usually takes 6 minutes to boil, so I cooked them for 4 minutes.: The boiling gnocchi should bob and make a popping sound as air escapes, and par cooking prevents them from becoming mushy when they finish in the skillet. This step ensures the final texture is pillowy yet intact. A typical mistake is overcooking to the point the dumplings break apart when stirred.
Reserve 1/2 cup of the gnocchi cooking liquid and then drain the gnocchi.: The starchy, slightly cloudy water will feel slick between your fingers and is essential for marrying the pesto to the gnocchi . Reserving too little liquid can leave the sauce dry, while reserving too much creates a loose sauce, so measure carefully.
Add the gnocchi to the skillet with the asparagus.: When you add them you will hear a soft sizzle as the hot skillet meets the boiled dumplings. This contact helps the surface develop a lightly toasted exterior, and combining here allows flavors to mingle. Avoid stirring aggressively, which can tear the gnocchi apart.
Add the pesto and 1/4 cup of the reserved cooking liquid. Stir to combine and cook for 1 minute, just until the pesto sauce thickens and evenly coats the gnocchi. If the sauce is too dry, add the remaining 1/4 cup of the reserved cooking water.: The first spoonful of water will react with the oily pesto to form a silky emulsion that clings to each piece of gnocchi . You will see the sauce thicken and gloss over the dumplings, signaling that the bind is working. If the mixture looks dry, add the remaining reserved liquid in small increments to reach a creamy consistency.
Season with salt and pepper and serve warm, at room temperature, or place in the fridge to chill.: During this minute the aromas intensify and you will notice a shine over the pasta, indicating proper coating. The brief cook helps the flavors marry without losing the fresh brightness of the basil . A common pitfall is cooking too long, which dulls the herb notes and can make the sauce cling too heavily.
This gnocchi is delicious at room temperature, warm, or cold! Top with flakey sea salt, toasted pine nuts, and fresh basil, if desired.: Final seasoning ensures balance after the sauce and starches have combined. Serving at different temperatures changes the mouthfeel, warm being silkier and chilled being more firm and salad like. If storing, cool quickly to protect freshness, and keep leftovers airtight to prevent the pesto from oxidizing.
Store any leftovers in an airtight container in the fridge for up to three days.: When plated you might add a sprinkle of toasted pine nuts or a few torn basil leaves for aroma. The dish's flexibility means it adapts to many occasions, but avoid leaving it out for extended periods to keep flavors bright and safe.
Store any leftovers in an airtight container in the fridge for up to three days: Leftovers will have a slightly firmer texture as the starch sets, and a quick warm up in a skillet with a splash of water will revive creaminess. Do not freeze, as thawing changes the delicate texture of the gnocchi and pesto .