Skip to content

fix(test): fix all 35 failing test suites#113

Merged
steilerDev merged 2 commits into
betafrom
fix/test-suite-failures
Feb 18, 2026
Merged

fix(test): fix all 35 failing test suites#113
steilerDev merged 2 commits into
betafrom
fix/test-suite-failures

Conversation

@steilerDev
Copy link
Copy Markdown
Owner

Summary

  • Server tests (18 suites): Add NodeNext module/moduleResolution transform override in jest.config.ts to fix import.meta.url compilation errors under ts-jest
  • Client tests (10 suites): Extract anonymous jest.fn() from jest.unstable_mockModule() factories to module-scope variables, fixing lost mock method references (.mockReset, .mockResolvedValue, etc.)
  • Router-mocking tests (2 suites): Replace jest.requireActual spread pattern for react-router-dom (caused OOM) with real routing via MemoryRouter + Routes + Route and a LocationDisplay helper for navigation assertions

All 53 test suites now pass (1072 tests, 0 failures). Typecheck and lint remain clean.

Test plan

  • npm test — 53/53 suites pass, 1072 tests, 0 failures
  • npm run typecheck — clean across all 3 workspaces
  • npm run lint — zero errors

🤖 Generated with Claude Code

Replace the empty <select> dropdown in the Add Dependency form with a
searchable WorkItemPicker component that queries the work items API with
debounced input. Also rename "Add Predecessor" heading to "Add Dependency".

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Server tests (18 suites): Add NodeNext module/moduleResolution transform
override for the server project in jest.config.ts, fixing import.meta.url
compilation errors in ts-jest.

Client tests (10 suites): Extract anonymous jest.fn() from inside
jest.unstable_mockModule() factories to module-scope variables, fixing
TypeError on mock methods (.mockReset, .mockResolvedValue) that were
lost when references were recovered via dynamic import + type cast.

Router-mocking tests (2 suites): Replace jest.requireActual spread
pattern for react-router-dom (which caused OOM) with real routing via
MemoryRouter + Routes + Route, using LocationDisplay helper for
navigation assertions.

All 53 test suites now pass (1072 tests, 0 failures).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@steilerDev steilerDev merged commit b1e7b96 into beta Feb 18, 2026
4 checks passed
@github-actions
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 1.8.0-beta.14 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@steilerDev steilerDev deleted the fix/test-suite-failures branch February 19, 2026 20:39
@github-actions
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 1.8.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants