Skip to content

fix: resolve all failing tests across monorepo packages#22

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

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

Conversation

@stooit
Copy link
Copy Markdown
Contributor

@stooit stooit commented May 30, 2026

Summary

  • Fixed useSearchDebounce / useThrottle export mismatch by re-exporting useDebounce under the expected consumer names in apps/web/src/lib/api.ts
  • Added aria-label prop passthrough to the Button component for icon-only button accessibility
  • Fixed stale closure bug in DataTable sort handler by using functional state update (setSortDir(prev => ...))
  • Fixed date format string in packages/utils/src/format/date.ts to use non-zero-padded day (d/MM/yyyy)
  • Configured happy-dom DOM environment for packages/ui tests via bunfig.toml preload

Verification

All 13 tests pass (bun test) and tsc --noEmit reports no source-file type errors.

Assumptions

  • The bun:test module resolution warnings in test files are expected (bun provides these at runtime) and not real errors
  • The useDebounce hook in packages/utils is the correct implementation backing both useSearchDebounce and useThrottle consumer references

- Fix useSearchDebounce/useThrottle export by re-exporting useDebounce under expected names (apps/web)
- Add aria-label prop support to Button component (packages/ui)
- Fix stale closure bug in DataTable sort handler using functional state update (packages/ui)
- Fix date format string to use non-zero-padded day (packages/utils)
- Configure happy-dom test environment via bunfig.toml preload (packages/ui)
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