Jest Preview

Debug your Jest tests. Effortlessly.🛠🖼
Alternatives To Jest Preview
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Nodebestpractices89,600
4 days ago47cc-by-sa-4.0Dockerfile
:white_check_mark: The Node.js best practices list (May 2023)
Javascript Testing Best Practices21,424
a month ago59mitJavaScript
📗🌐 🚢 Comprehensive and exhaustive JavaScript & Node.js testing best practices (December 2022)
Enzyme19,98351,43526,2413 months ago54December 20, 2019292mitJavaScript
JavaScript Testing utilities for React
Ts Jest6,54928,80575,7303 days ago179September 24, 202258mitTypeScript
A Jest transformer with source map support that lets you use Jest to test projects written in TypeScript.
Jest Cheat Sheet4,869
5 months agocc0-1.0
Jest cheat sheet
Pepperoni App Kit4,640
3 months ago4March 24, 201767mitJavaScript
Pepperoni - React Native App Starter Kit for Android and iOS
Jest Dom3,9581,66211,3675 days ago49April 05, 202294mitJavaScript
:owl: Custom jest matchers to test the state of the DOM
Jest Image Snapshot3,5964115412 months ago40August 31, 202224apache-2.0JavaScript
✨ Jest matcher for image comparisons. Most commonly used for visual regression testing.
Nodejs Integration Tests Best Practices2,906
a month ago42JavaScript
✅ Beyond the basics of Node.js testing. Including a super-comprehensive best practices list and an example app (April 2022)
React Native Testing Library2,765414429 days ago43September 26, 202213mitTypeScript
🦉 Simple and complete React Native testing utilities that encourage good testing practices.
Alternatives To Jest Preview
Select To Compare


Alternative Project Comparisons
Readme

Jest Preview Logo

Jest Preview

Debug your Jest tests. Effortlessly.

Jest Preview Demo

Try Jest Preview Online. No downloads needed!

All Contributors

npm version npm total downloads total GitHub stars Mentioned in Awesome Jest

PRs Welcome Best of JS Discord

Try Jest Preview now

Using Vitest? Try Vitest Preview

Why jest-preview

When writing tests using Jest, we usually debug by reading the HTML code. Sometimes, the HTML is too complicated to visualize the UI in our head. jest-preview previews your Jest tests right in a browser, then you can see your actual UI visually, which helps you write and debug Jest tests faster.

jest-preview is initially designed to work with Jest and react-testing-library. The package is framework-agnostic, and you can use it with any frontend frameworks and testing libraries. For examples:

Features

How to use jest-preview in 2 lines of code

+import preview from 'jest-preview';

describe('App', () => {
  it('should work as expected', () => {
    render(<App />);
+    preview.debug();
  });
});

Or:

+import { debug } from 'jest-preview';

describe('App', () => {
  it('should work as expected', () => {
    render(<App />);
+    debug();
  });
});

You also need to start the Jest Preview Server by running the CLI jest-preview. Please continue to read Usage for the details instructions.

Feedback

Your feedback is very important to us. Please help jest-preview becomes a better software by submitting feedback here.

Installation

See the Installation Guide on Jest Preview official website.

Usage

See the Usage Guide on Jest Preview official website.

Advanced configurations

Jest Preview comes with Pre-configured transformation. However, in more advanced use cases where you have custom code transformation, check out the Code Transformation Guide.

Upcoming features

  • Support more css-in-js libraries.
  • Multiple previews.
  • You name it.

Support

Please file an issue, or add a new discussion if you encounter any issues.

You can also mention @JestPreview or @hung_dev on Twitter if you want to have some more discussions or suggestions.

We also have a Discord server: Discord

Contributing

We can't wait to see your contributions. See the Contribution Guide at CONTRIBUTING.md

Contributors

Thanks goes to these wonderful people (emoji key):

Hung Viet Nguyen
Hung Viet Nguyen

Truong Nguyen
Truong Nguyen

Viet Huu Doan
Viet Huu Doan

HarveyNguyen
HarveyNguyen

Matt Murphy
Matt Murphy

Traitanit Huangsri
Traitanit Huangsri

Thanh Son Nguyen
Thanh Son Nguyen

Minh Nguyen
Minh Nguyen

Kyle(Tnh V)
Kyle(Tnh V)

Makoto Tateno
Makoto Tateno

Abhishek Rawat
Abhishek Rawat

Huynh Duc Duy
Huynh Duc Duy

Nuno Casteleira
Nuno Casteleira

sundaycrafts
sundaycrafts

LunduoCai
LunduoCai

huyenuet
huyenuet

Bennett Dams
Bennett Dams

Steven Rosato
Steven Rosato

nhducit
nhducit

Benoit GRASSET
Benoit GRASSET

Sergii Kirianov
Sergii Kirianov

Kim, Harim
Kim, Harim

Lars Gyrup Brink Nielsen
Lars Gyrup Brink Nielsen

Mike Shi
Mike Shi

Veniamin Krol
Veniamin Krol

Ikko Ashimine
Ikko Ashimine

Pavel Shut
Pavel Shut

David Z Hao
David Z Hao

Rohitbels
Rohitbels

Rivaldi Putra
Rivaldi Putra

Long Zhao
Long Zhao

Justin Sun
Justin Sun

This project follows the all-contributors specification. Contributions of any kind are welcome!

Star history

Star History Chart

License

This is open source software

MIT

Sponsors

Your financial support helps the project alive and in a development mode. Make an impact by sponsoring us $1 via Open Collective.

  • Bronze Sponsor :
  • Silver Sponsor :
    • All of these above
    • Your requests will be prioritized.
  • Gold Sponsor :
    • All of these above
    • Let's discuss your benefits for this tier, please contact the author
  • Diamond Sponsor :
    • All of these above
    • Let's discuss your benefits for this tier, please contact the author

Bronze Sponsors

Past Sponsors

Popular Testing Projects
Popular Jest Projects
Popular Software Quality Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Javascript
Typescript
Reactjs
Css
Testing
Vue
Angular
Nextjs
Jest