mocha-headless-chrome
Advanced tools
Comparing version 1.6.0 to 1.7.0
@@ -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 @@ }); |
{ | ||
"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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32822
7
730
1
+ Addedpuppeteer@0.13.0(transitive)
- Removedpuppeteer@0.12.0(transitive)
Updatedpuppeteer@^0.13.0