{"id":15537325,"url":"https://github.com/nullvoxpopuli/testing-library-ember","last_synced_at":"2025-04-23T14:02:47.437Z","repository":{"id":37019737,"uuid":"485559557","full_name":"NullVoxPopuli/testing-library-ember","owner":"NullVoxPopuli","description":"maybe one day @testing-library/ember. Based off of https://testing-library.com/docs/dom-testing-library/intro and https://github.com/emberjs/ember-test-helpers","archived":false,"fork":false,"pushed_at":"2024-12-22T22:57:59.000Z","size":135,"stargazers_count":6,"open_issues_count":11,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-09T08:33:21.514Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NullVoxPopuli.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"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":"2022-04-25T22:54:26.000Z","updated_at":"2022-07-28T14:07:57.000Z","dependencies_parsed_at":"2023-01-17T14:01:24.449Z","dependency_job_id":"6b0d7d5a-0eea-4b32-9fab-f282faf0387c","html_url":"https://github.com/NullVoxPopuli/testing-library-ember","commit_stats":{"total_commits":67,"total_committers":4,"mean_commits":16.75,"dds":0.5074626865671642,"last_synced_commit":"b95691024c0095f4e79b0048b55b34e392ebc610"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NullVoxPopuli%2Ftesting-library-ember","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NullVoxPopuli%2Ftesting-library-ember/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NullVoxPopuli%2Ftesting-library-ember/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NullVoxPopuli%2Ftesting-library-ember/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NullVoxPopuli","download_url":"https://codeload.github.com/NullVoxPopuli/testing-library-ember/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233634825,"owners_count":18706064,"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-10-02T11:56:07.057Z","updated_at":"2025-01-12T17:19:50.914Z","avatar_url":"https://github.com/NullVoxPopuli.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# testing-library-ember\n\n## Install\n\n```\nnpm install --save-dev testing-library-ember\n# or\nyarn add --dev testing-library-ember\n# or\npnpm add --save-dev testing-library-ember\n```\n\nAlso, be sure to install `@testing-library/dom` and `@ember/test-helpers` (as they are peer dependencies)\n\n## Compatibility\n\n- `@testing-library/dom` v8+\n- `ember-source` v3+\n- `@ember/test-helpers` v2+\n\n## Usage\n\nFor all synchronous queries, use [`@testing-library/dom`](https://testing-library.com/docs/dom-testing-library/install).\n\nThis library is only needed for the async behaviors of testing-library, such as `fireEvent.click` and `screen.findbyText`.\n\nFor example:\n\n```js\nimport { module, test } from 'qunit';\nimport { setupRenderingTest } from 'ember-qunit';\nimport { render } from '@ember/test-helpers';\nimport { hbs } from 'ember-cli-htmlbars';\n\nimport { screen } from '@testing-library/dom';\nimport { fireEvent } from 'ember-testing-library';\n\n\nmodule(`Demo`, function(hooks) {\n  setupRenderingTest(hooks);\n\n  test('demo ember + testing-library', async function(assert) {\n    await render(hbs`...`);\n    let button = screen.getByRole('button', {name: 'Click Me'})\n\n    await fireEvent.click(button);\n\n    assert.strictEqual(screen.getByText('Output'), 'the new output');\n  });\n});\n```\n\nSee the tests in test-app for examples\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnullvoxpopuli%2Ftesting-library-ember","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnullvoxpopuli%2Ftesting-library-ember","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnullvoxpopuli%2Ftesting-library-ember/lists"}