fix: register DiagramOutputWriter in CLI integration test helper#39
fix: register DiagramOutputWriter in CLI integration test helper#39HandyS11 merged 3 commits intochore/fix-duplication-on-clifrom
Conversation
Co-authored-by: HandyS11 <62420910+HandyS11@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
This PR fixes a dependency injection issue in the CLI integration test helper that was causing all CLI integration tests to fail. The DiagramOutputWriter service, which is injected into all three CLI commands (VisualizeCommand, ErdCommand, and ClassDiagramCommand), was registered in the production application but missing from the test setup.
Changes:
- Added
DiagramOutputWritersingleton registration to the CLI test helper'sCreateApp()method to match the production DI configuration inProgram.cs
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@copilot the CI just failled with this error Run dotnet format ProjGraph.slnx --no-restore --verify-no-changes |
…at check Co-authored-by: HandyS11 <62420910+HandyS11@users.noreply.github.com>
Fixed in commit |
DiagramOutputWritersingleton registration toCliTestHelpers.CreateApp()DiagramOutputWriter.csto fixdotnet format --verify-no-changesCHARSET error✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.