jasmine-fail-fast
Advanced tools
Comparing version 2.0.0 to 2.0.1
{ | ||
"name": "jasmine-fail-fast", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Allow Jasmine tests to \"fail-fast\", exiting on the first failure instead of running all tests no matter what. ", | ||
@@ -11,5 +11,3 @@ "repository": { | ||
"scripts": { | ||
"compile": "mkdirp dist && babel -o dist/jasmine-fail-fast.js src/index.js", | ||
"prepublish": "npm run compile", | ||
"pretest": "npm run compile", | ||
"prepublishOnly": "mkdirp dist && babel -o dist/jasmine-fail-fast.js src/index.js", | ||
"test": "jasmine" | ||
@@ -21,6 +19,6 @@ }, | ||
], | ||
"author": "patrick@updater.com", | ||
"author": "pmowrer@gmail.com", | ||
"license": "MIT", | ||
"dependencies": { | ||
"lodash": "3.10.0" | ||
"lodash": "^4.17.15" | ||
}, | ||
@@ -30,4 +28,6 @@ "devDependencies": { | ||
"jasmine": "^2.3.1", | ||
"mkdirp": "^0.5.1" | ||
"mkdirp": "^1.0.3", | ||
"semantic-release": "^17.0.2", | ||
"semantic-release-github-pr": "^6.0.0" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
# jasmine-fail-fast [![build status](https://travis-ci.org/Updater/jasmine-fail-fast.svg?branch=master)](https://travis-ci.org/Updater/jasmine-fail-fast) | ||
# jasmine-fail-fast [![build status](https://travis-ci.org/pmowrer/jasmine-fail-fast.svg?branch=master)](https://travis-ci.org/Updater/jasmine-fail-fast) | ||
@@ -13,4 +13,5 @@ Allow Jasmine tests to "fail-fast", exiting on the first failure instead of running all tests no matter what. This can save a great deal of time running slow, expensive tests, such as Protractor e2e tests. | ||
## Usage | ||
This module is implemented as a Jasmine reporter. Add to the global Jasmine environment like so: | ||
This module is implemented as a Jasmine reporter. | ||
### Jasmine as browser global | ||
```javascript | ||
@@ -21,17 +22,33 @@ var failFast = require('jasmine-fail-fast'); | ||
### Examples | ||
### Jasmine Node API | ||
```javascript | ||
var Jasmine = require('jasmine'); | ||
var jasmine = new Jasmine(); | ||
var failFast = require('jasmine-fail-fast'); | ||
jasmine.addReporter(failFast.init()); | ||
``` | ||
#### Protractor | ||
In the Protractor conf file: | ||
## Examples | ||
### [karma-jasmine](https://github.com/karma-runner/karma-jasmine) | ||
In the Karma configuration file: | ||
```javascript | ||
module.exports = function(config) { | ||
var failFast = require('jasmine-fail-fast'); | ||
window.jasmine.getEnv().addReporter(failFast.init()); | ||
} | ||
``` | ||
### [Protractor](https://github.com/angular/protractor) | ||
In the Protractor configuration file: | ||
```javascript | ||
onPrepare: function() { | ||
... | ||
var failFast = require('jasmine-fail-fast'); | ||
jasmine.getEnv().addReporter(failFast.init()); | ||
... | ||
} | ||
``` | ||
#### As a Jasmine helper | ||
### As a Jasmine helper | ||
Create a new .js file within the [helpers](http://jasmine.github.io/2.3/node.html#section-9) [folder](http://jasmine.github.io/2.3/node.html#section-Load_configuration_from_a_file_or_from_an_object.): | ||
@@ -44,3 +61,3 @@ | ||
``` | ||
#### grunt-contrib-jasmine | ||
### grunt-contrib-jasmine | ||
Set up as a helper, [optionally overriding the default helpers path](https://github.com/gruntjs/grunt-contrib-jasmine#optionshelpers). |
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
61
7279
5
12
2
+ Addedlodash@4.17.21(transitive)
- Removedlodash@3.10.0(transitive)
Updatedlodash@^4.17.15