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.8.3 to 2.0.0

lib/cli.js

13

package.json
{
"name": "mocha-headless-chrome",
"version": "1.8.3",
"version": "2.0.0",
"description": "Run client-side mocha tests in the command line through headless Chrome",
"main": "runner.js",
"main": "./lib/runner.js",
"typings": "./lib/runner.d.ts",
"bin": "./bin/start",

@@ -11,3 +12,4 @@ "engines": {

"scripts": {
"start": "node cli -f example-page.html -o result.json -w 801 -H 501 -r nyan"
"start": "node lib/cli -f ./example/example-page.html -o ./result/result.json -c ./result/coverage.json -w 801 -H 501 -r nyan",
"ts": "tsc ./example/example.ts && node ./example/example.js"
},

@@ -32,4 +34,5 @@ "repository": {

"dependencies": {
"args": "^3.0.7",
"puppeteer": "^1.2.0"
"args": "^4.0.0",
"mkdirp": "^0.5.1",
"puppeteer": "^1.3.0"
},

@@ -36,0 +39,0 @@ "devDependencies": {

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

Then prepare the test page (see [the example](example-page.html)).
Then prepare the test page (see [the example](example/example-page.html)).

@@ -85,3 +85,3 @@ *Note. It is necessary to add the **<meta charset="utf-8">** tag. Otherwise browser may use another encoding and test results will be shown incorrectly.*

```js
const runner = require('mocha-headless-chrome');
const {runner} = require('mocha-headless-chrome');

@@ -106,2 +106,3 @@ const options = {

See also the [TypeScript example](./example/example.ts).

Sorry, the diff of this file is not supported yet

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