Skip to content

Jasmine

A behavior-driven JavaScript testing framework that runs in browsers and Node.js.

Stars
15.8k
Forks
2.2k
Licence
MIT
Language
JavaScript
Last update
28 days ago
Type
Library

What it is

Jasmine is a testing framework for JavaScript, written in the behavior-driven development style, where tests are written as readable descriptions of expected behavior. The README says it does not depend on browsers, the DOM, or any other JavaScript framework, so it can be used for websites, Node.js projects, or anywhere JavaScript runs.

  • Write unit tests for JavaScript functions in a Node.js project
  • Test JavaScript that runs in a browser using the standalone release
  • Organize tests into suites and specs with readable descriptions

Great for

  • JavaScript developers who want a test framework with no extra dependencies
  • Teams testing Node.js projects
  • Developers testing browser-based websites
  • People who prefer test descriptions written in plain, readable sentences

Not ideal for

  • People who need a graphical testing tool with no coding (tests are written as JavaScript code)
  • Projects that need browser or environment support outside the listed versions, since the README says other setups are untested
Step-by-step guide: how to use JasmineInstall, first run, examples, tips and FAQs

How to get it

  1. 1

    See the README

    You'll need: Node.js 20 or newer for Node-based projects (per the supported environments table)

    Clone the repository

    git clone https://github.com/jasmine/jasmine.git
  2. 2

    Run it

    • Follow the Getting Started page at https://jasmine.github.io/pages/getting_started.html to choose an install method
    • Write a small spec file describing the behavior you expect
    • Run the test suite using the method described in the Getting Started guide
    • Read the Your First Suite tutorial for more on writing specs
  3. 3

    Get the most out of it

    • Read the Your First Suite tutorial on the documentation site to learn how to write specs
    • Check the FAQ on the documentation site for common questions
    • Review the release notes to confirm which environments a given release supports

Downloads

Strengths

  • The README states it has no dependency on browsers, the DOM, or other JavaScript frameworks
  • Tests the README lists as supported across Node and major browsers, with a published support table
  • Released under the permissive MIT License

Trade-offs

  • Some Node and Safari versions are supported only on a best-effort basis, per the README
  • The README does not describe every feature; detailed usage is in the external documentation site

How it compares

ProjectStarsTypeLevelUpdatedBest for
jasmine (this)15.8kLibrarybeginner28 days agoJavaScript developers who want a test framework with no extra dependencies
jest45.5kLibrarybeginner4 days agoJavaScript or TypeScript developers who want a testing setup that works with little configuration
mocha22.9kLibraryintermediate5 days agoJavaScript and Node.js developers who want automated tests for their code
vitest17.3kLibraryintermediate4 days agoJavaScript or TypeScript developers already using Vite
learn-go-with-tests23.9kLearning resourcebeginner11 days agoDevelopers who are new to Go and want a guided, hands-on tutorial
testify26.2kLibrarybeginner18 days agoGo developers who want more readable test assertions than the standard library provides

Stats synced from GitHub. The assessment above was drafted with AI from the project's README on 2026-10-29 and may miss recent changes — check the README before relying on a command. MIT licence: free to use, modify and distribute, including commercially, as long as you keep the copyright notice.