16.13.1 • Published 9 days ago

react-test-renderer v16.13.1

Weekly downloads
3,464,760
License
MIT
Repository
github
Last release
9 days 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-16material-ui-dialog-headerweb-modules-test@tenjo/webpack-confignandos-ui-components@analogyxbi-ui/build-configdemo-control-dashboardreact-gl-custom-boilerplate-v1react-gl-custom-boilerplate-v2design-frameworklipemat-js-boilerplatedne-react-starterfun-timertenjo-webpack-configbahmni-form-controls-triallucky-react-componentsreact-awesome-tabcustomer-reactfv-player@domestika-dev/prudencioprobica15@arengu/react-arengu-forms@react_pwa/adapterprobica16@enbock/time-trackertn-ladingwix-rehab@sheansuke/react-typescript@sellics/profitjest-preset-contourmui-datatables-better-searchmoom-snakemscratchhooks-combine-reducershorrorijizhe_vue_react_coreimlimj-script-buildinteractive-landscapeimmersive-readernetdata-collectors-landscapeneutrino-preset-pragmatic-reacthaomajestifyjest-expojest-expo-enzymejest-runner-cucumberjest-plugin-it-renderskambi-widget-core-libraryjest-mock-reactjest-do-itjbs-feiceberg-packernectarineneo-designneutrino-preset-inflmt-ui-componentsmy-common-appmy-demo-common-appmy-dummy-appmozaik-ext-imagemy-first-react-package-webonisejsx-presentationjsx-test-helperslib-kenzielib-kenzie-academykitten-componentskenzie-stylekenzie-styleskununu-electrode-archetype-react-app-devkiwi-bundle-reactjust-spalucidmagmo-walletlp-react-componentsmfe-runtimemedjaibotmhymobify-amp-sdkprivate-safesupport-chatboxop-data-tableopenmrs-react-scripts-exampleoutrun-renderer-3doezy-scriptsraphe-react@alice4242/minisite-libraryrca-precursorrcl-demoomni-common-uiparse-nested-componentsr4r-apprain-tech-design-systemql-platform-uireact-azure-mapsreact-base-starter-projectreact-angular-componentreact-arengu-formsreact-arc-graphrahul-components-afrozrah
17.0.0-rc.2

9 days ago

0.0.0-3834174dd

9 days ago

17.0.0-rc.1

1 month ago

0.0.0-4e6999103

1 month ago

17.0.0-rc.0

2 months ago

0.0.0-94c0244ba

2 months ago

0.0.0-f77c7b9d7

2 months ago

0.0.0-3d0895557

2 months ago

0.0.0-7f28234f8

3 months ago

0.0.0-33c3af284

5 months ago

0.0.0-d7382b6c4

6 months ago

0.0.0-da834083c

6 months ago

16.13.1

6 months ago

0.0.0-235a6c4af

7 months ago

16.13.0

7 months ago

0.0.0-d28bd2994

7 months ago

0.0.0-8d7535e54

7 months ago

0.0.0-5de5b6150

7 months ago

0.0.0-ea6ed3dbb

7 months ago

0.0.0-241c4467e

8 months ago

0.0.0-57333ca33

8 months ago

0.0.0-f42431abe

10 months ago

16.12.0

11 months ago

0.0.0-b53ea6ca0

11 months ago

0.0.0-38dd17ab9

11 months ago

0.0.0-f6b8d31a7

11 months ago

16.11.0

11 months ago

0.0.0-5faf377df

11 months ago

0.0.0-1022ee0ec

11 months ago

0.0.0-7082d5a2d

12 months ago

16.10.2

12 months ago

0.0.0-4ab6305f6

12 months ago

16.10.1

1 year ago

0.0.0-d346d9208

1 year ago

16.10.0

1 year ago

0.0.0-3694a3b5e

1 year ago

0.0.0-b4b8a349a

1 year ago

0.0.0-45b6443c9

1 year ago

0.0.0-8d5403877

1 year ago

16.9.0

1 year ago

16.9.0-rc.0

1 year ago

0.0.0-a1dbb852c

1 year ago

0.0.0-375616788

1 year ago

0.0.0-db3ae32b8

1 year ago

0.0.0-bbd21066e

1 year ago

0.0.0-b4178af81

1 year ago

0.0.0-424099da6

1 year ago

0.0.0-9f395904c

1 year ago

0.0.0-fa1e8df11

1 year ago

0.0.0-50b50c26f

1 year ago

0.0.0-6da04b5d8

1 year ago

0.0.0-fb28e9048

1 year ago

0.0.0-4221565e1

1 year ago

0.0.0-9ebe1768a

1 year ago

0.0.0-a9eff329c

1 year ago

16.9.0-alpha.0

1 year ago

0.0.0-c35e37aab

1 year ago

16.8.6

2 years ago

0.0.0-297165f1e

2 years ago

16.8.5

2 years ago

0.0.0-f9e41e3a5

2 years ago

0.0.0-679402a66

2 years ago

16.8.4

2 years ago

0.0.0-741aa17a3

2 years ago

16.8.3

2 years ago

0.0.0-29b7b775f

2 years ago

0.0.0-b668168d4

2 years ago

16.8.2

2 years ago

0.0.0-dfabb77a9

2 years ago

0.0.0-0e4135e8c

2 years ago

16.8.1

2 years ago

0.0.0-11565a207

2 years ago

16.8.0

2 years ago

0.0.0-d1326f466

2 years ago

0.0.0-267ed9814

2 years ago

0.0.0-fec00a869

2 years ago

16.8.0-alpha.1

2 years ago

0.0.0-3e15b1c69

2 years ago

16.8.0-alpha.0

2 years ago

0.0.0-f22621f88

2 years ago

16.7.0

2 years ago

0.0.0-4a1072194

2 years ago

0.0.0-7325ebe4d

2 years ago

0.0.0-c5b7d26c7

2 years ago

0.0.0-88ada9819

2 years ago

0.0.0-ed4c4a51c

2 years ago

16.7.0-alpha.2

2 years ago

16.7.0-alpha.1

2 years ago

16.6.3

2 years ago

16.6.2

2 years ago

16.6.1

2 years ago

16.7.0-alpha.0

2 years ago

16.6.0

2 years ago

16.5.2

2 years ago

16.6.0-alpha.0

2 years ago

16.5.1

2 years ago

16.5.0

2 years 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

3 years ago

16.3.0-rc.0

3 years ago

16.3.0-alpha.3

3 years ago

16.3.0-alpha.2

3 years ago

16.3.0-alpha.1

3 years ago

16.3.0-alpha.0

3 years ago

16.2.0

3 years ago

16.1.1

3 years ago

16.1.0

3 years ago

16.1.0-rc

3 years ago

16.1.0-beta.1

3 years ago

16.1.0-beta

3 years ago

16.0.0

3 years ago

15.6.2

3 years ago

16.0.0-rc.3

3 years ago

16.0.0-rc.2

3 years ago

16.0.0-rc.1

3 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

4 years ago

16.0.0-alpha.5

4 years ago

16.0.0-alpha.3

4 years ago

16.0.0-alpha.2

4 years ago

16.0.0-alpha.0

4 years ago

16.0.0-alpha

4 years ago

15.4.2

4 years ago

15.4.1

4 years ago

15.4.0

4 years ago

15.4.0-rc.4

4 years ago

15.4.0-rc.3

4 years ago

15.4.0-rc.2

4 years ago

15.4.0-rc.1

4 years ago

15.3.2

4 years ago

15.3.2-rc.1

4 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