@@ -42,8 +42,9 @@ func TestSetVercelConfig(t *testing.T) {
4242 "root_directory" : "./my-project" ,
4343 "manual_production_deployment" : true ,
4444 "git_repository" : map [string ]any {
45- "type" : "github" ,
46- "repo" : "mach-composer/my-project" ,
45+ "production_branch" : "main" ,
46+ "type" : "github" ,
47+ "repo" : "mach-composer/my-project" ,
4748 },
4849 "environment_variables" : variables ,
4950 "domains" : domains ,
@@ -81,6 +82,7 @@ func TestSetVercelConfig(t *testing.T) {
8182 assert .Contains (t , component .Variables , "root_directory = \" ./my-project\" " )
8283 assert .Contains (t , component .Variables , "vercel_team_id = \" test-team\" " )
8384 assert .Contains (t , component .Variables , "manual_production_deployment = true" )
85+ assert .Contains (t , component .Variables , "production_branch = \" main\" " )
8486 assert .Contains (t , component .Variables , "type = \" github\" " )
8587 assert .Contains (t , component .Variables , "repo = \" mach-composer/my-project\" " )
8688 assert .Contains (t , component .Variables , "protection_bypass_for_automation = true" )
@@ -298,8 +300,9 @@ func TestCompleteInheritance(t *testing.T) {
298300 siteConfig := map [string ]any {
299301 "project_config" : map [string ]any {
300302 "git_repository" : map [string ]any {
301- "type" : "github" ,
302- "repo" : "owner/test-repo" ,
303+ "production_branch" : "main" ,
304+ "type" : "github" ,
305+ "repo" : "owner/test-repo" ,
303306 },
304307 },
305308 }
@@ -320,5 +323,6 @@ func TestCompleteInheritance(t *testing.T) {
320323
321324 assert .Contains (t , component .Variables , "vercel_project_serverless_function_region = \" fra1\" " )
322325 assert .Contains (t , component .Variables , "type = \" github\" " )
326+ assert .Contains (t , component .Variables , "production_branch = \" main\" " )
323327 assert .Contains (t , component .Variables , "vercel_project_manual_production_deployment = true" )
324328}
0 commit comments