DashboardcraftAlways update tests for workspace behav…

Always update tests for workspace behavior changes

Category: preference
Confidence: 0.80
ID: 01a08201-749b-76b1-90fa-46e33aefa035
Project ID: e16af391-c497-4837-b681-c849a5514499
Cross-project: No
Recalled in other projects: 1
Source session: 1Okgn0vvN7hdZmhlc
Created: 2026-09-03 20:45:44
Updated: 2026-09-08 17:12:08

Cross-Project Recalls

ProjectHitsLast recalled
opencode 2 8d ago

Content

When changing workspace parsing, resolution, configuration, discovery, CLI output, or publish workflows, inspect the existing resolution flow and add focused regression tests with the implementation. Cover exact values and errors for absent configuration, invalid external output, legacy-compatible names, empty lists, listing and active-workspace selection, valid/unknown/invalid/ambiguous/overlapping glob inputs, version gates, and concrete paths resolved relative to the config file. Test traversal/prototype-key rejection where relevant. Mock dependencies explicitly, restore mocks after each test, preserve unrelated working-tree changes, place tests in corresponding existing test files, and run focused Craft tests after each change.

Move to: