Skip to content

Fix test failures after PersistenceCoordinator integration - #249

Merged
malibio merged 2 commits into
mainfrom
feature/issue-245-fix-test-infrastructure
Oct 12, 2025
Merged

malibio merged 2 commits into
mainfrom
feature/issue-245-fix-test-infrastructure

Conversation

@malibio

@malibio malibio commented Oct 12, 2025

Copy link
Copy Markdown
Collaborator

Closes #245

malibio and others added 2 commits October 12, 2025 13:31
- Initialize PersistenceCoordinator in global-setup.ts with test mode enabled
- Add cleanup hooks in setup.ts (beforeEach/afterEach) for test isolation
- Fixes DatabaseInitializationError in service tests
- Fixes race conditions and FOREIGN KEY violations in integration tests

This infrastructure change fixes ALL failing tests by ensuring proper
coordinator initialization and cleanup for every test.

Closes #245

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Document that test mode is a tactical solution and reference issue #248
for future work to replace with proper vi.mock() implementation.

Addresses code review feedback from PR #249.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@malibio
malibio merged commit 78b36c5 into main Oct 12, 2025
@malibio
malibio deleted the feature/issue-245-fix-test-infrastructure branch October 12, 2025 11:50
malibio added a commit that referenced this pull request Feb 4, 2026
* Fix test infrastructure: Add PersistenceCoordinator setup

- Initialize PersistenceCoordinator in global-setup.ts with test mode enabled
- Add cleanup hooks in setup.ts (beforeEach/afterEach) for test isolation
- Fixes DatabaseInitializationError in service tests
- Fixes race conditions and FOREIGN KEY violations in integration tests

This infrastructure change fixes ALL failing tests by ensuring proper
coordinator initialization and cleanup for every test.

Closes #245

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>

* Add technical debt comment for test mode

Document that test mode is a tactical solution and reference issue #248
for future work to replace with proper vi.mock() implementation.

Addresses code review feedback from PR #249.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>
malibio added a commit that referenced this pull request Feb 5, 2026
* Fix test infrastructure: Add PersistenceCoordinator setup

- Initialize PersistenceCoordinator in global-setup.ts with test mode enabled
- Add cleanup hooks in setup.ts (beforeEach/afterEach) for test isolation
- Fixes DatabaseInitializationError in service tests
- Fixes race conditions and FOREIGN KEY violations in integration tests

This infrastructure change fixes ALL failing tests by ensuring proper
coordinator initialization and cleanup for every test.

Closes #245

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>

* Add technical debt comment for test mode

Document that test mode is a tactical solution and reference issue #248
for future work to replace with proper vi.mock() implementation.

Addresses code review feedback from PR #249.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>
malibio added a commit that referenced this pull request Feb 26, 2026
* Fix test infrastructure: Add PersistenceCoordinator setup

- Initialize PersistenceCoordinator in global-setup.ts with test mode enabled
- Add cleanup hooks in setup.ts (beforeEach/afterEach) for test isolation
- Fixes DatabaseInitializationError in service tests
- Fixes race conditions and FOREIGN KEY violations in integration tests

This infrastructure change fixes ALL failing tests by ensuring proper
coordinator initialization and cleanup for every test.

Closes #245

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>

* Add technical debt comment for test mode

Document that test mode is a tactical solution and reference issue #248
for future work to replace with proper vi.mock() implementation.

Addresses code review feedback from PR #249.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>
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.

Fix test failures after PersistenceCoordinator integration

1 participant