Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Beginner-Friendly Projects
  3. Jasmine

Jasmine

MITJavaScriptv6.2.0

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

Visit WebsiteGitHubGitHub
15.8k stars2.2k forks0 contributors

What is Jasmine?

Jasmine is a behavior-driven development (BDD) testing framework for JavaScript. It allows developers to write structured, readable tests using a descriptive syntax and runs in both browser and Node.js environments. It solves the problem of testing JavaScript code consistently across different platforms without external dependencies.

Target Audience

JavaScript developers working on web applications, Node.js projects, or any environment where JavaScript runs, who need a reliable and framework-agnostic testing solution.

Value Proposition

Developers choose Jasmine for its simplicity, lack of external dependencies, and cross-platform support, making it a versatile and easy-to-adopt testing framework for a wide range of JavaScript projects.

Overview

Simple JavaScript testing framework for browsers and node.js

Use Cases

Best For

  • Writing unit tests for JavaScript libraries and applications
  • Testing Node.js backend services and APIs
  • Running tests in multiple browsers without framework lock-in
  • Adopting behavior-driven development practices in JavaScript projects
  • Testing JavaScript code in environments without a DOM
  • Projects requiring a lightweight and dependency-free testing framework

Not Ideal For

  • Projects needing built-in snapshot testing or parallel execution without additional plugins
  • Teams deeply integrated with modern UI frameworks like React or Vue that prefer specialized testing utilities
  • Applications requiring extensive mocking capabilities or advanced reporting features out-of-the-box
  • Environments where TypeScript-first testing with strict type checking in the runner is a priority

Pros & Cons

Pros

Clean BDD Syntax

Uses descriptive functions like `describe`, `it`, and `expect` to structure tests in a readable, behavior-driven style, making specs intuitive and maintainable.

No External Dependencies

Does not rely on browsers, DOM, or JavaScript frameworks, ensuring it runs in any JavaScript environment, from Node.js to browsers, without added complexity.

Broad Cross-Platform Support

Runs in popular browsers (Chrome, Firefox, Safari, Edge) and Node.js versions 20, 22, 24, with support for evergreen browsers, as detailed in the README's environment table.

Comprehensive Documentation

Includes tutorials, guides, and FAQs on the documentation site, helping users quickly get started and write effective specs without guesswork.

Cons

Limited Modern Features

Lacks built-in support for snapshot testing, parallel execution, or advanced mocking common in frameworks like Jest, requiring additional setup or plugins for these needs.

Installation Complexity

The README notes several different installation methods depending on the environment, which can be confusing compared to more opinionated, streamlined setups in other frameworks.

Smaller Ecosystem

Has a smaller plugin and community ecosystem than more popular frameworks, limiting ready-made integrations and solutions for niche testing scenarios.

Frequently Asked Questions

Quick Stats

Stars15,836
Forks2,244
Contributors0
Open Issues8
Last commit6 days ago
CreatedSince 2008

Tags

#test-runner#unit-testing#tdd#bdd#browser-testing#nodejs#testing#jasmine#javascript#testing-framework

Built With

J
JavaScript
N
Node.js

Links & Resources

Website

Included in

Beginner-Friendly Projects84.2kJavaScript34.9k
Auto-fetched 1 day ago

Related Projects

freeCodeCampfreeCodeCamp

freeCodeCamp.org's open-source codebase and curriculum. Learn math, programming, and computer science for free.

Stars443,389
Forks44,361
Last commit1 day ago
VueVue

This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core

Stars209,800
Forks33,842
Last commit1 year ago
Next.jsNext.js

The React Framework

Stars139,092
Forks30,951
Last commit2 days ago
electronelectron

:electron: Build cross-platform desktop apps with JavaScript, HTML, and CSS

Stars120,999
Forks17,149
Last commit1 day ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub