@@ -16,6 +16,7 @@ import (
16
16
"github.com/spf13/afero"
17
17
"github.com/stretchr/testify/assert"
18
18
"github.com/stretchr/testify/mock"
19
+ "github.com/stretchr/testify/require"
19
20
"github.com/supabase/cli/internal/testing/apitest"
20
21
"github.com/supabase/cli/internal/utils"
21
22
"github.com/supabase/cli/internal/utils/flags"
@@ -90,7 +91,7 @@ func TestWriteForm(t *testing.T) {
90
91
t .Run ("writes import map" , func (t * testing.T ) {
91
92
var buf bytes.Buffer
92
93
form := multipart .NewWriter (& buf )
93
- form .SetBoundary ("test" )
94
+ require . NoError ( t , form .SetBoundary ("test" ) )
94
95
// Setup in-memory fs
95
96
fsys := afero.FromIOFS {FS : testImports }
96
97
// Run test
@@ -99,10 +100,7 @@ func TestWriteForm(t *testing.T) {
99
100
VerifyJwt : cast .Ptr (true ),
100
101
EntrypointPath : "testdata/nested/index.ts" ,
101
102
ImportMapPath : cast .Ptr ("testdata/nested/deno.json" ),
102
- StaticPatterns : cast .Ptr ([]string {
103
- "testdata/*/*.js" ,
104
- "testdata/shared" ,
105
- }),
103
+ StaticPatterns : cast .Ptr ([]string {"testdata/*/*.js" }),
106
104
}, fsys )
107
105
// Check error
108
106
assert .NoError (t , err )
@@ -112,7 +110,7 @@ func TestWriteForm(t *testing.T) {
112
110
t .Run ("throws error on missing file" , func (t * testing.T ) {
113
111
var buf bytes.Buffer
114
112
form := multipart .NewWriter (& buf )
115
- form .SetBoundary ("test" )
113
+ require . NoError ( t , form .SetBoundary ("test" ) )
116
114
// Setup in-memory fs
117
115
fsys := afero .NewMemMapFs ()
118
116
// Run test
0 commit comments