Skip to content

Add Vitest test suite with CI integration#12

Closed
Copilot wants to merge 5 commits intomainfrom
copilot/sub-pr-10-again
Closed

Add Vitest test suite with CI integration#12
Copilot wants to merge 5 commits intomainfrom
copilot/sub-pr-10-again

Conversation

Copy link

Copilot AI commented Feb 6, 2026

Adds comprehensive test coverage for the PDF viewer web component using Vitest and @open-wc/testing.

Test Coverage

  • Component tests for pdf-viewer, pdf-toolbar, pdf-canvas, pdf-sidebar, and theme configuration
  • Helper utilities for text normalization
  • Integration tests for complete user workflows
  • Mock implementations for PDF.js worker and Canvas APIs

CI Integration

  • GitHub Actions workflow runs tests on push and pull requests
  • Uses happy-dom for lightweight DOM testing
  • Coverage reporting configured with exclusions for styles and build artifacts

Documentation

  • Added testing section to main README with basic commands
  • Removed verbose test/README.md to keep documentation focused
yarn test              # Run all tests
yarn test --watch      # Watch mode
yarn test:coverage     # With coverage

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: jdmcleod <44909026+jdmcleod@users.noreply.github.com>
Copilot AI changed the title [WIP] Add vibe coded test suite using vitest Add Vitest test suite with CI integration Feb 6, 2026
Copilot AI requested a review from jdmcleod February 6, 2026 16:15
Base automatically changed from tests to main February 6, 2026 16:21
@jdmcleod jdmcleod marked this pull request as ready for review February 6, 2026 16:22
@jdmcleod jdmcleod closed this Feb 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants