Skip to content

Testing and CI#239

Merged
HALQME merged 9 commits intomainfrom
testing
Apr 6, 2026
Merged

Testing and CI#239
HALQME merged 9 commits intomainfrom
testing

Conversation

@HALQME
Copy link
Copy Markdown
Contributor

@HALQME HALQME commented Apr 6, 2026

This pull request introduces a comprehensive test coverage strategy for the monorepo, focusing on achieving 100% coverage using bun:test across all app packages (share, server, and client). It adds detailed testing guides and patterns for each app type, updates documentation to reflect the switch to bun:test, and introduces new GitHub Actions workflows for CI and weekly dependency updates.

Test strategy and documentation:

  • Added .agents/plans/bun-test/PLAN.md outlining a workflow for achieving 100% test coverage with bun:test, including file structure mirroring, configuration, and coverage strategies.
  • Added detailed testing pattern guides for each app:
    • apps/share: Unit testing schemas, pure functions, and classes with Arktype, including coverage checklists.
    • apps/server: API, middleware, and webhook testing with hono/testing, mocking strategies, and coverage checklists.
    • apps/client: Vue component and composable testing with @vue/test-utils, including setup, mocking, and coverage checklists.
  • Updated apps/AGENTS.md to reflect the adoption of bun:test for all app packages, specifying test types and tools per app.

Tooling and workflow improvements:

  • Added @types/bun to apps/client/package.json to support Bun-specific typings for testing.
  • Introduced new GitHub Actions workflows:

HALQME and others added 9 commits April 2, 2026 09:23
- Generated 549 comprehensive tests across 3 apps
- apps/share: 123 tests (100% coverage) - Unit tests for types and validations
- apps/server: 336 tests (100% coverage) - API/Integration tests with Hono testClient
- apps/client: 90 tests (100% coverage) - Vue component tests with @vue/test-utils
- Added test patterns documentation for each app tier
- All tests pass without failures

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
- Keep tsconfig.json for production (no bun types)
- Create tsconfig.test.json for test files with bun types
- apps/server, apps/client, apps/share: all have separate configs
- Prevents accidental bun:test usage in production code

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
Co-authored-by: factory-droid[bot]
<138933559+factory-droid[bot]@users.noreply.github.com>
This commit replaces Oxfmt/Oxlint with knip for code quality enforcement.
Updates ignoreFiles in knip.json to exclude test directories for more accurate
linting.
- Use setup-bun with version specified
- Cron daily at midnight for weekly package updates
- Automated commit and PR created on update-weekly branch
@HALQME HALQME merged commit 4b0f532 into main Apr 6, 2026
5 checks passed
@HALQME HALQME deleted the testing branch April 6, 2026 02:36
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