- Put the spaghetti on to cook. Drain and return to the pan.
- Meanwhile, heat a little oil in a wok or large pan. Add the chicken and fry for 3–4 minutes, checking one of the larger pieces to make sure it is cooked through.
- Add the onions and fry for 1 minute.
- Put the pesto ingredients in a food processor and whizz for 30 seconds.
- Pour the pesto into the wok with the chicken. Bring to the boil and simmer for 1 minute.
- Add the spaghetti and mix.