Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add structured data testing #101

Open
3 tasks
fulldecent opened this issue Sep 12, 2024 · 0 comments
Open
3 tasks

Add structured data testing #101

fulldecent opened this issue Sep 12, 2024 · 0 comments

Comments

@fulldecent
Copy link
Owner

fulldecent commented Sep 12, 2024

Add structured-data-testing-tool

See example https://github.com/ThatGuySam/doesitarm/blob/6e11fbe8e79156282aa9c5d61f87808182814325/test/main.js#L8

Specifically, we want to ensure that any json+ld scripts in build/**/*.html will have the correct schema formats.


Before we start this, do a simple test across all our pages with like

find | exec yarn dlx structured-data-testing-tool test...

If there are some errors on any built page on our sites then setting up this testing will be a win


End result:

  • Add script to package.json to validate after build
  • Add it to our CI testing pipeline after build
  • Create test cases with expected failures and include that to CI build (see existing CI build and fixtures for to check HTML Validate rules are working)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant