Comparing version 1.2.0 to 1.2.1
@@ -27,2 +27,4 @@ "use strict"; | ||
* @param {Number} [options.karmaConfig.port=9876] - Port on which to run the Karma server. | ||
* @param {String[]} [options.karmaConfig.browsers] - What browsers to test on, defaults to | ||
* PhantomJS. | ||
* @param {String} [bundlePath] - Base bath to use for Erik's bundled files. A directory named | ||
@@ -38,2 +40,3 @@ * `erik` will be created here. | ||
this._port = (options.karmaConfig && options.karmaConfig.port) || 9876; | ||
this._browsers = (options.karmaConfig && options.karmaConfig.browsers) || ['PhantomJS']; | ||
this._bundlePath = options.bundlePath || ''; | ||
@@ -131,3 +134,3 @@ | ||
frameworks: ['jasmine'], | ||
browsers: ['PhantomJS'], | ||
browsers: this._browsers, | ||
reporters: ['mocha'], | ||
@@ -134,0 +137,0 @@ failOnEmptyTestSuite: false, |
{ | ||
"name": "erik", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Start running your client `Jasmine` tests headlessly with `PhantomJS` and `gulp` today.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -121,2 +121,19 @@ # Erik | ||
##### Testing on other browsers | ||
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. | ||
```js | ||
new Erik({ | ||
gulp, | ||
... | ||
karmaConfig: { | ||
port: 1337, | ||
browsers: ['Chrome', 'Firefox'] | ||
} | ||
}); | ||
``` | ||
### Contributing | ||
@@ -128,2 +145,3 @@ | ||
* 1.2.1 Allow browser configuration by browsers array | ||
* 1.2.0 Work around Karma bug to support `console.log` output among test cases as they run. | ||
@@ -130,0 +148,0 @@ * 1.1.2 Don't fail when the test suite run is empty. |
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
85158
173
157
1