{"id":18930224,"url":"https://github.com/terrymun/nx-nextjs-link-behavior-demo","last_synced_at":"2025-08-30T22:12:34.650Z","repository":{"id":73724004,"uuid":"534565825","full_name":"terrymun/nx-nextjs-link-behavior-demo","owner":"terrymun","description":"Demo of Next.js experimental Link behavior served with Nx","archived":false,"fork":false,"pushed_at":"2022-09-21T12:58:52.000Z","size":386,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-25T09:11:22.172Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CSS","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/terrymun.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":"2022-09-09T08:42:29.000Z","updated_at":"2022-09-09T08:42:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"68e2580d-70af-4f95-a3e9-43da7b6f049d","html_url":"https://github.com/terrymun/nx-nextjs-link-behavior-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/terrymun/nx-nextjs-link-behavior-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terrymun%2Fnx-nextjs-link-behavior-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terrymun%2Fnx-nextjs-link-behavior-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terrymun%2Fnx-nextjs-link-behavior-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terrymun%2Fnx-nextjs-link-behavior-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/terrymun","download_url":"https://codeload.github.com/terrymun/nx-nextjs-link-behavior-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terrymun%2Fnx-nextjs-link-behavior-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272913707,"owners_count":25014318,"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","status":"online","status_checked_at":"2025-08-30T02:00:09.474Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-08T11:36:57.955Z","updated_at":"2025-08-30T22:12:34.609Z","avatar_url":"https://github.com/terrymun.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\n# Nx Next.js Link behavior demo\n\nThis project was generated using [Nx](https://nx.dev) and it is used to demonstrate Jest failing to render `\u003cLink\u003e` component with experimental behavior.\n\nThe rendered output of this following template:\n\n```tsx\n\u003cLink href=\"https://example.com\" data-testid=\"link\"\u003e\n  \u003cstrong data-testid=\"content\"\u003eLink element with new behavior\u003c/strong\u003e\n\u003c/Link\u003e\n```\n\n...is different when checking on Jest vs when serving the site via `yarn start`.\n\n## Rendered output via Jest (incorrect)\n\nThis can be verified by checking the inline snapshot generated on `index.spec.tsx`:\n\n```tsx\n\u003cstrong\n  data-testid=\"content\"\n\u003e\n  Link element with new behavior\n\u003c/strong\u003e\n```\n\n## Actual rendered output on `yarn start` (correct)\n\nThis can be verified by running `yarn start` and checking the markup of the served page:\n\n```tsx\n\u003ca href=\"https://example.com\"\u003e\n  \u003cstrong\n    data-testid=\"content\"\n  \u003e\n    Link element with new behavior\n  \u003c/strong\u003e\n\u003c/a\u003e\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterrymun%2Fnx-nextjs-link-behavior-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fterrymun%2Fnx-nextjs-link-behavior-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterrymun%2Fnx-nextjs-link-behavior-demo/lists"}