jestjs/jest
Delightful JavaScript Testing.
Build with Backblaze B2
SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.
Loading star history...
Where it stands
Rank, growth pace and release cadence relative to everything GStars tracks.
3 releases in the last 90 days, the latest 53 days ago, with 426 contributors on GitHub.
Peaked at #47 in the weekly ranking the week of Mar 15, its best in the past year.
Use Cases & Benefits
- Provides a comprehensive JavaScript testing framework with built-in support for snapshot testing and fast interactive watch mode.
- Delivers instant feedback by running only tests related to changed files, streamlining the development and debugging process.
- Use for writing and running unit tests in JavaScript or TypeScript projects to ensure code correctness and prevent regressions.
- Use for capturing and comparing snapshots of UI components or large objects to detect unintended changes over time.
- Use for integrating testing into continuous integration pipelines with minimal configuration for projects using Babel, webpack, or Parcel.
Should you depend on it?
License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.
License
MIT
Permissive: commercial use, modification and redistribution are allowed with attribution.
Community files
- README: present
- Contributing guide: present
- Code of conduct: present
Watch-outs
No watch-outs from GStars' checks.
General guidance from repository metadata, not legal advice. How we score
From the README
👩🏻💻 Developer Ready: A comprehensive JavaScript testing solution. Works out of the box for most JavaScript projects.
🏃🏽 Instant Feedback: Fast, interactive watch mode only runs test files related to changed files.
📸 Snapshot Testing: Capture snapshots of large objects to simplify testing and to analyze how they change over time.
See more on jestjs.io
Install Jest using
yarn:Note: Jest documentation uses
yarncommands, butnpmwill also work. You can compareyarnandnpmcommands in the yarn docs, here.Let's get started by writing a test for a hypothetical function that adds two numbers. First, create a
sum.jsfile:Then, create a file named
sum.test.js. This will contain our actual test:Add the following section to your
package.json:Finally, run
yarn testornpm testand Jest will print this message:You just successfully wrote your first test using Jest!
This test used
expectandtoBeto test that two values were exactly identical. To learn about the other things that Jest can test, see Using Matchers.
Daily snapshots
Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots
Forks
6.7K-7
Open issues
267+83
Compared with peers in Testing
Fastest-growing repositories GStars tracks in this cohort for the week of Nov 8, by 7-day star growth
| Repository | Stars | +7d | Health | Last release |
|---|---|---|---|---|
| D4Vinci/Scrapling | 101.1K | +6.3K | 75 | 6 days ago |
| jestjs/jest | 45.5K | — | 75 | 53 days ago |
| nrwl/nx | 29.4K | — | 65 | 3 days ago |
| stretchr/testify | 26.2K | — | 56 | 78 days ago |
| gildas-lormeau/SingleFile | 22.9K | — | 35 | today |
| appium/appium | 22.2K | — | 60 | 1 day ago |
| Category median | 26.2K | — | 60 | — |
Discover Repositories
Search across tracked repositories by name or description