Skip to content

fix: resolve all failing tests across monorepo packages#2

Open
stooit wants to merge 1 commit into
mainfrom
quantcode/job-e2e-tier3-2337-1779432473
Open

fix: resolve all failing tests across monorepo packages#2
stooit wants to merge 1 commit into
mainfrom
quantcode/job-e2e-tier3-2337-1779432473

Conversation

@stooit
Copy link
Copy Markdown
Contributor

@stooit stooit commented May 22, 2026

Summary

  • Fixed useSearchDebounce export in apps/web/src/lib/api.ts — the utility hook was renamed to useDebounce in packages/utils but the old import name was still used
  • Added aria-label attribute to packages/ui/src/components/Button/Button.tsx for accessibility compliance
  • Fixed stale closure bug in packages/ui/src/components/DataTable/DataTable.tsx — sort handler now uses functional state update to avoid capturing stale state
  • Fixed date formatting in packages/utils/src/format/date.ts — day no longer zero-padded (uses d/MM/yyyy format)
  • Configured test environment — root bunfig.toml now preloads happy-dom setup so DOM globals are available in all test files

Verification

All 13 tests pass and tsc --noEmit reports zero type errors.

Constraints followed

  • No test files modified
  • No new dependencies added
  • Only source/config files changed

- Fix useSearchDebounce export in apps/web by importing useDebounce from @e2e/utils
- Add aria-label to Button component for accessibility test
- Fix stale closure bug in DataTable sort handler using functional state update
- Fix date formatting to use day without leading zero (d/MM/yyyy)
- Configure root bunfig.toml preload for happy-dom global registration
- Update tsconfig to include proper paths
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