Awesome Jest

优秀的 Jest 包和资源。(Awesome Jest packages and resources)

Github stars Tracking Chart

Awesome Jest Awesome

An awesome list of Jest packages and resources

Contents

Packages

Matchers

IDE

  • vscode-jest Works out of the box Jest based testing in VS Code.
  • wallaby The pinnacle of the idea of a test runner integrated into an editor.
  • coc-jest Jest plugin for coc.nvim

Linting

Runners

Reporters

Results Processors

Environments

Snapshot

  • snapshot-diff Takes two values, and return their difference as a string, ready to be snapshotted with toMatchSnapshot(). Especially helpful when testing the difference between different React component states.
  • jest-snapshots-svg Take a React component tree, and render it into an SVG.
  • jest-image-snapshot Take a snapshot test of an image buffer, and catch when the image changes over a threshold. Commonly used for visual regression testing.
  • enzyme-to-json Convert Enzyme wrappers to a format compatible with Jest snapshot testing.
  • jest-styled-components A set of utilities for testing Styled Components with Jest.
  • jest-img-snapshot Image snapshot comparison using pixelmatch with all Jest's snapshot goodies out of the box.
  • jest-file-snapshot Write snapshots to a separate file instead of the default snapshot file used by Jest.
  • Differencify Visual regression testing tool using Jest and Puppeteer to do Image snapshot comparison.
  • StoryShots StoryShots adds automatic Jest Snapshot Testing for Storybook.
  • jest-large-snapshot-warning Add warnings to large snapshots.
  • jest-serializer-react-helmet Include React Helmet data in component snapshots.
  • jest-serializer-json-ld-script Serializes JSON+LD elements as JavaScript objects.
  • jest-emotion Include Emotion styles in component snapshots.
  • jest-serializer-xml Format XML documents to better visualize in Snapshots.

Migration

  • jest-codemods Makes it easy to migrate from other test runner and frameworks to Jest.

Library extensions

Mocks

Watch plugins

Processor

Presets

  • jest-dynamodb Jest preset for working with DynamoDB.
  • jest-mongodb Jest preset for working with MongoDB.
  • jest-puppeteer A Jest preset that enables a ready-to-use environment to write integration tests using Puppeteer.
  • jest-preset-gatsby Jest preset to streamline unit testing a Gatsby project.

Resources

Contribute

Contributions welcome! Read the contribution guidelines.

License

MIT

Main metrics

Overview
Name With Ownerjest-community/awesome-jest
Primary Language
Program language (Language Count: 0)
PlatformWeb browsers
License:MIT License
所有者活动
Created At2018-02-27 14:51:57
Pushed At2024-06-24 17:06:25
Last Commit At
Release Count0
用户参与
Stargazers Count1.5k
Watchers Count19
Fork Count118
Commits Count172
Has Issues Enabled
Issues Count11
Issue Open Count0
Pull Requests Count121
Pull Requests Open Count3
Pull Requests Close Count4
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private