Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bmpickford/hreflang-checker

Programatically check hreflangs at a given url using existing js test tooling
https://github.com/bmpickford/hreflang-checker

cypress hreflang playwright seo

Last synced: 4 days ago
JSON representation

Programatically check hreflangs at a given url using existing js test tooling

Awesome Lists containing this project

README

        

# hreflang-checker

Easily check your HTML hreflangs are valid in your end to end or integration suite. This package validates

- [x] Language codes are valid
- [x] All alternate pages have a 200 response
- [x] Hreflangs are biderectional
- [x] Hreflangs are self referencial
- [x] An x-default tag is present

For more information on hreflangs, see https://developers.google.com/search/docs/specialty/international/localized-versions#all-method-guidelines

## Libraries

| Testing library | Link |
| --------------- | --------------------------------------------- |
| Jest | [link](./packages/hreflang-checker/README.md) |
| Mocha | [link](./packages/hreflang-checker/README.md) |
| Playwright | [link](./packages/playwright/README.md) |
| Cypress (WIP) | [link](./packages/cypress/README.md) |