{"id":13525902,"url":"https://github.com/testing-library/preact-testing-library","last_synced_at":"2025-04-04T06:06:56.426Z","repository":{"id":31620997,"uuid":"128426585","full_name":"testing-library/preact-testing-library","owner":"testing-library","description":"Simple and complete Preact DOM testing utilities that encourage good testing practices. ","archived":false,"fork":false,"pushed_at":"2024-06-17T18:08:43.000Z","size":93,"stargazers_count":145,"open_issues_count":6,"forks_count":38,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-10-29T17:34:56.839Z","etag":null,"topics":["testing"],"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/testing-library.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-06T17:38:33.000Z","updated_at":"2024-09-13T01:42:35.000Z","dependencies_parsed_at":"2024-04-15T07:31:19.398Z","dependency_job_id":"120ef91c-fc38-4f89-b894-7124b34defaf","html_url":"https://github.com/testing-library/preact-testing-library","commit_stats":{"total_commits":47,"total_committers":16,"mean_commits":2.9375,"dds":0.5531914893617021,"last_synced_commit":"3e5394e29975296587f9532ab55a43b0da0fab3d"},"previous_names":["antoaravinth/preact-testing-library"],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testing-library%2Fpreact-testing-library","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testing-library%2Fpreact-testing-library/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testing-library%2Fpreact-testing-library/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testing-library%2Fpreact-testing-library/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/testing-library","download_url":"https://codeload.github.com/testing-library/preact-testing-library/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246939202,"owners_count":20857919,"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":["testing"],"created_at":"2024-08-01T06:01:23.350Z","updated_at":"2025-04-04T06:06:56.395Z","avatar_url":"https://github.com/testing-library.png","language":"JavaScript","readme":"\u003cdiv align=\"center\"\u003e\n\u003ch1\u003ePreact Testing Library\u003c/h1\u003e\n\n\u003ca href=\"https://www.emojione.com/emoji/1F429\"\u003e\n  \u003cimg\n    height=\"80\"\n    width=\"80\"\n    alt=\"poodle\"\n    src=\"https://raw.githubusercontent.com/testing-library/preact-testing-library/main/other/poodle.png\"\n  /\u003e\n\u003c/a\u003e\n\n\u003cp\u003eSimple and complete Preact DOM testing utilities that encourage good testing\npractices.\u003c/p\u003e\n\n\u003e Inspired completely by [react-testing-library][react-testing-library]\n\n[![Build Status][build-badge]][build] [![Code Coverage][coverage-badge]][coverage]\n[![All Contributors](https://img.shields.io/badge/all_contributors-3-orange.svg?style=flat-square)](#contributors-)\n[![PRs Welcome][prs-badge]][prs] [![Code of Conduct][coc-badge]][coc]\n[![version][version-badge]][package] [![downloads][downloads-badge]][package]\n[![MIT License][license-badge]][license]\n[![Preact Slack Community][preact-slack-badge]][preact-slack]\n[![Commitzen][commitzen-badge]][commitzen] [![Discord][discord-badge]][discord]\n\n\u003c/div\u003e\n\n\u003chr /\u003e\n\n## Table of Contents\n\n\u003c!-- START doctoc generated TOC please keep comment here to allow auto update --\u003e\n\u003c!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --\u003e\n\n- [The Problem](#the-problem)\n- [The Solution](#the-solution)\n- [Installation](#installation)\n- [Docs](#docs)\n- [Issues](#issues)\n  - [🐛 Bugs](#-bugs)\n  - [💡 Feature Requests](#-feature-requests)\n  - [❓ Questions](#-questions)\n- [Contributors](#contributors)\n- [LICENSE](#license)\n\n\u003c!-- END doctoc generated TOC please keep comment here to allow auto update --\u003e\n\n## The Problem\n\nYou want to write tests for your Preact components so that they avoid including implementation\ndetails, and are maintainable in the long run.\n\n## The Solution\n\nThe Preact Testing Library is a very lightweight solution for testing Preact components. It provides\nlight utility functions on top of preact/test-utils, in a way that encourages better testing\npractices. Its primary guiding principle is:\n\n\u003e [The more your tests resemble the way your software is used, the more confidence they can give you.](https://twitter.com/kentcdodds/status/977018512689455106)\n\n## Installation\n\nThis module is distributed via [npm][npm] which is bundled with [node][node] and should be installed\nas one of your project's `devDependencies`:\n\n```\nnpm install --save-dev @testing-library/preact\n```\n\nThis library has `peerDependencies` listings for `preact \u003e= 10`.\n\n💡 You may also be interested in installing `@testing-library/jest-dom` so you can use\n[the custom jest matchers](https://github.com/testing-library/jest-dom).\n\n📝 This library supports Preact X (10.x). It takes advantage of the `act` test utility in\n`preact/test-utils` to enable both Preact Hook and Class components to be easily tested.\n\n📝 If you're looking for a solution for Preact 8.x then install `preact-testing-library`.\n\n## Docs\n\nSee the [docs](https://testing-library.com/docs/preact-testing-library/intro) over at the Testing\nLibrary website.\n\n## Issues\n\n_Looking to contribute? Look for the [Good First Issue][good-first-issue] label._\n\n### 🐛 Bugs\n\nPlease file an issue for bugs, missing documentation, or unexpected behavior.\n\n[**See Bugs**][bugs]\n\n### 💡 Feature Requests\n\nPlease file an issue to suggest new features. Vote on feature requests by adding a 👍. This helps\nmaintainers prioritize what to work on.\n\n[**See Feature Requests**][requests]\n\n### ❓ Questions\n\nFor questions related to using the library, please visit a support community instead of filing an\nissue on GitHub.\n\n- [Preact Slack][slack]\n- [Stack Overflow][stackoverflow]\n\n## Contributors\n\nThanks goes to these people ([emoji key][emojis]):\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable --\u003e\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://kentcdodds.com\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/1500684?v=3\" width=\"100px;\" alt=\"Kent C. Dodds\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eKent C. Dodds\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/testing-library/preact-testing-library/commits?author=kentcdodds\" title=\"Code\"\u003e💻\u003c/a\u003e \u003ca href=\"https://github.com/testing-library/preact-testing-library/commits?author=kentcdodds\" title=\"Documentation\"\u003e📖\u003c/a\u003e \u003ca href=\"https://github.com/testing-library/preact-testing-library/commits?author=kentcdodds\" title=\"Tests\"\u003e⚠️\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/antsmartian\"\u003e\u003cimg src=\"https://avatars0.githubusercontent.com/u/1241511?s=400\u0026v=4\" width=\"100px;\" alt=\"Ants Martian\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eAnts Martian\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/testing-library/preact-testing-library/commits?author=antsmartian\" title=\"Code\"\u003e💻\u003c/a\u003e \u003ca href=\"https://github.com/testing-library/preact-testing-library/commits?author=antsmartian\" title=\"Documentation\"\u003e📖\u003c/a\u003e \u003ca href=\"https://github.com/testing-library/preact-testing-library/commits?author=antsmartian\" title=\"Tests\"\u003e⚠️\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/mihar-22\"\u003e\u003cimg src=\"https://avatars3.githubusercontent.com/u/14304599?s=460\u0026v=4\" width=\"100px;\" alt=\"Rahim Alwer\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eRahim Alwer\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/testing-library/preact-testing-library/commits?author=mihar-22\" title=\"Code\"\u003e💻\u003c/a\u003e \u003ca href=\"https://github.com/testing-library/preact-testing-library/commits?author=mihar-22\" title=\"Documentation\"\u003e📖\u003c/a\u003e \u003ca href=\"https://github.com/testing-library/preact-testing-library/commits?author=mihar-22\" title=\"Tests\"\u003e⚠️\u003c/a\u003e \u003ca href=\"#infra-mihar-22\" title=\"Infrastructure (Hosting, Build-Tools, etc)\"\u003e🚇\u003c/a\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n\u003c!-- markdownlint-enable --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\nThis project follows the [all-contributors][all-contributors] specification. Contributions of any\nkind welcome!\n\n## LICENSE\n\n[MIT](LICENSE)\n\n\u003c!-- prettier-ignore-start --\u003e\n[npm]: https://www.npmjs.com\n[node]: https://nodejs.org\n[build]: https://github.com/testing-library/preact-testing-library/actions?query=workflow%3Avalidate\n[build-badge]: https://img.shields.io/github/workflow/status/testing-library/preact-testing-library/validate?logo=github\u0026style=flat-square\n[coverage-badge]: https://img.shields.io/codecov/c/github/testing-library/preact-testing-library.svg?style=flat-square\n[coverage]: https://codecov.io/github/testing-library/preact-testing-library\n[package]: https://www.npmjs.com/package/@testing-library/preact\n[version-badge]: https://img.shields.io/npm/v/@testing-library/preact\n[downloads-badge]: https://img.shields.io/npm/dw/@testing-library/preact\n[slack]: https://preact-slack.now.sh\n[license]: https://github.com/testing-library/preact-testing-library/blob/main/LICENSE\n[license-badge]: https://img.shields.io/github/license/testing-library/preact-testing-library?color=b\n[emojis]: https://github.com/all-contributors/all-contributors#emoji-key\n[all-contributors]: https://github.com/all-contributors/all-contributors\n[guiding-principle]: https://twitter.com/kentcdodds/status/977018512689455106\n[bugs]: https://github.com/testing-library/preact-testing-library/issues?q=is%3Aissue+is%3Aopen+label%3Abug+sort%3Acreated-desc\n[requests]: https://github.com/testing-library/preact-testing-library/issues?q=is%3Aissue+sort%3Areactions-%2B1-desc+label%3Aenhancement+is%3Aopen\n[good-first-issue]: https://github.com/testing-library/preact-testing-library/issues?utf8=✓\u0026q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc+label%3A\"good+first+issue\"+\n[stackoverflow]: https://stackoverflow.com/questions/tagged/preact-testing-library\n[react-testing-library]: https://github.com/testing-library/react-testing-library\n[react-testing-library-docs]: https://testing-library.com/docs/react-testing-library/intro\n[prs-badge]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square\n[prs]: http://makeapullrequest.com\n[coc-badge]: https://img.shields.io/badge/code%20of-conduct-ff69b4.svg?style=flat-square\n[coc]: https://github.com/testing-library/preact-testing-library/blob/main/CODE_OF_CONDUCT.md\n[preact-slack]: https://preact-slack.now.sh/\n[preact-slack-badge]: https://preact-slack.now.sh/badge.svg\n[commitzen]: http://commitizen.github.io/cz-cli/\n[commitzen-badge]: https://img.shields.io/badge/commitizen-friendly-brightgreen.svg\n[discord-badge]: https://img.shields.io/discord/723559267868737556.svg?color=7389D8\u0026labelColor=6A7EC2\u0026logo=discord\u0026logoColor=ffffff\n[discord]: https://discord.gg/testing-library\n\u003c!-- prettier-ignore-end --\u003e\n","funding_links":[],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftesting-library%2Fpreact-testing-library","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftesting-library%2Fpreact-testing-library","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftesting-library%2Fpreact-testing-library/lists"}