Files
玉澜 5c7407532a refactor(app): inline mcp command surface and retire CatalogFixtureEnv
The mcp command now delivers its final surface in NewMCPCommand instead
of root.go overriding Hidden/Short/Long after construction.
CatalogFixtureEnv no longer gates anything once discovery is gone:
endpoint resolution is the dynamic server registry only, so a miss is
terminal by design.
2026-08-03 22:04:02 +08:00

22 lines
413 B
Go

package cli_test
import (
"os"
"testing"
)
func TestMain(m *testing.M) {
configDir, err := os.MkdirTemp("", "dws-cli-test-config-")
if err != nil {
panic(err)
}
os.Setenv("DWS_CONFIG_DIR", configDir)
// Tests that construct app root commands must remain serial because root
// construction initializes process-wide helper dependencies.
code := m.Run()
_ = os.RemoveAll(configDir)
os.Exit(code)
}