![]() ![]() ![]() Now that we have our libraries installed, let's configure them both. If you do not already have a package.json file, create it by running this command: npm init Installing all three packages is as simple as running the npm install command: npm install puppeteer jest jest-puppeteer -save-dev Installing Puppeteer, Jest, and Jest-Puppeteer If you don't have them installed, follow our how to install Node guide. If you need a refresher, check out our class on JavaScript. End-to-end testing is an important because it helps ensure your application is working properly from the perspective of your users. In this tutorial, we will learn how to use the Google-built Puppeteer library to control an instance of headless Chrome and the Facebook-built Jest JavaScript testing library to write and run end-to-end testing suites. ![]()
0 Comments
Leave a Reply. |