package lighthouse import ( "testing" "git.golem15.com/golem15/summercms/modules/backpack" "gorm.io/gorm" ) // DocsEnv returns an app with the memory driver on a fresh migrated // database of this package's Postgres harness, with a job worker running, // for the database-backed docs examples in example_test.go. It skips under // -short and fails when the harness has no database, like the package's // other database tests. func DocsEnv(t *testing.T) (*backpack.App, *Service, *gorm.DB) { t.Helper() env := newLHEnv(t, nil, nil) return env.app, env.svc, env.gdb }