{"id":21449648,"url":"https://github.com/dr3/rtl-debug","last_synced_at":"2025-03-17T02:20:26.496Z","repository":{"id":98236807,"uuid":"160848770","full_name":"dr3/RTL-debug","owner":"dr3","description":null,"archived":false,"fork":false,"pushed_at":"2018-12-20T10:09:47.000Z","size":107,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-23T12:11:48.459Z","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/dr3.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":"2018-12-07T16:30:12.000Z","updated_at":"2018-12-20T10:09:49.000Z","dependencies_parsed_at":"2023-03-13T16:04:12.527Z","dependency_job_id":null,"html_url":"https://github.com/dr3/RTL-debug","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/dr3%2FRTL-debug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dr3%2FRTL-debug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dr3%2FRTL-debug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dr3%2FRTL-debug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dr3","download_url":"https://codeload.github.com/dr3/RTL-debug/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243960607,"owners_count":20375106,"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-11-23T03:25:03.632Z","updated_at":"2025-03-17T02:20:26.476Z","avatar_url":"https://github.com/dr3.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Issue\n\nWhen using `npm link` to link a dependancy that uses `jest-styled-components` it doesnt return the css generated by styled components.\n\n# What is this repo?\n\nThis repo shows the bug, it has 2 examples, \n\n- psammead-headings which links to psammead-test-helpers (which uses `jest-styled-components`),\n\n- psammead-headings-with-test-helpers which has `jest-styled-components` as a dependancy directly\n\n\nWhen `psammead-headings` is locally linked to `psammead-test-helpers`, `jest-styled-components` via `react-testing-library` produces a fragment without styles, vs when `psammead-headings-with-test-helpers` uses `react-testing-library` and `jest-styled-components` which does have styles.\n\n\n# To Replicate issue\n\nInstall the top level repo and all child packages\n```\nnpm install\n```\n\nLink psammead-headings to psammead-test-helpers locally\n```\ncd packages/psammead-headings \u0026\u0026 npm link ../psammead-test-helpers \u0026\u0026 cd ..;\n```\n\nBuild the files and run the test\n```\nnpm run build \u0026\u0026 npm run test -- -u\n```\n\nSee that the snapshots generated are different, one has css included, one doesnt\n\n`packages/psammead-headings-with-test-helpers/src/__snapshots__/index.test.jsx.snap`  \n`packages/psammead-headings/src/__snapshots__/index.test.jsx.snap`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdr3%2Frtl-debug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdr3%2Frtl-debug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdr3%2Frtl-debug/lists"}