# atlassian/jest-in-case

Jest utility for creating variations of the same test

Repository: https://github.com/atlassian/jest-in-case
Canonical: https://ross.abutalabs.com/products/jest-in-case
Homepage: http://thejameskyle.com/jest-in-case.html
Language: JavaScript
License: MIT
License Family: permissive
Topics: jest, testing, test
Last push: 2025-05-29T06:20:42+00:00

## Health v2 (maintenance only)
Score: 43/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 24, release rhythm 35, longevity 100
- inputs: {"age_days": 3289, "days_push": 461, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1059, forks 20 (observed 2026-08-28T04:03:25.591598+00:00)

## What it is
A small Jest utility for generating multiple variations of the same test from a list of test cases. Each case provides named options passed to a shared tester function, with support for test.only and test.skip.

## Use cases
- run the same test logic against many input/output pairs in jest
- reduce boilerplate for repetitive unit tests
- create data-driven parameterized tests in jest
- easily focus or skip individual test case variations
- make test case tables easy to scan and extend

## When to choose
- you use Jest and have many near-identical tests differing only in inputs
- you want readable, scannable tables of test cases
- you need per-case only/skip control

## When to avoid
- you don't use Jest
- you need parameterized tests for other runners like Vitest or Mocha
- your tests vary substantially in structure rather than just data

## Facets
- artifact type: library
- maturity: stable
- function: testing
- domain: testing, developer-tools
- platform: -
- tags: jest, test-parameterization, unit-testing, data-driven-tests, nodejs, javascript

## Member repositories
- atlassian/jest-in-case (main) score 43

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:25.591598+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:57:06.099697+00:00, confidence not recorded.
  - readme: https://github.com/atlassian/jest-in-case (fetched 2026-08-28T04:03:25.591598+00:00, sha 27dd947d5c4a)
  - homepage: http://thejameskyle.com/jest-in-case.html (fetched 2026-08-29T12:58:57.466056+00:00, sha e3f1ce5e9e24)
- Data as of 2026-08-30T08:39:29.467469+00:00.
