Repository navigation
fix(graph): link the implementation next to a resolved declaration file - #270
Merged
adityankale190895 merged 1 commit intoNov 18, 2026
Merged
Conversation
…e it TypeScript resolves ./foo and ./foo.js to foo.d.ts when a hand-written declaration sits next to foo.js, so the graph's only edge went to the declaration. The test runner loads foo.js, and a change to it reached no importer: no tests were selected and nothing fell back. An import that resolves to a repository declaration now also gets an edge to its implementation (foo.js or foo.jsx, foo.mjs for .d.mts, foo.cjs for .d.cts) when that file exists and is not excluded. Signed-off-by: FredApps <[email protected]>
FredApps
commented
Nov 17, 2026
FredApps
left a comment
Contributor
Author
There was a problem hiding this comment.
Cross-review of 5eefb33.
Checked:
- The fix matches #269. An import that TypeScript resolves to a repository
foo.d.ts/.d.mts/.d.ctsalso gets an edge to the siblingfoo.js/.jsx,.mjsor.cjs. That file goes throughfollowImplementation, so the parse budget and its blocker still apply. Excluded directories andnode_modulesare skipped. - The new tests (
./foo.js,./foo, and.d.mtspaired with.mjs) fail withsrc/reverted (0 of 3 pass) and pass with the fix.tests/repo/dts-sibling-implementation.test.tsis listed inrelease-files.json. The commit is DCO-signed. The branch is level with main. CI is green.
Fixed: nothing.
Still open: none.
FredApps
added a commit
to FredApps/core
that referenced
this pull request
Nov 18, 2026
…ffCI#270 The manifest is an unordered set, and the PRs listed above add their entries at the same line. Moving this entry one line away lets them merge in either order without a conflict. Signed-off-by: FredApps <[email protected]>
FredApps
marked this pull request as ready for review
November 18, 2026 00:55
adityankale190895
pushed a commit
that referenced
this pull request
Nov 18, 2026
… Maven tests (#272) * fix(impact): let declared inputs and alwaysRunTests select pytest and Maven tests knownTestPaths only checked graph nodes while iterating profile.tests, the JavaScript test locations. pytest and Maven repositories have none, so the known-test list was empty. Every declared input then failed with "Declared input ... selects no tests; full validation required", and alwaysRunTests globs silently selected nothing. Every graph node the test-file matcher accepts is now a known test, whether or not the profile lists JavaScript test locations. A declaration that matches no test still falls back. Signed-off-by: FredApps <[email protected]> * chore: move the release-files.json entry so it merges cleanly with #270 The manifest is an unordered set, and the PRs listed above add their entries at the same line. Moving this entry one line away lets them merge in either order without a conflict. Signed-off-by: FredApps <[email protected]> --------- Signed-off-by: FredApps <[email protected]>
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.
Fixes #269
When an import resolves to a
.d.ts,.d.mtsor.d.ctsfile, the graph also adds an edge to the sibling implementation (.js/.jsx,.mjsor.cjs) when it exists in the repository and is not excluded or undernode_modules. The implementation's own imports are followed as before.Validation:
tests/repo/dts-sibling-implementation.test.ts:./foo.js,./fooand.d.mts/.mjscases fail onmainand pass here.npm run typecheck,npm test(1170 pass),npm run build,npm run audit:boundary.