hugo-testing

Community

Test client-side Hugo JS with Bun and happy-dom.

Authorhughescr
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Testing client-side JavaScript in Hugo sites can be slow and flaky when done manually. This Skill provides a repeatable, lightweight workflow to verify DOM interactions and client-side behavior with Bun's test runner and happy-dom.

Core Features & Use Cases

  • Bun-based test runner: Run tests with bun test with minimal setup.
  • Happy-dom DOM mocking: Simulate window, document, localStorage, and other browser APIs for reliable tests.
  • Use Cases: Validate theme toggles, responsive behaviors, and dynamic content loading in Hugo themes and components.

Quick Start

Install Bun and dev dependencies: bun add -D happy-dom Create tests under tests/ and run: bun test Optional: run in watch mode: bun test --watch

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: hugo-testing
Download link: https://github.com/hughescr/claude-code-config/archive/main.zip#hugo-testing

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.