Skip to content
J

jest-preview

Debug your Jest tests. Effortlessly

by nvh95Open source

#615in UI Libraries
0In stores

Description

Jest Preview is a debugging tool that shows your Jest test output as a real page in a browser. When you write tests with Jest and react-test…

Highlights

  • Previews Jest test HTML in a browser
  • Auto-reloads the browser on debug
  • Supports CSS, CSS-in-JS, CSS Modules and Sass
  • Works with React, Vue, Svelte and Angular
  • Try it online without downloads

Ratings & Reviews

No ratings yet

Be the first to rate jest-preview.

People also visit

J

Jest Preview

Debug your Jest tests. Effortlessly

Developer Tools
Launch
V

Vitest Preview

Debug your Vitest tests. Effortlessly

Developer Tools
Launch
T

ts-jest

A Jest transformer with source map support

UI Libraries
Launch
J

Jest

Delightful JavaScript Testing

Developer Tools
Launch
S

swc-angular

This is a set of Angular presets that enable you to use SWC

UI Libraries
Launch
V

vitest

Vitest API and config reference (Jest-compatible)

AI Skills
Get

jest-preview FAQ

What is Jest Preview?

A tool that shows your Jest test UI in a browser, so you can see the rendered page instead of reading HTML.

How do I set it up?

Add it in two lines of code in your tests, and start the Jest Preview server with its CLI.

Which frameworks does it work with?

It works with Jest and react-testing-library, and the README includes examples for Vite React, Create React App, Next.js, Svelte, Angular and Vue.

Does it support styles?

Yes. It supports directly imported CSS, styled-components, Emotion, global CSS, CSS Modules and Sass, and it can show images.

Do I need to install anything to try it?

No. The README links an online version to try without downloads.

What are the best jest-preview alternatives?

Popular alternatives to jest-preview include ts-jest, swc-angular and jest-preset-angular. See all jest-preview alternatives

Developer Stuff

Badges