fix(test): fix all 35 failing test suites#113
Merged
Conversation
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>
Contributor
|
🎉 This PR is included in version 1.8.0-beta.14 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Contributor
|
🎉 This PR is included in version 1.8.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
NodeNextmodule/moduleResolution transform override injest.config.tsto fiximport.meta.urlcompilation errors under ts-jestjest.fn()fromjest.unstable_mockModule()factories to module-scope variables, fixing lost mock method references (.mockReset,.mockResolvedValue, etc.)jest.requireActualspread pattern forreact-router-dom(caused OOM) with real routing viaMemoryRouter+Routes+Routeand aLocationDisplayhelper for navigation assertionsAll 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 failuresnpm run typecheck— clean across all 3 workspacesnpm run lint— zero errors🤖 Generated with Claude Code