Add virtual-twin type-identity regression tests (#229) - #240
Closed
NullVoxPopuli-ai-agent wants to merge 1 commit into
Closed
Add virtual-twin type-identity regression tests (#229)#240NullVoxPopuli-ai-agent wants to merge 1 commit into
NullVoxPopuli-ai-agent wants to merge 1 commit into
Conversation
Covers the graft behavior fixed in ember-tooling#235, under both project and projectService (feature-detected; v7's experimental service can't hold .gts files in-project, so the mode is registered only when a probe parse yields a program that contains virtual twins): - every virtual twin present shares statements with the .gts root, - a private-member class has one type identity across import paths, - an already-synced program is not re-grafted on later parses. These tests FAIL against the parser without ember-tooling#235 — that failure is the ember-tooling#229 bug (distinct class symbols per import path, binder state rewritten under a live checker). Merge ember-tooling#235 first. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Contributor
🏎️ Benchmark ComparisonParse
Full mitata output
Full mitata output |
NullVoxPopuli-ai-agent
pushed a commit
to NullVoxPopuli-ai-agent/ember-eslint-parser
that referenced
this pull request
Jul 6, 2026
Three assertions, each under both project and projectService (feature-detected; v7's experimental service can't hold .gts files in-project, so the mode is registered only when a probe parse yields a program that contains virtual twins — 3 tests on tsee 7, 6 on tsee 8): - every virtual twin present shares statements with the .gts root, - a private-member class has one type identity across import paths, - an already-synced program is not re-grafted on later parses. Against the unfixed parser these fail — demonstrated on CI in ember-tooling#240: the re-graft canaries fail on TS 5.7, and the twin-graft/type-identity tests additionally fail on TS 6 cells where the .mts twin shadows the old single-candidate fallback. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Author
|
Served its purpose: the CI run on this PR demonstrates these tests failing against the unfixed parser — |
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.
Tests extracted from #235 so the fix and its regression tests can be reviewed separately. Merge #235 first — these tests intentionally fail against the current parser; the failures are the #229 bug.
What's covered
Three assertions, each run under both
projectandprojectService(the service mode is feature-detected: its option spelling varies across typescript-eslint majors, and v7's experimental service can't hold.gtsfiles in-project, so it's registered only when a probe parse yields a program that actually contains virtual twins — 3 tests on tsee 7, 6 on tsee 8):.tsresolution virtual and (where present) the.mtsreadDirectory twin sharestatementswith the.gtsroot..gtsroot and via its virtual twins, and is assignable to itself in both directions.Expected failures without #235
Which tests fail depends on the toolchain, because the
.mtstwin only appears in the program on newer TS versions:2 failed | 4 passed);.mtstwin and leaves the.tsvirtual — the copy every extensionless import resolves to — ungrafted.After #235, all 6 pass on every matrix cell (verified on #235's CI before the split).
🤖 Generated with Claude Code