{"id":15598749,"url":"https://github.com/lukechilds/react-jsdom","last_synced_at":"2025-08-10T04:35:42.173Z","repository":{"id":47606307,"uuid":"99956991","full_name":"lukechilds/react-jsdom","owner":"lukechilds","description":"Render React components to actual DOM nodes in Node.js","archived":false,"fork":false,"pushed_at":"2021-08-12T23:49:05.000Z","size":16,"stargazers_count":34,"open_issues_count":2,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-06T18:05:44.907Z","etag":null,"topics":["jsdom","react","test","testing","testing-tools"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lukechilds.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-10T19:14:25.000Z","updated_at":"2025-05-07T08:52:41.000Z","dependencies_parsed_at":"2022-09-13T12:41:45.866Z","dependency_job_id":null,"html_url":"https://github.com/lukechilds/react-jsdom","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/lukechilds/react-jsdom","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukechilds%2Freact-jsdom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukechilds%2Freact-jsdom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukechilds%2Freact-jsdom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukechilds%2Freact-jsdom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lukechilds","download_url":"https://codeload.github.com/lukechilds/react-jsdom/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukechilds%2Freact-jsdom/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269586679,"owners_count":24442632,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-09T02:00:10.424Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["jsdom","react","test","testing","testing-tools"],"created_at":"2024-10-03T01:41:12.785Z","updated_at":"2025-08-10T04:35:42.149Z","avatar_url":"https://github.com/lukechilds.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-jsdom\n\n\u003e Render React components to actual DOM nodes in Node.js\n\n[![Build Status](https://travis-ci.org/lukechilds/react-jsdom.svg?branch=master)](https://travis-ci.org/lukechilds/react-jsdom)\n[![Coverage Status](https://coveralls.io/repos/github/lukechilds/react-jsdom/badge.svg?branch=master)](https://coveralls.io/github/lukechilds/react-jsdom?branch=master)\n[![npm](https://img.shields.io/npm/v/react-jsdom.svg)](https://www.npmjs.com/package/react-jsdom)\n\nMakes testing simple React components super easy with any Node.js test framework.\n\n## Install\n\n```\nnpm install --save-dev react-jsdom\n```\n\n## Usage\n\n```js\nconst React = require('react');\nconst ReactJSDOM = require('react-jsdom');\n\nclass Hi extends React.Component {\n  render() {\n    return (\n      \u003cdiv\u003e\n        \u003cspan\u003ehi\u003c/span\u003e\n        \u003cspan\u003e{this.props.person}\u003c/span\u003e\n      \u003c/div\u003e\n    );\n  }\n\n  componentDidMount() {\n    console.log('I mounted!');\n  }\n}\n\nconst elem = ReactJSDOM.render(\u003cHi person=\"mum\"/\u003e);\n// console: 'I mounted!'\n\nelem.constructor.name\n// 'HTMLDivElement'\nelem.nodeName;\n// 'DIV');\nelem.querySelector('span:last-child').textContent;\n// 'mum'\nelem.outerHTML;\n// \u003cdiv\u003e\n//   \u003cspan\u003ehi\u003c/span\u003e\n//   \u003cspan\u003emum\u003c/span\u003e\n// \u003c/div\u003e\n```\n\n## License\n\nMIT © Luke Childs\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukechilds%2Freact-jsdom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flukechilds%2Freact-jsdom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukechilds%2Freact-jsdom/lists"}