
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
gulp-jasmine
Advanced tools
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 9,684 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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.