Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including jasmine with all npm packages installed. Try it out:

var jasmine = require("jasmine")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

jasmine v3.6.1

Command line jasmine

Build Status FOSSA Status

The Jasmine Module

The jasmine module is a package of helper code for developing Jasmine projects for Node.js.

The core of jasmine lives at and is jasmine-core in npm.


This module allows you to run Jasmine specs for your Node.js code. The output will be displayed in your terminal by default.



# Local installation:
npm install --save-dev jasmine

# Global installation
npm install -g jasmine


To initialize a project for Jasmine

jasmine init

To initialize a project for Jasmine when being installed locally

node_modules/.bin/jasmine init


npx jasmine init

To seed your project with some examples

jasmine examples


To run your test suite



Customize spec/support/jasmine.json to enumerate the source and spec files you would like the Jasmine runner to include. You may use dir glob strings. More information on the format of jasmine.json can be found in the documentation

Alternatively, you may specify the path to your jasmine.json by setting an environment variable or an option:

jasmine JASMINE_CONFIG_PATH=relative/path/to/your/jasmine.json
jasmine --config=relative/path/to/your/jasmine.json

Filtering specs

Execute only those specs which filename match given glob:

jasmine "spec/**/critical/*Spec.js"

Or a single file:

jasmine spec/currentSpec.js

Or execute only those specs which name matches a particular regex:

jasmine --filter "adapter21*"

(where the name of a spec is the first parameter passed to describe())


Documentation: Jasmine Mailing list: Twitter: @jasminebdd

Please file issues here at Github

Copyright (c) 2008-2017 Pivotal Labs. This software is licensed under the MIT License.


FOSSA Status


RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free