{"repo":"algolia/expect-jsx","free":true,"listed":false,"github":"https://github.com/algolia/expect-jsx","clone":"git clone https://github.com/algolia/expect-jsx.git","description":"✅ toEqualJSX for expect assertion library","language":"JavaScript","stars":407,"topics":["react","jsx","expect","jest"],"license":"MIT","category":"ui-components","readme_excerpt":"Note from maintainers Since Jest supports snapshot testing, we recommend you to use that instead of expect-jsx . expect-jsx is no more compatible with recent Jest versions (22), it can be made compatible so feel free to open a PR if so. expect-jsx [![Version][version-svg]][package-url] [![Build Status][travis-svg]][travis-url] [![License][license-image]][license-url] [![Downloads][downloads-image]][downloads-url] [travis-svg]: https://img.shields.io/travis/algolia/expect-jsx/master.svg?style=flat-square [travis-url]: https://travis-ci.org/algolia/expect-jsx [license-image]: http://img.shields.io/badge/license-MIT-green.svg?style=flat-square [license-url]: LICENSE [downloads-image]: https://img.shields.io/npm/dm/expect-jsx.svg?style=flat-square [downloads-url]: http://npm-stat.com/charts.html?package=expect-jsx [version-svg]: https://img.shields.io/npm/v/expect-jsx.svg?style=flat-square [package-url]: https://npmjs.org/package/expect-jsx [screenshot]: ./screenshot.png toEqualJSX for mjackson/expect. It uses algolia/react-element-to-jsx-string in the background to turn React elements into formatted strings. Table of Contents generated with DocToc - Setup - API - Usage - A note about functions - Environment requirements - Test - Build - Release - Similar projects - Thanks Setup You will most probably use this plugin as a development dependency. API - expect(ReactComponent JSX).toEqualJSX(ReactComponent JSX) - expect(ReactComponent JSX).toNotEqualJSX(ReactComponent JSX) - expect(","default_branch":null,"files":null,"tree":[],"storefront":"/r/algolia","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/algolia/expect-jsx/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}