Skip to content
SPECIFICTION
Get listed

Jest vs Karma

Jest

jestjs.io

Karma

karma-runner.github.io

Side by side

FigureJestKarma
Price fromFreeFree
Free planYesYes
Free trial——
Open source——
Web—Yes
Windows—Yes
macOS—Yes
Linux—Yes
iOS—Yes
Android—Yes
Self-hostedYesYes
Plans published11
Spec score · JavaScript Testing Frameworks7.7 (#8)8.2 (#3)
PurposeJest is a JavaScript testing framework focused on simplicity and correctness.Karma runs JavaScript tests in multiple real browsers and reports results to developers.
SupportThe site points users to Stack Overflow, Reactiflux, and Twitter for community help.The project directs questions to its mailing list or Gitter and says the issue tracker is for bug reports and feature discussions.

Plans

Jest

  • JestFree

Jest pricing →

Karma

  • KarmaFree

Karma pricing →

In their own words

Jest

Jest is a free, self-hosted JavaScript testing framework focused on checking correctness. It supports projects using Babel, TypeScript, Node, React, Angular, Vue and other technologies, and aims to run without configuration on most JavaScript projects. Snapshot tests compare rendered output with a saved reference. Tests run in separate processes for parallel execution, while the --coverage flag can collect coverage, including from files without tests. Mock functions and a custom import resolver support replacing objects and observing calls. Interactive watch mode reruns tests related to changed files. Installation guidance covers npm, Yarn, pnpm and Bun. Documentation describes webpack and Parcel use, but states that Vite is unsupported because of plugin-system incompatibilities. With Babel handling TypeScript, Jest transpiles tests without type-checking them during execution. A free plan is listed at free, with no paid plans or usage limits stated.

Visit jestjs.io

Karma

Karma is a JavaScript test runner that starts a web server, connects browsers, runs tests, and reports results to developers. It can watch configured files and rerun tests when they change. Plugins connect frameworks such as Jasmine, Mocha, and QUnit, alongside preprocessors, reporters, and browser launchers. Documented launchers include Chrome, Firefox, Safari, PhantomJS, JSDOM, Opera, Internet Explorer, SauceLabs, and BrowserStack. A browser on another device on the same network, including a phone or tablet, can be captured by visiting the Karma server URL. Karma runs on Node.js and is distributed as an npm package; its installation guide recommends installing it locally in a project. Documentation includes integration guides for Travis CI, Jenkins, and Semaphore CI. The project describes Karma as primarily designed for low-level unit testing and points to Protractor for high-level testing. Karma is free and MIT-licensed, but deprecated: it accepts no new features or general bug fixes. Critical security fixes continue until 12 months after Angular CLI’s Web Test Runner support is marked stable.

Visit karma-runner.github.io