{"id":23843661,"url":"https://github.com/ngduc/px-test-utils","last_synced_at":"2025-06-21T23:35:36.349Z","repository":{"id":143904026,"uuid":"48270040","full_name":"ngduc/px-test-utils","owner":"ngduc","description":"helper functions for mocha unit tests using teaspoon, react-addons-test-utils, etc.","archived":false,"fork":false,"pushed_at":"2015-12-20T18:17:55.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-25T22:16:05.671Z","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/ngduc.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}},"created_at":"2015-12-19T05:41:02.000Z","updated_at":"2015-12-20T05:09:29.000Z","dependencies_parsed_at":"2023-03-21T10:07:07.195Z","dependency_job_id":null,"html_url":"https://github.com/ngduc/px-test-utils","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ngduc/px-test-utils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngduc%2Fpx-test-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngduc%2Fpx-test-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngduc%2Fpx-test-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngduc%2Fpx-test-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ngduc","download_url":"https://codeload.github.com/ngduc/px-test-utils/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngduc%2Fpx-test-utils/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261211685,"owners_count":23125543,"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":"2025-01-02T19:50:39.679Z","updated_at":"2025-06-21T23:35:31.337Z","avatar_url":"https://github.com/ngduc.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# px-test-utils\nHelper functions for mocha unit tests using [teaspoon](https://github.com/jquense/teaspoon), react-addons-test-utils, etc.\n\n# Installation\n```\nnpm install px-test-utils --save-dev\n```\n\n# Usage\n```\nimport PxTestUtils from 'px-test-utils';\n\ndescribe('My Component', () =\u003e {\n  let renderer;\n  let $el;\n  const reactEl = (\u003cMyComp\u003e\u003cdiv\u003eContent\u003c/div\u003e\u003c/MyComp\u003e);\n\n  beforeEach(() =\u003e {\n    [ renderer, $el ] = PxTestUtils.render(reactEl);\n  });\n\n  it('should have 1 div', () =\u003e {\n    expect($el.find('div').length).to.equal(1);\n  });\n})\n```\n\n# Why\npx-test-utils is just a wrapper to help write shorter, cleaner React unit tests.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fngduc%2Fpx-test-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fngduc%2Fpx-test-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fngduc%2Fpx-test-utils/lists"}