16.12.0 • Published 8 hours ago

react-test-renderer v16.12.0

Weekly downloads
-
License
MIT
Repository
github
Last release
8 hours ago

react-test-renderer

This package provides an experimental React renderer that can be used to render React components to pure JavaScript objects, without depending on the DOM or a native mobile environment.

Essentially, this package makes it easy to grab a snapshot of the "DOM tree" rendered by a React DOM or React Native component without using a browser or jsdom.

Usage:

const ReactTestRenderer = require('react-test-renderer');

const renderer = ReactTestRenderer.create(
  <Link page="https://www.facebook.com/">Facebook</Link>
);

console.log(renderer.toJSON());
// { type: 'a',
//   props: { href: 'https://www.facebook.com/' },
//   children: [ 'Facebook' ] }

You can also use Jest's snapshot testing feature to automatically save a copy of the JSON tree to a file and check in your tests that it hasn't changed: https://facebook.github.io/jest/blog/2016/07/27/jest-14.html.

enzyme-adapter-react-16neutrino-preset-pragmatic-reactneutrino-preset-inflpatchyj-npm-react-devparse-nested-componentsmt-ui-componentsmt-c-componentsmoom-snakeproject-pillow-componentsqa-rqa-releasepotluckyum-sharednectarinemozaik-ext-imagemy-dummy-appmy-demo-common-appmy-first-react-package-webonisemy-common-appnblockformoezy-scriptspoc-widget1pawjsoutrun-renderer-3domni-common-uiola-clioplus-social-job-network-components-libopenmrs-react-scripts-examplenpm-yetnetdata-collectors-landscapenobuildernobuilder-jsonquiq-scriptsrahrahul-components-afrozreact-ui-testreactackle-test-utilsreact_book_expressreact-test-casesreact-test-components-examplereact-titledreact-unitreact-unit-test-generatorreact-use-css-breakpointsreact-v2react-tabtabreact-track-polyfillreact-web-formoreact-web-native-sketchreason-hooks-testing-libraryreact-test-render-fnsreact-virtualized-pivotreact-vis-custom-sunburstreact-box-authreact-forms-systemreact-catalogreact-drag-list-componentrca-precursorreact-conformreact-context-oidcreact-components-liviureact-electron-menuraphe-reactreact-angular-componentreact-cosmos-telescopereact-redux-light-starterreact-redux-package-gwreact-storefront-componentsreact-native-ok-sdkreact-native-template-vifereact-palmreact-resizer-modulereact-stripe-terminalreact-aad-msal-jfmreact-bilibilistyle-paginationreact-blazeuireact-base-starter-projectreact-jest-snapshot-helperreact-rest-clientreact-simple-fresh-gridreact-svg-flexboxreact-swear-catcherreact-native-spinner-buttonreact-network-status-notifierreact-scripts-softreact-scripts-fereact-snakkereact-snapperreact-rule-wrapperreact-sotefront-components-testreact-primitives-google-static-mapreact-primitives-mapquest-static-mapreact-sketch-bookspectrum-sharingstyled-grid-responsivestudy-managerstorybook-addon-apollo-graphqlsubschema-native-dev-supportreact-native-cometchat-calling-componentreact-horcruxreact-material-site
0.0.0-5de5b6150

8 hours ago

0.0.0-241c4467e

23 days ago

0.0.0-57333ca33

23 days ago

0.0.0-f42431abe

2 months ago

16.12.0

3 months ago

0.0.0-b53ea6ca0

3 months ago

0.0.0-38dd17ab9

4 months ago

0.0.0-f6b8d31a7

4 months ago

16.11.0

4 months ago

0.0.0-5faf377df

4 months ago

0.0.0-1022ee0ec

4 months ago

0.0.0-7082d5a2d

4 months ago

16.10.2

5 months ago

0.0.0-4ab6305f6

5 months ago

16.10.1

5 months ago

0.0.0-d346d9208

5 months ago

16.10.0

5 months ago

0.0.0-3694a3b5e

5 months ago

0.0.0-b4b8a349a

5 months ago

0.0.0-45b6443c9

5 months ago

0.0.0-8d5403877

7 months ago

16.9.0

7 months ago

16.9.0-rc.0

7 months ago

0.0.0-a1dbb852c

7 months ago

0.0.0-375616788

7 months ago

0.0.0-db3ae32b8

7 months ago

0.0.0-bbd21066e

7 months ago

0.0.0-b4178af81

7 months ago

0.0.0-424099da6

7 months ago

