Skip to content

fix: resolve cross-package test failures in TypeScript monorepo#23

Open
stooit wants to merge 1 commit into
mainfrom
quantcode/e2e-tier3-2393-1780158657
Open

fix: resolve cross-package test failures in TypeScript monorepo#23
stooit wants to merge 1 commit into
mainfrom
quantcode/e2e-tier3-2393-1780158657

Conversation

@stooit
Copy link
Copy Markdown
Contributor

@stooit stooit commented May 30, 2026

Summary

  • Fixed renamed hook import (useThrottleuseDebounce) in apps/web/src/lib/api.ts and re-exported as useSearchDebounce
  • Added happy-dom environment configuration to root and packages/ui bunfig.toml for DOM test support
  • Fixed Button component to pass through aria-label prop for accessibility compliance
  • Fixed DataTable stale closure bug in sort handler (functional state update)
  • Fixed date formatting to use single-digit day format (d/MM/yyyy)

Test Results

All 13 tests pass across 5 files. TypeScript type check passes (only expected bun:test module resolution warnings remain in test files).

Assumptions

  • The bun:test type errors are expected/acceptable since the project uses bun's test runner without @types/bun installed
  • The preload for happy-dom was added to root bunfig.toml so bun test works from both root and package directories

- Fix renamed hook import: useThrottle → useDebounce in api.ts, re-export as useSearchDebounce
- Add happy-dom environment to root and ui bunfig.toml for DOM test support
- Fix Button component to pass through aria-label prop for accessibility
- Fix DataTable stale closure bug in sort handler
- Fix date formatting to use single-digit day (d/MM/yyyy format)
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