Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 780 Bytes

readme.md

File metadata and controls

27 lines (17 loc) · 780 Bytes

Example: Puppeteer

This example runs Puppeteer programmatically.

In order to invoke and test against source (/src) files, this example also uses sirv-cli to run a local file server. Puppeteer connects to this file server to access the window globals that src/math.js and src/utils.js are globally mounted to.

Note: Window globals are not required in order for uvu to work with puppeteer!
You may, for example, load your Preact, Svelte, Vue, ... etc application inside the devserver & interact with it through Puppeteer APIs!

Setup

$ npm install

Testing

# start server
$ npm start

# run tests (2nd terminal)
$ npm test

License

MIT