Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/uzitech/jasmine2-focused
https://github.com/uzitech/jasmine2-focused
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/uzitech/jasmine2-focused
- Owner: UziTech
- License: mit
- Archived: true
- Created: 2017-03-15T01:20:52.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-09-04T15:09:38.000Z (about 1 year ago)
- Last Synced: 2024-04-24T14:19:44.585Z (7 months ago)
- Language: JavaScript
- Size: 976 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
[![Actions Status](https://github.com/UziTech/jasmine2-focused/workflows/CI/badge.svg)](https://github.com/UziTech/jasmine2-focused/actions)
# Jasmine 2.x-3.x Focused
This is similar to [jasmine-focused](https://github.com/atom/jasmine-focused) except it works with Jasmine 2.x or 3.x
Adds global functions to run only certain [Jasmine](https://github.com/jasmin/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
```sh
npm install jasmine2-focused --save-dev
```then require it
```js
require("jasmine2-focused");
```before your tests.
## Using
jasmine2-focused allows you to specify how many focused functions are provided by setting
```js
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`