{"id":17768125,"url":"https://github.com/kureev/jest-styled-components-matcher","last_synced_at":"2025-10-15T17:58:53.593Z","repository":{"id":89119505,"uuid":"88638890","full_name":"Kureev/jest-styled-components-matcher","owner":"Kureev","description":"Jest matcher for styled components (React Native)","archived":false,"fork":false,"pushed_at":"2017-04-25T09:19:19.000Z","size":54,"stargazers_count":14,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-10T20:11:13.886Z","etag":null,"topics":["jest-matchers","react-native","styled-components"],"latest_commit_sha":null,"homepage":"","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/Kureev.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":"2017-04-18T15:09:16.000Z","updated_at":"2023-03-11T12:20:31.000Z","dependencies_parsed_at":"2023-06-14T00:45:20.750Z","dependency_job_id":null,"html_url":"https://github.com/Kureev/jest-styled-components-matcher","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kureev%2Fjest-styled-components-matcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kureev%2Fjest-styled-components-matcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kureev%2Fjest-styled-components-matcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kureev%2Fjest-styled-components-matcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kureev","download_url":"https://codeload.github.com/Kureev/jest-styled-components-matcher/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243742547,"owners_count":20340664,"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":["jest-matchers","react-native","styled-components"],"created_at":"2024-10-26T20:56:05.054Z","updated_at":"2025-10-15T17:58:48.550Z","avatar_url":"https://github.com/Kureev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[React Native] Jest matchers for styled-components\n==\n\n## Motivation\nAdd a way to check if styled-component has a style rule (or style rule has a right value)\n\n## Installation\n```bash\nyarn add jest-styled-components-matcher --dev\n```\nor\n```bash\nnpm i jest-styled-components-matcher -D\n```\n\n## Usage\nJust import it in the place you're going to use it:\n```js\nimport 'jest-styled-components-matcher'\n```\nThat's it! Now you can use it in your tests:\n```js\ndescribe('Avatar', () =\u003e {\n  it('uses default size property (64) to calculate proper border radius (32)', () =\u003e {\n    expect(shallow(\u003cAvatar /\u003e)).toHaveStyleRule('border-radius', 32);\n  });\n});\n```\n\n## Assertation messages\n\n- Wrong value\n![](https://snag.gy/4Z07wJ.jpg)\n\n- Missing rule\n![](https://snag.gy/gbOw1J.jpg)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkureev%2Fjest-styled-components-matcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkureev%2Fjest-styled-components-matcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkureev%2Fjest-styled-components-matcher/lists"}