chore(claude-do): merge Bind-Churn: DetailsIsland.BindAsync feuert ~1900x/Tag, 91-96
ClaudeDo-Task: 351cacc4-3e11-4b3e-a89e-4efc4bd0448e
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
using System.Runtime.CompilerServices;
|
||||
using ClaudeDo.Ui.Services;
|
||||
|
||||
namespace ClaudeDo.Worker.Tests;
|
||||
|
||||
internal static class TestSetup
|
||||
{
|
||||
// Runs once when this test assembly loads, before any test executes. UiVm/*Tests.cs construct
|
||||
// real TasksIslandViewModel instances, whose LoadForListAsync/ReorderAsync/ReconcileTickAsync
|
||||
// call OperationTiming.Shared.Record directly — without a redirect those writes land in the
|
||||
// live app's ~/.todo-app/logs/operation-timing.ndjson (see ClaudeDo.Ui.Tests' TestSetup for
|
||||
// the same trap on the Ui.Tests side).
|
||||
[ModuleInitializer]
|
||||
internal static void RedirectOperationTimingAwayFromRealAppData()
|
||||
{
|
||||
var path = Path.Combine(Path.GetTempPath(), "claudedo-worker-tests", $"operation-timing-{Environment.ProcessId}.ndjson");
|
||||
OperationTiming.Shared = new OperationTiming(path);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user