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

jasmine-fail-fast

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jasmine-fail-fast - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

14

package.json
{
"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

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