mukan-ignite/integration/single/cmd_singleton_test.go
Mukan Erkin Törük 26b204bd04
Some checks are pending
Docs Deploy / build_and_deploy (push) Waiting to run
Generate Docs / cli (push) Waiting to run
Generate Config Doc / cli (push) Waiting to run
Go formatting / go-formatting (push) Waiting to run
Check links / markdown-link-check (push) Waiting to run
Integration / pre-test (push) Waiting to run
Integration / test on (push) Blocked by required conditions
Integration / status (push) Blocked by required conditions
Lint / Lint Go code (push) Waiting to run
Test / test (ubuntu-latest) (push) Waiting to run
feat: fork Ignite CLI v29 as Mukan Ignite — remove cosmos-sdk restrictions
2026-05-11 03:31:37 +03:00

77 lines
1.3 KiB
Go

//go:build !relayer
package single_test
import (
"testing"
envtest "github.com/ignite/cli/v29/integration"
)
func TestCreateSingleton(t *testing.T) {
var (
env = envtest.New(t)
app = env.ScaffoldApp("github.com/test/blog")
servers = app.RandomizeServerPorts()
)
app.Scaffold(
"create an singleton type",
false,
"single",
"user", "email",
)
app.Scaffold(
"create an singleton type with custom path",
false,
"single",
"appPath", "email", "--path", app.SourcePath(),
)
app.Scaffold(
"create an singleton type with no message",
false,
"single",
"no-message", "email", "--no-message",
)
app.Scaffold(
"create a module",
false,
"module",
"example", "--require-registration",
)
app.Scaffold(
"create another type",
false,
"list",
"user", "email", "--module", "example",
)
app.Scaffold(
"create another type with a custom field type",
false,
"list",
"user-detail", "user:User", "--module", "example",
)
app.Scaffold(
"should prevent creating an singleton type with a typename that already exist",
true,
"single",
"user", "email", "--module", "example",
)
app.Scaffold(
"create an singleton type in a custom module",
false,
"single",
"singleuser", "email", "--module", "example",
)
app.EnsureSteady()
app.RunChainAndSimulateTxs(servers)
}