Skip to content

Conversation

@christian-byrne
Copy link
Contributor

Removes tests that appeared to be generated from an LLM hallucination, keeping only valid memory management tests. The removed tests included placeholder assertions like expect(true).toBe(true) and attempts to document memory leaks without actual GC capabilities.

Fixes #1132

Removed tests that were not actually testing functionality:
- Placeholder tests with expect(true).toBe(true)
- Documentation-only tests trying to "prove" memory leaks without GC
- Tests with console.log/warn statements
- Tests that documented solutions rather than testing behavior

Kept valid tests that verify actual behavior:
- Event listener registration and cleanup
- Widget reference management
- Multiple instance handling
- Subgraph reference management

Fixes #1132
@christian-byrne christian-byrne merged commit 6b3de73 into master Jul 22, 2025
3 checks passed
@christian-byrne christian-byrne deleted the test/cleanup-subgraph-memory-tests branch July 22, 2025 18:53
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.

Confirm validity of SubgraphMemory.test.ts

2 participants