
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
gulp-jasmine
Advanced tools
Supply Chain Security
Vulnerability
Quality
Maintenance
License
Run Jasmine 2 tests in Node.js
Issues with the output should be reported on the Jasmine issue tracker.
$ npm install --save-dev gulp-jasmine
const gulp = require('gulp');
const jasmine = require('gulp-jasmine');
gulp.task('default', () =>
gulp.src('spec/test.js')
// gulp-jasmine works on filepaths so you can't have any plugins before it
.pipe(jasmine())
);
Type: boolean
Default: false
Display spec names in default reporter.
Type: boolean
Default: false
Include stack traces in failures in default reporter.
Type: Object
Object[]
Reporters to use.
const gulp = require('gulp');
const jasmine = require('gulp-jasmine');
const reporters = require('jasmine-reporters');
gulp.task('default', () =>
gulp.src('spec/test.js')
.pipe(jasmine({
reporter: new reporters.JUnitXmlReporter()
}))
);
Type: number
Default 5000
Time to wait in milliseconds before a test automatically fails.
Type: boolean
Default: true
Stops the stream on failed tests.
Type: Object
Passes the config to Jasmine's loadConfig method.
Emitted after all tests have been completed. For a discussion about why jasmineDone
and not end
nor finish
, see pull request #71.
Add require('babel-core/register');
to the top of your gulpfile.js
. Make sure to read the Babel docs.
MIT © Sindre Sorhus
FAQs
Run Jasmine tests
The npm package gulp-jasmine receives a total of 20,224 weekly downloads. As such, gulp-jasmine popularity was classified as popular.
We found that gulp-jasmine demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
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.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.