package testutil import ( "mengstack/internal/config" "testing" "go.uber.org/zap" "go.uber.org/zap/zaptest" ) // TestLogger returns a zap logger suitable for use in tests. func TestLogger(t *testing.T) *zap.Logger { return zaptest.NewLogger(t) } // TestConfig returns a minimal config for unit tests. func TestConfig() *config.Config { return &config.Config{ Server: config.ServerConfig{ Port: 0, Mode: "test", }, Database: config.DatabaseConfig{ Host: "localhost", Port: 5432, User: "test", Password: "test", DBName: "mengstack_test", SSLMode: "disable", }, Redis: config.RedisConfig{ Addr: "localhost:6379", }, JWT: config.JWTConfig{ Secret: "test-secret", AccessExpiryMinutes: 30, RefreshExpiryDays: 7, Issuer: "test", }, Log: config.LogConfig{ Level: "debug", Format: "console", }, } }