{"id":22106992,"url":"https://github.com/legitcode/enzymed","last_synced_at":"2025-03-24T03:17:17.230Z","repository":{"id":95859162,"uuid":"47517204","full_name":"Legitcode/enzymed","owner":"Legitcode","description":"decorators and automatic testing for enzyme by airbnb","archived":false,"fork":false,"pushed_at":"2015-12-06T23:30:59.000Z","size":4,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-01-29T09:30:45.568Z","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/Legitcode.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-06T22:50:58.000Z","updated_at":"2017-04-17T21:37:47.000Z","dependencies_parsed_at":"2023-05-21T01:45:47.803Z","dependency_job_id":null,"html_url":"https://github.com/Legitcode/enzymed","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/Legitcode%2Fenzymed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Legitcode%2Fenzymed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Legitcode%2Fenzymed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Legitcode%2Fenzymed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Legitcode","download_url":"https://codeload.github.com/Legitcode/enzymed/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245200706,"owners_count":20576674,"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-12-01T08:13:31.549Z","updated_at":"2025-03-24T03:17:17.200Z","avatar_url":"https://github.com/Legitcode.png","language":"JavaScript","readme":"##enzymed\n\nDecorators and test running for [enzyme](https://github.com/airbnb/enzyme).\n\n```js\nimport React from 'react'\n\n@test('render the correct text', (wrapper, expect) =\u003e expect(wrapper.text()).to.equal('hi'))\nexport default class Page extends React.Component{\n  render(){\n    return (\n      \u003cdiv className=\"cool\"\u003ehi\u003c/div\u003e\n    )\n  }\n}\n```\nMultiple tests are better written like so:\n\n```js\n@test('render the correct text', tests)\nexport default class Page extends React.Component{\n  render(){\n    return (\n      \u003cdiv className=\"cool\"\u003ehi\u003c/div\u003e\n    )\n  }\n}\n\nfunction tests(wrapper, expect){\n  expect(wrapper.text()).to.equal('hi')\n  expect(wrapper.find('.cool')).to.ok\n}\n```\n\nRun tests with `enzymed example/*`\n\n##How it works\n\nThis library includes `chai` and `mocha` for you. Makes it super easy to write your tests as you make your components.\n\n##Todo\n\n- remove `@test` declaration when building code.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flegitcode%2Fenzymed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flegitcode%2Fenzymed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flegitcode%2Fenzymed/lists"}