# Jasmine: 5.1 out of 10

Reasonable, with limits. 9th of 10 in [Testing tools](https://elestia.ai/opensource/testing/index.md).

Jasmine is a long-running, zero-dependency BDD test framework for Node and browsers. It is still maintained and works, but Angular has switched its default to Vitest and peers like Vitest and Jest do more. Keep it where it already runs, and pick Vitest for new work.

**Best for:** Teams that keep existing Jasmine or Angular/Karma test suites, or that want a tiny, dependency-free runner for plain browser and Node tests.

## Scores

- **Overall: 5.1** (likely 4.1 to 6.2)
  - Claude Opus 5.5 (4.0): Jasmine is maintained, safe and stable, but Vitest does the same job with better TypeScript, watch, mocking and browser support, and Angular itself now defaults to Vitest. Its growth is far below the median, and recent major versions brought breaking changes. Keep it where it already runs, but start new projects with Vitest, or with Playwright for browser end-to-end tests.
  - GPT-6.2 Sol (6.2): Jasmine is a reasonable choice when a team values its familiar test API, needs a dependency-free core, or can reuse an existing suite. Vitest is the stronger default for new TypeScript and component projects because it integrates more of the workflow and has stronger adoption momentum. Jasmine's active maintenance supports continued use, while the version 7 compatibility break and limited evidence of fresh adoption lower its standing for new projects.
- **Needed by many: 6.6** (likely 5.6 to 7.7)
  - Claude Opus 5.5 (6.0): Unit testing is needed in most JS and TS projects, and Jasmine is a general runner for both Node and browsers. Its own take, a plain BDD runner with no build tooling, now serves mostly people with existing suites. That makes it narrower than the category.
  - GPT-6.2 Sol (7.2): Unit and component testing are common across JavaScript and TypeScript projects, and Jasmine works across frameworks in Node.js and browsers. Its main fit is testing code inside those environments. Teams that need to drive full browser journeys can get more of that workflow from Playwright.
- **Helps a lot: 5.9** (likely 4.9 to 7.0)
  - Claude Opus 5.5 (5.0): Jasmine is a correct, mature runner with built-in matchers, spies and clock mocking, and version 6 added a better HTML reporter. It lacks things Vitest and Jest ship: native TypeScript and ESM transforms, watch mode, snapshots, coverage and module mocking. Its types live in a separate DefinitelyTyped package. For most new projects a peer does the job clearly better.
  - GPT-6.2 Sol (6.8): Jasmine 7.0.2 has well-documented matchers and spies, a parallel Node runner, and interactive browser debugging. TypeScript declarations are separate, and module mocking depends on the environment. Vitest integrates TypeScript transforms, module mocks, snapshots, and browser component testing. Available migration timings compare whole stacks, and evidence on how reliably coding agents write Jasmine tests is sparse.
- **Holds up over time: 5.8** (likely 4.7 to 7.3)
  - Claude Opus 5.5 (5.0): The project is active: 136 commits and 12 releases in the last year, 4 open issues, and two named maintainers. The ecosystem is moving away from it. Angular 21 made Vitest the default and ships a Jasmine-to-Vitest schematic, and Karma is deprecated. Two major versions in 2026 (6 and 7) removed APIs, so upgrades take work.
  - GPT-6.2 Sol (6.5): The core recorded 136 commits and 12 GitHub releases in a year, with an npm patch in August and repository activity in November. Two active maintainers are listed, and one account handled the recent GitHub releases. The small open backlog gives limited evidence about response times or maintenance funding. The Karma and Zone.js compatibility break and Angular's move to Vitest reduce confidence in the older integration path.
- **Used widely: 6.0** (likely 4.9 to 7.0)
  - Claude Opus 5.5 (5.0): About 25.5M downloads in 4 weeks and 846k dependent repos show a large installed base, mostly older Angular projects. Its year-over-year ratio is 1.14, against a median of 4.1. Vitest grew about 10x and Playwright about 9x over the same period, so Jasmine is losing share of new projects fast. Many of its downloads come in through Angular and Karma setups, not direct choice.
  - GPT-6.2 Sol (6.9): Ecosyste.ms found 846,026 dependent repositories and 26,801 packages, indicating a large installed base. Some installs come through the Node runner or established Angular setups, and the counts do not show when teams chose Jasmine. Four-week downloads rose 14% from 22.3 million to 25.5 million, a 1.14× ratio well below the catalog median of 4.1× and behind Mocha, Jest, and Vitest. Jasmine has roughly 15,800 stars, while recent Bluesky attention was much lower than for those peers.
- **Vouched for: 5.1** (likely 4.0 to 6.7)
  - Claude Opus 5.5 (4.0): Jasmine was Angular's official test framework for years, and many companies still run it in production. That endorsement is fading: Angular now recommends Vitest. Current surveys barely track Jasmine, and there are few recent independent write-ups praising it.
  - GPT-6.2 Sol (6.1): Mozilla's PDF.js upgraded its unit and integration suites to Jasmine 7, and Angular still documents its Karma and Jasmine setup. Apache Fineract reports completing its move to Vitest, and Angular now uses Vitest by default. State of JavaScript 2025 recorded Jasmine as a write-in, so it provides little evidence about current satisfaction.
- **Safe: 7.2** (likely 6.1 to 8.2)
  - Claude Opus 5.5 (7.0): It has zero dependencies, no OSV advisories ever, and an MIT licence, so the attack surface is minimal. The OpenSSF Scorecard is only 4.2, with weak code review, no security policy, unsigned releases and broad token permissions. Publishing rests on a very small team.
  - GPT-6.2 Sol (7.3): Jasmine Core has zero runtime dependencies, a permissive MIT license, and no recorded OSV advisories. Its 4.2 OpenSSF Scorecard flags weak code review, branch protection, workflow token permissions, and release signing. npm lists three collaborators, and recent GitHub releases are concentrated under one account. The available records leave uncertainty about npm publishing safeguards and how the project would handle a serious report.

## Good

- It has zero runtime dependencies and no known advisories, so its attack surface is very small.
- Assertions, spies and async support are built in, and the same specs run in both Node and real browsers.
- It is still actively released: 12 releases and 136 commits in the last year, and few open issues.
- Its API is stable and well documented, so AI agents and Jest or Vitest users write it easily.

## Bad

- Angular, its biggest source of users, now defaults to Vitest and ships a schematic to migrate away from Jasmine.
- It has no built-in TypeScript transform, watch mode, snapshots, coverage or module mocking, which Vitest and Jest include.
- Types come separately from @types/jasmine, not from the package itself.
- Jasmine 6 and 7 removed private APIs, old boot files and reporters, which can break the integration with the deprecated Karma runner.

## The numbers

- Downloads, 4 weeks: 26M
- In a year: +14%
- GitHub stars: 16k
- Commits, 12 months: 136
- Last npm release: Aug 2026
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/jasmine/jasmine
- npm: https://www.npmjs.com/package/jasmine-core

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 21 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
