New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

erik

Package Overview
Dependencies
Maintainers
19
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

erik - npm Package Compare versions

Comparing version 1.2.1 to 2.0.0

24

index.js

@@ -28,3 +28,3 @@ "use strict";

* @param {String[]} [options.karmaConfig.browsers] - What browsers to test on, defaults to
* PhantomJS.
* ChromeHeadless.
* @param {String} [bundlePath] - Base bath to use for Erik's bundled files. A directory named

@@ -40,3 +40,3 @@ * `erik` will be created here.

this._port = (options.karmaConfig && options.karmaConfig.port) || 9876;
this._browsers = (options.karmaConfig && options.karmaConfig.browsers) || ['PhantomJS'];
this._browsers = (options.karmaConfig && options.karmaConfig.browsers) || ['ChromeHeadless'];
this._bundlePath = options.bundlePath || '';

@@ -139,22 +139,2 @@

/**
* We must override the default `browserConsoleLogOptions` to allow `log`-type messages (ie
* those produced by `console.log`) to display in Erik's output among the tests as they run
* because Karma has a bug with its console message filtering.
* See https://github.com/karma-runner/karma-mocha/issues/47 and
* https://github.com/karma-runner/karma/issues/2582 for more details.
*/
browserConsoleLogOptions: {
// Override the default value, `debug`, here.
level: 'log',
/**
* Unrelated to Karma's bug, we override the default option here to skip outputting the
* browser because Erik only runs tests using PhantomJS so logging the browser name is
* unnecessary.
*/
format: '%T: %m',
terminal: true
},
/**
* Pass an empty object for `preprocessors` in order to disable Karma's default processing

@@ -161,0 +141,0 @@ * of coffescript files.

12

package.json
{
"name": "erik",
"version": "1.2.1",
"description": "Start running your client `Jasmine` tests headlessly with `PhantomJS` and `gulp` today.",
"version": "2.0.0",
"description": "Start running your client `Jasmine` tests headlessly with Headless Chrome and `gulp` today.",
"main": "index.js",

@@ -21,3 +21,5 @@ "scripts": {

"the",
"opera"
"opera",
"headless",
"chrome"
],

@@ -35,6 +37,6 @@ "author": "Spencer Brown <spencer@mixmax.com> (https://mixmax.com)",

"jasmine-core": "^2.5.2",
"karma": "^1.5.0",
"karma": "^1.7.0",
"karma-chrome-launcher": "^2.2.0",
"karma-jasmine": "^1.1.0",
"karma-mocha-reporter": "^2.2.2",
"karma-phantomjs-launcher": "^1.0.2",
"run-sequence": "^1.2.2",

@@ -41,0 +43,0 @@ "streamqueue": "^1.1.1"

# Erik
Start running your client `Jasmine` tests headlessly with `PhantomJS` and `gulp` today.
Start running your client `Jasmine` tests headlessly with [Headless Chrome](https://developers.google.com/web/updates/2017/04/headless-chrome) and `gulp` today.

@@ -9,5 +9,5 @@ ### When should I use Erik?

Erik utilizes [Karma](https://github.com/karma-runner/karma) to run your Jasmine tests with PhantomJS.
Erik utilizes [Karma](https://github.com/karma-runner/karma) to run your Jasmine tests with Headless Chrome.
It abstracts away Karma's details and configuration so that you can begin running your tests with PhantomJS quickly and easily.
It abstracts away Karma's details and configuration so that you can begin running your tests with Headless Chrome quickly and easily.

@@ -44,4 +44,2 @@ Simply adapt the below example configuration for your use.

**Please make sure that all of your dependencies are [compatible with PhantomJS](https://kangax.github.io/compat-table/es6/#phantom).**
(in your `gulpfile`)

@@ -125,3 +123,3 @@ ```js

Should you desire to use a browser other than PhantomJS, you can do so by providing a `browsers` array in the `karmaConfig` object. Note that you'll need to install the appropriate [browser plugins](http://karma-runner.github.io/1.0/config/browsers.html) for Karma.
Should you desire to use a browser other than Headless Chrome, you can do so by providing a `browsers` array in the `karmaConfig` object. Note that you'll need to install the appropriate [browser plugins](http://karma-runner.github.io/1.0/config/browsers.html) for Karma.

@@ -147,2 +145,3 @@ ```js

* 2.0.0 Replace PhantomJS with Headless Chrome
* 1.2.1 Allow browser configuration by browsers array

@@ -160,2 +159,2 @@ * 1.2.0 Work around Karma bug to support `console.log` output among test cases as they run.

Erik is the name of the Phantom in _Phantom of the Opera_ :D
Erik is the name of the Phantom in _Phantom of the Opera_ :D. This library used to use PhantomJS instead of Headless Chrome.

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