Skip to content

Commit

Permalink
feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
julienrbrt committed Jan 15, 2025
1 parent d3a58f9 commit f6993d5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion _registry/ignite.apps.cca.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"appName": "cca",
"appName": "CCA",
"slug": "cca",
"appDescription": "Scaffold a blockchain frontend in seconds with Ignite",
"ignite": ">28.7.0",
"dependencies": {},
Expand Down
7 changes: 7 additions & 0 deletions cca/integration/app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ func TestCCA(t *testing.T) {
})
assertGlobalPlugins(t, nil)

// no web folder yet
_, err = os.Stat(filepath.Join(app.SourcePath(), "web"))
require.Error(err)

buf := &bytes.Buffer{}
env.Must(env.Exec("run cca",
step.NewSteps(step.New(
Expand All @@ -55,6 +59,9 @@ func TestCCA(t *testing.T) {
))

require.Contains(buf.String(), "Ignite CCA added")
ccaFolder, err := os.Stat(filepath.Join(app.SourcePath(), "web"))
require.NoError(err)
require.True(ccaFolder.IsDir())
}

func assertLocalPlugins(t *testing.T, app envtest.App, expectedPlugins []pluginsconfig.Plugin) {
Expand Down

0 comments on commit f6993d5

Please sign in to comment.