{"id":13726687,"url":"https://github.com/wyze/bs-dom-testing-library","last_synced_at":"2025-05-12T20:16:08.708Z","repository":{"id":32521543,"uuid":"136053345","full_name":"wyze/bs-dom-testing-library","owner":"wyze","description":"BuckleScript bindings for dom-testing-library.","archived":false,"fork":false,"pushed_at":"2023-01-05T16:15:51.000Z","size":507,"stargazers_count":15,"open_issues_count":14,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-03T17:02:56.132Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://yarn.pm/bs-dom-testing-library","language":"Reason","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/wyze.png","metadata":{"files":{"readme":"readme.md","changelog":"changelog.md","contributing":null,"funding":".github/funding.yml","license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"wyze"}},"created_at":"2018-06-04T16:30:38.000Z","updated_at":"2023-06-15T03:12:08.000Z","dependencies_parsed_at":"2023-01-14T21:29:32.028Z","dependency_job_id":null,"html_url":"https://github.com/wyze/bs-dom-testing-library","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wyze%2Fbs-dom-testing-library","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wyze%2Fbs-dom-testing-library/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wyze%2Fbs-dom-testing-library/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wyze%2Fbs-dom-testing-library/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wyze","download_url":"https://codeload.github.com/wyze/bs-dom-testing-library/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253814998,"owners_count":21968562,"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":[],"created_at":"2024-08-03T01:03:16.702Z","updated_at":"2025-05-12T20:16:08.662Z","avatar_url":"https://github.com/wyze.png","language":"Reason","funding_links":["https://github.com/sponsors/wyze"],"categories":["Reason"],"sub_categories":[],"readme":"# bs-dom-testing-library \u0026middot; [![Build Status][circleci-image]][circleci-url] [![npm][npm-image]][npm-url] [![Coveralls][codecov-image]][codecov-url]\n\n\u003e [BuckleScript](//github.com/BuckleScript/bucklescript) bindings for [dom-testing-library](//github.com/testing-library/dom-testing-library).\n\n## Documentation\n\n[**Read the docs**](//testing-library.com/docs/bs-react-testing-library/intro) | [Edit the docs](//github.com/alexkrolick/testing-library-docs)\n\n## Installation\n\n```sh\n$ yarn add --dev bs-dom-testing-library\n\n# or..\n\n$ npm install --save-dev bs-dom-testing-library\n```\n\n## Usage\n\n#### Add to `bsconfig.json`\n\n```json\n{\n  \"bs-dev-dependencies\": [\n    \"bs-dom-testing-library\"\n  ]\n}\n```\n\n#### With [`bs-jest`](//github.com/reasonml-community/bs-jest)\n\n```ocaml\n/* Header_test.re */\n\nopen Jest;\nopen Expect;\nopen Webapi.Dom;\nopen Webapi.Dom.Element;\n\ntest(\"header exists\", () =\u003e {\n  let div = Document.createElement(\"div\", document);\n\n  div-\u003esetInnerHTML({|\u003ch1\u003eHello, World!\u003c/h1\u003e|});\n\n  div\n  |\u003e getByText(~matcher=`Str(\"Hello, World!\"))\n  |\u003e expect\n  |\u003e ExpectJs.toBeTruthy;\n});\n```\n\n## Examples\n\nSee [`src/__tests__`](src/__tests__) for some examples.\n\n## Development\n\n```sh\n$ git clone https://github.com/wyze/bs-dom-testing-library.git\n$ cd bs-dom-testing-library\n$ yarn # or `npm install`\n```\n\n## Build\n\n```sh\n$ yarn build\n```\n\n## Test\n\n```sh\n$ yarn test\n```\n\n## Change Log\n\n\u003e [Full Change Log](changelog.md)\n\n### [v0.7.0](https://github.com/wyze/bs-dom-testing-library/releases/tag/v0.7.0) (2020-10-21)\n\n* Add waitForElementToBeRemoved ([@wyze](https://github.com/wyze) in [#23](https://github.com/wyze/bs-dom-testing-library/pull/23))\n* Add more ByRole options ([@wyze](https://github.com/wyze) in [#22](https://github.com/wyze/bs-dom-testing-library/pull/22))\n* Update some of the utility functions ([@wyze](https://github.com/wyze) in [#21](https://github.com/wyze/bs-dom-testing-library/pull/21))\n* Add sponsor button ([@wyze](https://github.com/wyze) in [dec1dab](https://github.com/wyze/bs-dom-testing-library/commit/dec1dab))\n* Upgrade to latest dependencies ([@wyze](https://github.com/wyze) in [#20](https://github.com/wyze/bs-dom-testing-library/pull/20))\n\n## License\n\nMIT © [Neil Kistner](https://neilkistner.com)\n\n[circleci-image]: https://img.shields.io/circleci/project/github/wyze/bs-dom-testing-library.svg?style=flat-square\n[circleci-url]: https://circleci.com/gh/wyze/bs-dom-testing-library\n\n[npm-image]: https://img.shields.io/npm/v/bs-dom-testing-library.svg?style=flat-square\n[npm-url]: https://npm.im/bs-dom-testing-library\n\n[codecov-image]: https://img.shields.io/codecov/c/github/wyze/bs-dom-testing-library.svg?style=flat-square\n[codecov-url]: https://codecov.io/github/wyze/bs-dom-testing-library\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwyze%2Fbs-dom-testing-library","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwyze%2Fbs-dom-testing-library","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwyze%2Fbs-dom-testing-library/lists"}