# nvh95/jest-preview

Debug your Jest tests. Effortlessly.🛠🖼

Repository: https://github.com/nvh95/jest-preview
Canonical: https://ross.abutalabs.com/products/jest-preview
Homepage: https://www.jest-preview.com
Language: TypeScript
License: MIT
License Family: permissive
Topics: jest, frontend, testing, productivity, debug, javascript, test, react, css, jest-view-html, nextjs, svelte, angular, vue
Last push: 2026-04-25T15:08:05+00:00

## Health v2 (maintenance only)
Score: 68/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 79, release rhythm 37, longevity 100
- inputs: {"age_days": 1626, "days_push": 130, "days_rel": 262, "gap_med": 97, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2393, forks 81 (observed 2026-08-28T04:06:43.429636+00:00)

## What it is
Jest Preview is an npm library and CLI that renders the DOM output of Jest tests in a browser so developers can visually debug UI tests instead of reading raw HTML. It is framework-agnostic and supports CSS, CSS-in-JS, images, and auto-reload via preview.debug().

## Use cases
- visually debug jest ui tests in a browser
- preview rendered html from react testing library tests
- stop reading cryptic html output when debugging frontend tests
- see css and styled-components applied in jest test output
- auto reload browser preview while writing jest tests
- debug nextjs or vue component tests visually

## When to choose
- you write Jest or Vitest tests with a rendered DOM and struggle to visualize the UI from HTML
- you use CSS, CSS modules, or CSS-in-JS and want to verify styling in tests
- you want a fast, two-line integration to improve frontend test debugging

## When to avoid
- you only run node/backend tests with no DOM output
- you use a test runner other than Jest or Vitest without DOM rendering
- you need full end-to-end browser automation rather than a static preview

## Facets
- artifact type: library
- maturity: active
- function: testing, e2e-testing, developer-tools, cli
- domain: testing, frontend, developer-tools, web-development
- platform: browser, cli, cross-platform
- tags: jest, vitest, test-debugging, ui-preview, react-testing-library, css-in-js, developer-experience, nodejs

## Member repositories
- nvh95/jest-preview (main) score 68

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:43.429636+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-30T02:34:26.440020+00:00, confidence not recorded.
  - readme: https://github.com/nvh95/jest-preview (fetched 2026-08-28T04:06:43.429636+00:00, sha 7d2169cfa0f9)
  - homepage: https://www.jest-preview.com (fetched 2026-08-29T10:15:24.715331+00:00, sha ec3702567964)
  - site_page: https://www.jest-preview.com/docs/getting-started/intro (fetched 2026-08-29T10:15:24.724555+00:00, sha 4846b57a844a)
  - site_page: https://www.jest-preview.com/docs/api/debug (fetched 2026-08-29T10:15:24.726550+00:00, sha d75f488e94f1)
  - registry_npm: https://registry.npmjs.org/jest-preview (fetched 2026-08-29T10:15:24.728418+00:00, sha ded7124e5e10)
- Data as of 2026-08-30T08:39:29.467469+00:00.
