@@ -11,6 +11,7 @@ import (
11
11
"github.com/stretchr/testify/require"
12
12
"github.com/supabase/cli/internal/testing/fstest"
13
13
"github.com/supabase/cli/internal/utils"
14
+ "github.com/supabase/cli/pkg/cast"
14
15
)
15
16
16
17
func TestInitCommand (t * testing.T ) {
@@ -70,7 +71,7 @@ func TestInitCommand(t *testing.T) {
70
71
// Setup in-memory fs
71
72
fsys := & afero.MemMapFs {}
72
73
// Run test
73
- assert .NoError (t , Run (context .Background (), fsys , utils .Ptr (true ), nil , utils.InitParams {}))
74
+ assert .NoError (t , Run (context .Background (), fsys , cast .Ptr (true ), nil , utils.InitParams {}))
74
75
// Validate generated vscode settings
75
76
exists , err := afero .Exists (fsys , settingsPath )
76
77
assert .NoError (t , err )
@@ -84,7 +85,7 @@ func TestInitCommand(t *testing.T) {
84
85
// Setup in-memory fs
85
86
fsys := & afero.MemMapFs {}
86
87
// Run test
87
- assert .NoError (t , Run (context .Background (), fsys , utils .Ptr (false ), nil , utils.InitParams {}))
88
+ assert .NoError (t , Run (context .Background (), fsys , cast .Ptr (false ), nil , utils.InitParams {}))
88
89
// Validate vscode settings file isn't generated
89
90
exists , err := afero .Exists (fsys , settingsPath )
90
91
assert .NoError (t , err )
@@ -98,7 +99,7 @@ func TestInitCommand(t *testing.T) {
98
99
// Setup in-memory fs
99
100
fsys := & afero.MemMapFs {}
100
101
// Run test
101
- assert .NoError (t , Run (context .Background (), fsys , nil , utils .Ptr (true ), utils.InitParams {}))
102
+ assert .NoError (t , Run (context .Background (), fsys , nil , cast .Ptr (true ), utils.InitParams {}))
102
103
// Validate generated intellij deno config
103
104
exists , err := afero .Exists (fsys , denoPath )
104
105
assert .NoError (t , err )
@@ -109,7 +110,7 @@ func TestInitCommand(t *testing.T) {
109
110
// Setup in-memory fs
110
111
fsys := & afero.MemMapFs {}
111
112
// Run test
112
- assert .NoError (t , Run (context .Background (), fsys , nil , utils .Ptr (false ), utils.InitParams {}))
113
+ assert .NoError (t , Run (context .Background (), fsys , nil , cast .Ptr (false ), utils.InitParams {}))
113
114
// Validate intellij deno config file isn't generated
114
115
exists , err := afero .Exists (fsys , denoPath )
115
116
assert .NoError (t , err )
0 commit comments