0.0.0-9f395904c

7 months ago

0.0.0-fa1e8df11

9 months ago

0.0.0-50b50c26f

9 months ago

0.0.0-6da04b5d8

10 months ago

0.0.0-fb28e9048

10 months ago

0.0.0-4221565e1

10 months ago

0.0.0-9ebe1768a

10 months ago

0.0.0-a9eff329c

11 months ago

16.9.0-alpha.0

11 months ago

0.0.0-c35e37aab

11 months ago

16.8.6

11 months ago

0.0.0-297165f1e

11 months ago

16.8.5

11 months ago

0.0.0-f9e41e3a5

11 months ago

0.0.0-679402a66

11 months ago

16.8.4

12 months ago

0.0.0-741aa17a3

12 months ago

16.8.3

12 months ago

0.0.0-29b7b775f

12 months ago

0.0.0-b668168d4

1 year ago

16.8.2

1 year ago

0.0.0-dfabb77a9

1 year ago

0.0.0-0e4135e8c

1 year ago

16.8.1

1 year ago

0.0.0-11565a207

1 year ago

16.8.0

1 year ago

0.0.0-d1326f466

1 year ago

0.0.0-267ed9814

1 year ago

0.0.0-fec00a869

1 year ago

16.8.0-alpha.1

1 year ago

0.0.0-3e15b1c69

1 year ago

16.8.0-alpha.0

1 year ago

0.0.0-f22621f88

1 year ago

16.7.0

1 year ago

0.0.0-4a1072194

1 year ago

0.0.0-7325ebe4d

1 year ago

0.0.0-c5b7d26c7

1 year ago

0.0.0-88ada9819

1 year ago

0.0.0-ed4c4a51c

1 year ago

16.7.0-alpha.2

1 year ago

16.7.0-alpha.1

1 year ago

16.6.3

1 year ago

16.6.2

1 year ago

16.6.1

1 year ago

16.7.0-alpha.0

1 year ago

16.6.0

1 year ago

16.5.2

1 year ago

16.6.0-alpha.0

1 year ago

16.5.1

1 year ago

16.5.0

1 year ago

16.4.2

2 years ago

16.4.1

2 years ago

16.4.0

2 years ago

16.3.2

2 years ago

16.3.1

2 years ago

16.3.0

2 years ago

16.3.0-rc.0

2 years ago

16.3.0-alpha.3

2 years ago

16.3.0-alpha.2

2 years ago

16.3.0-alpha.1

2 years ago

16.3.0-alpha.0

2 years ago

16.2.0

2 years ago

16.1.1

2 years ago

16.1.0

2 years ago

16.1.0-rc

2 years ago

16.1.0-beta.1

2 years ago

16.1.0-beta

2 years ago

16.0.0

2 years ago

15.6.2

2 years ago

16.0.0-rc.3

2 years ago

16.0.0-rc.2

2 years ago

16.0.0-rc.1

2 years ago

16.0.0-beta.5

3 years ago

16.0.0-beta.4

3 years ago

16.0.0-beta.3

3 years ago

16.0.0-beta.2

3 years ago

16.0.0-beta.1

3 years ago

15.6.1

3 years ago

16.0.0-alpha.13

3 years ago

15.6.0-rc.1

3 years ago

16.0.0-alpha.12

3 years ago

16.0.0-alpha.11

3 years ago

16.0.0-alpha.10

3 years ago

16.0.0-alpha.9

3 years ago

15.5.4

3 years ago

15.5.3

3 years ago

15.5.2

3 years ago

15.5.1

3 years ago

15.5.0

3 years ago

16.0.0-alpha.8

3 years ago

15.5.0-rc.2

3 years ago

16.0.0-alpha.7

3 years ago

15.5.0-rc.1

3 years ago

16.0.0-alpha.6

3 years ago

16.0.0-alpha.5

3 years ago

16.0.0-alpha.3

3 years ago

16.0.0-alpha.2

3 years ago

16.0.0-alpha.0

3 years ago

16.0.0-alpha

3 years ago

15.4.2

3 years ago

15.4.1

3 years ago

15.4.0

3 years ago

15.4.0-rc.4

3 years ago

15.4.0-rc.3

3 years ago

15.4.0-rc.2

3 years ago

15.4.0-rc.1

3 years ago

15.3.2

3 years ago

15.3.2-rc.1

3 years ago

15.3.1

4 years ago

15.3.1-rc.2

4 years ago

15.3.1-rc.1

4 years ago

15.3.0

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago