Path: blob/main/integration/other_components/cmd_chain_registry_test.go
1007 views
//go:build !relayer12package other_components_test34import (5"os"6"path/filepath"7"testing"89"github.com/stretchr/testify/require"1011"github.com/ignite/cli/v29/ignite/pkg/cmdrunner/step"12envtest "github.com/ignite/cli/v29/integration"13)1415func TestCreateChainRegistry(t *testing.T) {16var (17env = envtest.New(t)18app = env.ScaffoldApp("github.com/test/mars")19)2021env.Must(env.Exec("create chain-registry files",22step.NewSteps(step.New(23step.Exec(envtest.IgniteApp,24"s",25"chain-registry",26),27step.Workdir(app.SourcePath()),28)),29))3031_, statErr := os.Stat(filepath.Join(app.SourcePath(), "chain.json"))32require.False(t, os.IsNotExist(statErr), "chain.json cannot be found")3334_, statErr = os.Stat(filepath.Join(app.SourcePath(), "assetlist.json"))35require.False(t, os.IsNotExist(statErr), "assetlist.json cannot be found")3637app.EnsureSteady()38}394041