Socket
Book a DemoInstallSign in
Socket

jasmine2-focused

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jasmine2-focused

Add focus priorities to Jasmine 2.x

1.1.2
latest
Source
npmnpm
Version published
Weekly downloads
162
97.56%
Maintainers
1
Weekly downloads
 
Created
Source

Actions Status

Jasmine 2.x-3.x Focused

This is similar to jasmine-focused except it works with Jasmine 2.x or 3.x

Adds global functions to run only certain Jasmine specs.

The number of f characters in the method name denotes the priority of the describe or it spec.

For example, a fit spec would be run instead of any it specs and a ffit spec would be run instead of any fit or it specs.

Installing

Save jasmine2-focused in devDependencies

npm install jasmine2-focused --save-dev

then require it

require("jasmine2-focused");

before your tests.

Using

jasmine2-focused allows you to specify how many focused functions are provided by setting

global.JASMINE2_FOCUSED_HIGHEST_PRIORITY = 3 // 3 is the default
require("jasmine2-focused");

By default the following function are provides that wrap the standard it and describe Jasmine functions.

  • fit

  • fdescribe

  • ffit

  • ffdescribe

  • fffit

  • fffdescribe

Keywords

jasmine

FAQs

Package last updated on 04 Jan 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.