The Git tag for this section is cucumber. This tag has extra commits added on top of what was covered in the last chapter, so, if you've been following along in your own code base, then please make sure to merge the additional changes.
For more detailed instructions, see the To get the most out of this book section in the Preface.
For more detailed instructions, see the To get the most out of this book section in the Preface.
- Let's start by installing the packages we're after. Since Puppeteer requires Chrome, the install will download Chrome if you don't already have it on your system. Since Cucumber doesn't rely on the Jest test runner, we also need to install the expect package, which allows us to use Jest's expect functionality in a non-Jest context. Finally, @babel/register allows you to use ES6 syntax from within the Cucumber support files:
npm install --save-dev cucumber puppeteer...