Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mochify/driver-puppeteer

Package Overview
Dependencies
Maintainers
0
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mochify/driver-puppeteer

Puppeteer driver for Mochify

  • 0.4.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

Mochify driver for Puppeteer

Run tests in Puppeteer.

Usage

Install the package from npm:

npm i @mochify/driver-puppeteer -D

and pass it to the CLI:

mochify --driver puppeteer ...

Driver options

The driver allows the following options to be set:

stderr

Defines the stream the test output will be written to. Defaults to process.stderr

ignoreHTTPSErrors

Whether to ignore HTTPS errors during navigation. Defaults to false.

executablePath

The optional path of the Chromium binary to be used. Defaults to process.env.PUPPETEER_EXECUTABLE_PATH to work around https://github.com/puppeteer/puppeteer/issues/6957. In case neither the env var nor a value is given, Puppeteer uses the bundled Chromium version.

args

An optional array of command line flags to pass to Chromium. --allow-insecure-localhost and --disable-dev-shm-usage will always be used in addition to the given values.

url

Run tests in the context of the given URL. Defaults to an empty document served using the file: scheme.

Passing through launch options to Puppeteer

In addition to the driver options documented above, driver-puppeteer allows you to pass through all of Puppeteer's other launchOptions using the defaults as described here.

Keywords

FAQs

Package last updated on 16 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc