Skip to content

fix: resolve 5 cross-package bugs causing test failures#18

Open
stooit wants to merge 1 commit into
mainfrom
quantcode/job-e2e-tier3-2421-1779989268
Open

fix: resolve 5 cross-package bugs causing test failures#18
stooit wants to merge 1 commit into
mainfrom
quantcode/job-e2e-tier3-2421-1779989268

Conversation

@stooit
Copy link
Copy Markdown
Contributor

@stooit stooit commented May 28, 2026

Summary

Fixes all failing tests across the monorepo (13/13 now passing) by addressing 5 cross-package bugs:

  • Renamed hook import: useThrottleuseDebounce in apps/web/src/lib/api.ts, and re-exported as useSearchDebounce from packages/utils
  • DOM test environment: Added [test] environment config in bunfig.toml so UI component tests have access to document
  • Button accessibility: Added aria-label to icon-only <Button> for screen reader support
  • Date formatting: Changed format from dd/MM/yyyy to d/MM/yyyy to produce non-zero-padded day
  • DataTable stale closure: Used functional state update in sort handler to avoid capturing stale state

Assumptions

  • The bun:test TypeScript errors in test files are expected (no @types/bun installed) and not in scope
  • No test files were modified
  • No new dependencies were added

- Fix renamed hook import: useThrottle → useDebounce in apps/web/src/lib/api.ts
  and re-export as useSearchDebounce from packages/utils
- Add DOM test environment config in bunfig.toml for UI package tests
- Add aria-label to icon-only Button component for accessibility
- Fix date formatting to use non-zero-padded day (d/MM/yyyy)
- Fix stale closure in DataTable sort handler using functional state update
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