Socket
Socket
Sign inDemoInstall

mocha-headless-chrome

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mocha-headless-chrome - npm Package Compare versions

Comparing version 1.6.0 to 1.7.0

package-lock.json

2

cli.js

@@ -16,2 +16,3 @@ 'use strict';

.option('executablePath', 'Chrome executable path', undefined, String)
.option('visible', 'Show Chrome window', undefined, Boolean)
.example('mocha-headless-chrome -f test.html', 'Run tests on the "test.html" page')

@@ -24,2 +25,3 @@ .example('mocha-headless-chrome -f http://localhost:8080', 'Run tests on the remote page')

name: 'mocha-headless-chrome',
version: false,
help: false

@@ -26,0 +28,0 @@ });

4

package.json
{
"name": "mocha-headless-chrome",
"version": "1.6.0",
"version": "1.7.0",
"description": "Run client-side mocha tests in the command line through headless Chrome",

@@ -31,3 +31,3 @@ "main": "runner.js",

"args": "^3.0.7",
"puppeteer": "^0.12.0"
"puppeteer": "^0.13.0"
},

@@ -34,0 +34,0 @@ "devDependencies": {

@@ -10,3 +10,3 @@ # mocha-headless-chrome

Node 6.4.0+ is supported.
Node 6.4.0+ and Mocha 2.3.0+ are supported.

@@ -37,3 +37,4 @@ ## Getting Started

- **-e, --executablePath** - Chrome executable path
- **-a, --args** Chrome arguments ('--' prefix will be added)
- **-v, --visible** - Show Chrome window
- **-a, --args** - Chrome arguments ('--' prefix will be added)
- **-w, --width** - Viewport width

@@ -43,3 +44,2 @@ - **-H, --height** - Viewport height

- **-h, --help** - Output usage information
- **-v, --version** - Output the version number

@@ -46,0 +46,0 @@ ## Examples

@@ -141,3 +141,3 @@ 'use strict';

module.exports = function ({ file, reporter, timeout, width, height, args, executablePath }) {
module.exports = function ({ file, reporter, timeout, width, height, args, executablePath, visible }) {
return new Promise(resolve => {

@@ -157,3 +157,3 @@

ignoreHTTPSErrors: true,
headless: true,
headless: !visible,
executablePath,

@@ -160,0 +160,0 @@ args

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