Giter VIP home page Giter VIP logo

jest-puppeteer's Introduction

This repo is deprecated. see this and this

jest-puppeteer

Headless Chrome (Puppeteer) Environment Wrapper for Jest

It's basically a wrapper of Puppeteer environment for Jest.

First it launches puppeteer and keep the browserWSEndpoint at global.browserWSEndpoint.

Then it run Jest tests.

Each test case can have their puppeteer instance connect to the browser via global.browserWSEndpoint and teardown when finished.

Finally, it teardowns the browser instance via a custom Jest result processor.

Installation

Note: This wrapper depends on the Async Test Environment API in [email protected]

npm install -D [email protected] puppeteer jest-puppeteer

or

yarn add --dev [email protected] puppeteer jest-puppeteer

Usage

see example

License

MIT

jest-puppeteer's People

Contributors

xfumihiro avatar avaly avatar

Stargazers

Summer Gan avatar Vadym Morozov avatar Cash Wu avatar Tobias Deekens avatar Mehrdad Shokri avatar Gokulakrishnan Kalaikovan avatar Praveen Sastry avatar Damian Pieczynski avatar  avatar Sean Lynch avatar Wei Zhu avatar Thilo Schmalfuß avatar Sveinung Tord Røsaker avatar Charles Jacquin avatar Konstantin Vyatkin avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

avaly jsrkstr

jest-puppeteer's Issues

Why is this deprecated?

It seems like a nice idea to wrap the boilerplate.

Would you be open to me maintaining and publishing something that wraps the boilerplate?

Setup steps

Could you please add all the setup steps needed?

After adding it with yarn it gives me the this error: Cannot read property 'newPage' of undefined.

I have also added the config file and the jest-puppeteer command in package.json

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.