Skip to main content
Jasmine logo

Jasmine

Simple JavaScript testing framework

Jasmine is a behavior-driven development testing framework for JavaScript that doesn't depend on browsers, DOM, or other frameworks. It has a clean syntax and runs in Node.js and browsers with built-in assertions and spies.

15.7k
GitHub Stars
free
Pricing
No
Self-Hostable

Features

  • BDD-style syntax
  • Built-in assertions
  • Built-in spies
  • Browser and Node.js support
  • No dependencies
  • Async testing support
  • Before/after hooks
  • Focused and excluded tests
  • Custom matchers
  • Standalone or integrated

Pros

  • + Zero dependencies
  • + Built-in assertions and spies
  • + Clean BDD syntax
  • + Framework agnostic
  • + Easy to get started

Cons

  • Less modern than Jest/Vitest
  • Smaller plugin ecosystem
  • Angular-centric perception
  • Less active development