Skip to content

chore: remove ignored tests and disconnect test infrastructure - #559

Merged
magnus-madsen merged 1 commit into
masterfrom
chore/remove-ignored-and-disconnect-tests
Jul 28, 2026
Merged

chore: remove ignored tests and disconnect test infrastructure#559
magnus-madsen merged 1 commit into
masterfrom
chore/remove-ignored-and-disconnect-tests

Conversation

@magnus-madsen

Copy link
Copy Markdown
Member

Summary

Removes tests that never ran and the disconnect test together with all of its supporting infrastructure.

Ignored (test.skip) tests

  • rename: Should rename function, Should rename function-use
  • implementation: Should find Dividable trait implementation

Also drops code left dead by their removal: the testImplementations helper and its normalizeLocation import, plus the /*!area1*/ / /*!area2*/ markers in the rename test workspace (verified unused elsewhere; the surviving variable-rename tests self-locate their own markers and are unaffected).

Server disconnect test + infrastructure

  • The test file and its disconnect test workspace
  • Client: the simulateDisconnect command and its flix.simulateDisconnect registration
  • Server: the handleDisconnect handler and its onNotification wiring
  • Protocol: the now-dead apiDisconnect = 'api/disconnect' enum member, removed from both mirrored copies (client/src/protocol/requests.ts, server/src/engine/jobs.ts)

Notes / callouts

  • apiDisconnect enum member removed entirely. That enum mirrors the Flix compiler's Scala LSP API, so api/disconnect is a real compiler command — but nothing in this repo sends it anymore, so it would be dead code. The mirror is already non-exhaustive (the client copy omits several lsp/* entries the server has). Happy to restore just those two lines if we'd rather keep it as API documentation.
  • Coverage gap: Server disconnect was the only test exercising the auto-reconnect path, so there is now no test coverage for reconnect.
  • Left the flix.allJobsFinished / flix.checkCount test commands untouched — they support the other suites' synchronization, not the disconnect test.

Verification

  • tsc --build --force (client + server + test) passes clean.

🤖 Generated with Claude Code

Remove the three `test.skip` tests that were never run:
- rename: "Should rename function" / "Should rename function-use"
- implementation: "Should find Dividable trait implementation"

Also drop the now-unused `testImplementations` helper, the
`normalizeLocation` import it relied on, and the dead `area1`/`area2`
markers in the rename test workspace.

Remove the `Server disconnect` test and its entire supporting chain:
- test file and `disconnect` test workspace
- client `simulateDisconnect` command + registration
- server `handleDisconnect` handler + notification wiring
- the now-dead `apiDisconnect` enum member (both mirrored copies)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@magnus-madsen
magnus-madsen merged commit 878f74e into master Jul 28, 2026
7 checks passed
@magnus-madsen
magnus-madsen deleted the chore/remove-ignored-and-disconnect-tests branch July 28, 2026 13:39
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