{"repo":"argos-ci/jest-puppeteer","free":true,"listed":false,"github":"https://github.com/argos-ci/jest-puppeteer","clone":"git clone https://github.com/argos-ci/jest-puppeteer.git","description":"Run tests using Jest & Puppeteer 🎪✨","language":"TypeScript","stars":3546,"topics":["jest","puppeteer","jest-environment","chrome","chromeless","integration-testing"],"license":"MIT","category":"scrapers-browser-automation","readme_excerpt":"🎪 jest-puppeteer jest-puppeteer is a Jest preset designed for seamless integration with Puppeteer, enabling end-to-end testing in a browser environment. With a simple API, it allows you to launch browsers and interact with web pages, making it perfect for testing UI interactions in web applications. Table of Contents 1. Getting Started - Installation - Basic Setup - Writing Your First Test - TypeScript Setup - Visual Testing with Argos 2. Recipes - Using expect-puppeteer - Debugging Tests - Automatic Server Management - Customizing the Puppeteer Instance - Custom Test Setup - Extending PuppeteerEnvironment - Global Setup and Teardown 3. Jest-Puppeteer Configuration 4. API Reference 5. Troubleshooting 6. Acknowledgements Getting Started Installation To start using jest-puppeteer , you’ll need to install the following packages: This will install Jest (the testing framework), Puppeteer (the headless browser tool), and jest-puppeteer (the integration between the two). Basic Setup In your Jest configuration file ( jest.config.js ), add jest-puppeteer as the preset: This will configure Jest to use Puppeteer for running your tests. Make sure to remove any conflicting testEnvironment settings that might be present in your existing Jest configuration, as jest-puppeteer manages the environment for you. Writing Your First Test Once you’ve configured Jest, you can start writing tests using Puppeteer’s page object, which is automatically provided by jest-puppeteer . Create a test file (e","default_branch":null,"files":null,"tree":[],"storefront":"/r/argos-ci","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/argos-ci/jest-puppeteer/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}