Skip to content

Add initial smoke tests and broken link check configuration#7

Merged
shakeelmohamed merged 6 commits into
mainfrom
dev
Jun 8, 2026
Merged

Add initial smoke tests and broken link check configuration#7
shakeelmohamed merged 6 commits into
mainfrom
dev

Conversation

@shakeelmohamed

Copy link
Copy Markdown
Member

This pull request introduces a basic automated test workflow and adds a comprehensive smoke test suite to ensure the integrity of the generated static site. It also improves the metadata and description for the "Clocks" project, and makes minor updates to the package scripts and project TODOs.

Automated Testing and Smoke Test Suite:

  • Adds a GitHub Actions workflow (.github/workflows/test.yml) to run tests automatically on push and pull request events, using Bun as the package manager and test runner.
  • Introduces a new smoke test suite in the tests/smoke directory with tests for:
    • Data file validation (data.test.js): Checks that metadata.json contains required fields and valid social links.
    • Link and asset integrity (links.test.js): Ensures all internal links, anchor fragments, and asset references in HTML files resolve correctly and are not broken.
    • Sitemap and HTML structure (smoke.test.js): Verifies sitemap correctness, mapping from URLs to files, presence of required HTML elements, and existence of key static assets.

Project Metadata and Description Improvements:

  • Updates the "Clocks" project (docs/projects/clock/index.html, src/projects/clock/index.liquid) to provide a consistent and descriptive summary for meta tags, Open Graph, Twitter cards, and visible page copy. [1] [2] [3] [4] [5]

Build and Test Script Updates:

  • Updates package.json scripts to run tests using Bun and moves the cspell lint to a posttest script for improved workflow compatibility.

Documentation and Planning:

  • Refines project planning in TODO.md, clarifying the 404 page requirements and updating notes for the about page. [1] [2]

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 8, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
10k24 d25edfb Jun 08 2026, 02:37 PM

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 8, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
website d25edfb Commit Preview URL

Branch Preview URL
Jun 08 2026, 02:38 PM

Comment thread tests/smoke/links.test.js Fixed
shakeelmohamed and others added 3 commits June 8, 2026 07:10
…tion or class'

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
@shakeelmohamed shakeelmohamed merged commit 09d86bc into main Jun 8, 2026
5 checks passed
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