Skip to content

test: cover client canonical metadata after hydration - #197

Open
Vamsi-2581 wants to merge 1 commit into
classmethod:masterfrom
Vamsi-2581:codex/test-client-canonical-meta-194
Open

Vamsi-2581 wants to merge 1 commit into
classmethod:masterfrom
Vamsi-2581:codex/test-client-canonical-meta-194

Conversation

@Vamsi-2581

Copy link
Copy Markdown

Summary

Add focused coverage for the generated client metadata behavior introduced in #194. The test executes the generated script with node:vm, simulates Notion rewriting canonical, og:url, and twitter:url tags, and verifies that the worker restores the canonical URL for the home page, a mapped slug, and an unmapped page ID. It includes duplicate tags and exercises observer callbacks after navigation, so the former worker-only MY_DOMAIN reference in the client script would fail the test.

This separate regression-test follow-up was invited by the maintainer on #195 after the behavior fix merged in #194.

Validation

  • Not run locally. The repository's pull-request workflow runs npm run build and npm test.

AI assistance

Prepared with OpenAI Codex assistance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant