{"id":25306677,"url":"https://github.com/neworbit/alsatian-react-testing-library","last_synced_at":"2025-04-07T06:29:20.273Z","repository":{"id":39703636,"uuid":"302594067","full_name":"NewOrbit/alsatian-react-testing-library","owner":"NewOrbit","description":"Helpers for testing React in TypeScript with React Testing Library and Alsatian","archived":false,"fork":false,"pushed_at":"2022-12-11T20:25:51.000Z","size":211,"stargazers_count":0,"open_issues_count":6,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-02-13T10:38:35.142Z","etag":null,"topics":["hacktoberfest"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/NewOrbit.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":"2020-10-09T09:26:42.000Z","updated_at":"2020-10-09T13:55:58.000Z","dependencies_parsed_at":"2023-01-27T06:30:40.595Z","dependency_job_id":null,"html_url":"https://github.com/NewOrbit/alsatian-react-testing-library","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NewOrbit%2Falsatian-react-testing-library","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NewOrbit%2Falsatian-react-testing-library/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NewOrbit%2Falsatian-react-testing-library/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NewOrbit%2Falsatian-react-testing-library/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NewOrbit","download_url":"https://codeload.github.com/NewOrbit/alsatian-react-testing-library/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247604848,"owners_count":20965505,"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","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":["hacktoberfest"],"created_at":"2025-02-13T10:37:07.233Z","updated_at":"2025-04-07T06:29:20.248Z","avatar_url":"https://github.com/NewOrbit.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# alsatian-react-testing-library\n\nThis package provides helpers for testing React components in Typescript with React Testing Library and Alsatian.\n\n## Installation\n\n```cmd\nnpm i alsatian-react-testing-library\n```\n\n## Usage\n\n```tsx\nimport { Test, TestFixture } from \"alsatian\";\nimport { ExpectElement } from \"alsatian-react-testing-library\";\nimport { render } from \"@testing-library/react\";\n\nimport { MyComponent } from \"./MyComponent\";\n\nconfigureJSDOM(); // This is important!\n\n@TestFixture(\"MyComponent\")\nexport class MyComponentTests {\n\n    @Test(\"should render component\")\n    public shouldRenderComponent() {\n\n        const wrapper = render(\u003cMyComponent /\u003e);\n\n        ExpectElement(wrapper).toMatchElement(\n            \u003cdiv\u003e\n                My components body.\n            \u003c/div\u003e\n        );\n    }\n\n}\n```\n\n## License\n\nMade with :sparkling_heart: by [NewOrbit](https://www.neworbit.co.uk/) in Oxfordshire, and licensed under the [MIT Licence](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneworbit%2Falsatian-react-testing-library","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneworbit%2Falsatian-react-testing-library","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneworbit%2Falsatian-react-testing-library/lists"}