Jasmine
Reasonable, with limits. 9th of 10 testing tools.
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
Overall5.1
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 4.0, likely 3.0 to 5.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.
- peers Vitest downloads: Vitest went from 72M to 723M downloads a year apart; Jasmine from 22M to 25.5M
- angular.dev/guide/testing/migrating-to-vitest: Official migration path away from Jasmine
- github releasesLastYear: Still actively released
GPT-6.2 Sol: 6.2, likely 5.1 to 7.3
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.
- jasmine.github.io/upgrade-guides/7.0: Documents migration paths and the Karma and Zone.js compatibility break.
- vitest.dev/guide/features.html: Shows the more integrated TypeScript and component testing workflow.
- angular.dev/guide/testing/migrating-to-vitest: A major Jasmine integration now defaults to Vitest.
- github commitsLastYear, npm dependencies, npm downloadsLast4Weeks, npm downloadsSame4WeeksYearAgo, peers: The core remains active and dependency-free, while downloads grew far more slowly than Vitest's.
Needed by many6.6
How many developers need a tool for this job?
Claude Opus 5.5: 6.0, likely 5.0 to 7.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.
- github description: Framework for both browsers and Node.js
- unpkg.com/jasmine-core@7.0.2/README.md: Supports Node 20 to 26 and evergreen browsers
GPT-6.2 Sol: 7.2, likely 6.2 to 8.3
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.
- 2025.stateofjs.com/en-US/libraries/testing: Survey covers a wide range of testing workflows and tools.
- jasmine.github.io/pages/docs_home.html: Documents Node, browser, standalone, React, and TypeScript setups.
- playwright.dev/docs/intro: Playwright covers end-to-end browser workflows with integrated automation.
Helps a lot5.9
How well does it do the job for those who need it?
Claude Opus 5.5: 5.0, likely 4.0 to 6.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.
- github.com/jasmine/jasmine/blob/main/release_notes/7.0.0.md: 7.0 changes the boot and globals setup, blocks monkey patching, and adds a notApplicable status
- npm hasTypes: No bundled types
- dev.to/codewithrajat/migrating-from-jasminekarma-to-vitest-in-angular-21-a-step-by-step-guide-developers-complete-3g9l: Jasmine syntax maps closely to Vitest, so moving off it is mostly mechanical
- hackerNews top: User complaint that Angular Jasmine tests are hard to maintain
GPT-6.2 Sol: 6.8, likely 5.7 to 7.9
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.
- jasmine.github.io/pages/docs_home.html: Versioned API docs, custom matchers, reporters, and parallel execution.
- jasmine.github.io/setup/browser.html: Documents interactive and headless browser runs.
- npm hasTypes: The core package ships without TypeScript declarations.
- jasmine.github.io/tutorials/module_mocking: Module mocking requires environment-specific setup.
- vitest.dev/guide/features.html: Documents integrated TypeScript, snapshots, and browser component testing.
- mertozen.com/en/blog/karma-jasmine-vitest-gecis-angular-12-22-test-degisenler: Independent small-suite comparison found similar command times for Jasmine 6 with Karma and Vitest.
Holds up over time5.8
Will it still be a good choice in two years?
Claude Opus 5.5: 5.0, likely 4.0 to 7.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.
- github commitsLastYear / releasesLastYear: 136 commits and 12 releases in the last year
- unpkg.com/jasmine-core@7.0.2/README.md: Two active maintainers
- angular.dev/guide/testing/migrating-to-vitest: Angular CLI defaults to Vitest and offers a Jasmine migration
- jasmine.github.io/upgrade-guides/6.0: jasmine-core 7.0 drops deprecated APIs that karma-jasmine 5.1 depends on
GPT-6.2 Sol: 6.5, likely 5.3 to 7.6
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.
- github commitsLastYear, releasesLastYear, pushedAt, openIssues, openPullRequests: 136 commits, 12 releases, November activity, four open issues, and three open pull requests.
- github.com/jasmine/jasmine/releases: Recent GitHub releases are attributed to one account.
- github.com/jasmine/jasmine: Lists two current maintainers.
- github.com/jasmine/jasmine/blob/v7.0.2/release_notes/7.0.2.md: The current patch fixes resetting Jasmine in Node.
- jasmine.github.io/upgrade-guides/7.0: Version 7 breaks the existing Karma adapter and Zone.js integration.
- angular.dev/guide/testing/migrating-to-vitest: Vitest is the CLI default for new Angular projects.
Used widely6.0
How many use it, and is that growing?
Claude Opus 5.5: 5.0, likely 4.0 to 6.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.
- npm downloadsLast4Weeks / downloadsSame4WeeksYearAgo: 25.5M vs 22.3M, ratio 1.14, far below the 4.1 median
- dependents.repos: 846k dependent repos, a large legacy base
- bluesky posts: 1 post, against 81 for Vitest
- 2025.stateofjs.com/en-US/libraries/testing: Jasmine appears only under Other Testing Tools, down one place
GPT-6.2 Sol: 6.9, likely 5.7 to 8.0
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.
- dependents repos, packages: Ecosyste.ms found 846,026 repositories and 26,801 packages.
- npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo, medianDownloadsRatio: Downloads grew 1.14× against the 4.1× catalog median.
- github stars, bluesky posts, peers: 15,812 stars and one Bluesky post, versus 10 for Mocha, 16 for Jest, and 81 for Vitest.
- jasmine.github.io/pages/faq.html: The Node runner automatically installs jasmine-core.
- angular.dev/guide/testing/karma: Angular has a documented Karma and Jasmine setup alongside its new default.
Vouched for5.1
Who stands behind it being good?
Claude Opus 5.5: 4.0, likely 3.0 to 6.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.
- angular.dev/guide/testing/migrating-to-vitest: Angular's main endorsement has moved to Vitest
- 2025.stateofjs.com/en-US/libraries/testing: Only a write-in mention in State of JS 2025
- dev.to/this-is-angular/ng-news-2543-vitest-angulars-new-testing-framework-1d5a: Angular community reports the switch to Vitest
GPT-6.2 Sol: 6.1, likely 4.9 to 7.3
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.
- bugzilla.mozilla.org/show_bug.cgi?id=2068565: Mozilla records the PDF.js upgrade to Jasmine 7 and the changes it required.
- angular.dev/guide/testing/karma: Angular still supports the Karma setup and defaults new projects to Vitest.
- apache.googlesource.com/fineract-backoffice-ui/%2B/HEAD/DOCS/adr/0004-vitest-migration.md: Fineract records its completed migration from Karma and Jasmine.
- 2025.stateofjs.com/en-US/libraries/testing: Jasmine received 36 write-ins outside the main ratings.
Safe7.2
How safe is it to depend on?
Claude Opus 5.5: 7.0, likely 6.0 to 8.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.
- npm dependencies: 0 runtime dependencies
- advisories total: No known advisories
- scorecard score: 4.2; Code-Review 1, Security-Policy 0, Signed-Releases 0
- npm license: MIT
GPT-6.2 Sol: 7.3, likely 6.1 to 8.4
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.
- npm dependencies, license: Zero runtime dependencies and an MIT license.
- advisories total, last24Months: OSV records zero advisories.
- scorecard score, checks: 4.2 overall, with low review, branch protection, token permissions, and signing scores.
- github.com/jasmine/jasmine/security/policy: GitHub detects no published security policy.
- npmjs.com/package/jasmine-core: npm lists three package collaborators.
- github.com/jasmine/jasmine/releases: One account published the recent GitHub releases.
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
- npm downloads, 4 weeks
- 26M +14% in a year
- GitHub stars
- 16k
- Commits, 12 months
- 136
- npm version
- 7.0.2 Aug 2026
- Versions, 12 months
- 9
- Advisories, 24 months
- 0 of 0 ever
- OpenSSF Scorecard
- 4.2 out of 10, Nov 2026
- Licence
- MIT
Read on 21 November 2026 from GitHub (jasmine/jasmine), npm (jasmine-core), OSV and the OpenSSF Scorecard.
Testing tools
- 8.9Playwright
- 8.9Vitest
- 7.8React Testing Library
- 6.7Jest
- 6.6WebdriverIO
- 6.4Cypress
- 6.0Mocha
- 5.4AVA
- 5.1Jasmine
- 5.0Node Tap