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. |
{ | ||
"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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
80782
155
156
+ Addedkarma-chrome-launcher@^2.2.0
+ Addedes-object-atoms@1.0.0(transitive)
+ Addedfs-access@1.0.1(transitive)
+ Addedkarma-chrome-launcher@2.2.0(transitive)
+ Addednull-check@1.0.0(transitive)
- Removedkarma-phantomjs-launcher@^1.0.2
- Removedbuffer-crc32@0.2.13(transitive)
- Removedbuffer-from@1.1.2(transitive)
- Removedconcat-stream@1.6.2(transitive)
- Removedes-object-atoms@1.1.1(transitive)
- Removedes6-promise@4.2.8(transitive)
- Removedextract-zip@1.7.0(transitive)
- Removedfd-slicer@1.1.0(transitive)
- Removedfs-extra@1.0.0(transitive)
- Removedhasha@2.2.0(transitive)
- Removedjsonfile@2.4.0(transitive)
- Removedkarma-phantomjs-launcher@1.0.4(transitive)
- Removedkew@0.7.0(transitive)
- Removedklaw@1.3.1(transitive)
- Removedmkdirp@0.5.6(transitive)
- Removedpend@1.2.0(transitive)
- Removedphantomjs-prebuilt@2.1.16(transitive)
- Removedprogress@1.1.8(transitive)
- Removedrequest-progress@2.0.1(transitive)
- Removedthrottleit@1.0.1(transitive)
- Removedtypedarray@0.0.6(transitive)
- Removedyauzl@2.10.0(transitive)
Updatedkarma@^1.7.0