{"id":15511719,"url":"https://github.com/benface/jest-matcher-css","last_synced_at":"2025-10-12T08:31:50.886Z","repository":{"id":33230932,"uuid":"156133193","full_name":"benface/jest-matcher-css","owner":"benface","description":"Jest matcher to assert that a string of CSS matches another one","archived":true,"fork":false,"pushed_at":"2022-12-30T17:43:19.000Z","size":292,"stargazers_count":3,"open_issues_count":6,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-29T02:15:45.751Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":false,"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/benface.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2018-11-04T22:56:10.000Z","updated_at":"2024-12-15T18:55:13.000Z","dependencies_parsed_at":"2023-01-15T00:00:59.357Z","dependency_job_id":null,"html_url":"https://github.com/benface/jest-matcher-css","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benface%2Fjest-matcher-css","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benface%2Fjest-matcher-css/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benface%2Fjest-matcher-css/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benface%2Fjest-matcher-css/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/benface","download_url":"https://codeload.github.com/benface/jest-matcher-css/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236188352,"owners_count":19109392,"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-02T09:53:11.676Z","updated_at":"2025-10-12T08:31:50.501Z","avatar_url":"https://github.com/benface.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# CSS Matcher for Jest\n\n## Installation\n\n```bash\nnpm install jest-matcher-css\n```\n\n## Usage\n\nIn your Jest config:\n```json\n\"jest\": {\n  \"setupTestFrameworkScriptFile\": \"./setup.js\"\n}\n```\n\nIn `setup.js`:\n```js\nconst cssMatcher = require('jest-matcher-css');\n\nexpect.extend({\n  toMatchCss: cssMatcher,\n});\n```\n\n## Credit\n\nWritten by [Adam Wathan](https://github.com/adamwathan) for [Tailwind CSS](https://github.com/tailwindcss/tailwindcss/blob/master/jest/customMatchers.js). I moved it into its own module to use it in a couple of Tailwind plugins.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenface%2Fjest-matcher-css","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenface%2Fjest-matcher-css","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenface%2Fjest-matcher-css/lists"}