1package migrate23import (4 "context"5 "testing"67 "github.com/charmbracelet/soft-serve/pkg/config"8 "github.com/charmbracelet/soft-serve/pkg/db/internal/test"9)1011func TestMigrate(t *testing.T) {12 // XXX: we need a config.Config in the context for the migrations to run13 // properly. Some migrations depend on the config being present.14 ctx := config.WithContext(context.TODO(), config.DefaultConfig())15 dbx, err := test.OpenSqlite(ctx, t)16 if err != nil {17 t.Fatal(err)18 }19 if err := Migrate(ctx, dbx); err != nil {20 t.Errorf("Migrate() => %v, want nil error", err)21 }22}