@@ -35,7 +35,6 @@ describe("deploy command (unified)", () => {
3535 const result = await t . run ( "deploy" , "-y" ) ;
3636
3737 t . expectResult ( result ) . toSucceed ( ) ;
38- t . expectResult ( result ) . toContain ( "Deployment completed" ) ;
3938 t . expectResult ( result ) . toContain ( "App deployed successfully" ) ;
4039 } ) ;
4140
@@ -52,62 +51,53 @@ describe("deploy command (unified)", () => {
5251 const result = await t . run ( "deploy" , "--yes" ) ;
5352
5453 t . expectResult ( result ) . toSucceed ( ) ;
55- t . expectResult ( result ) . toContain ( "Deployment completed " ) ;
54+ t . expectResult ( result ) . toContain ( "App deployed successfully " ) ;
5655 } ) ;
5756
5857 it ( "deploys entities and functions together" , async ( ) => {
5958 await t . givenLoggedInWithProject ( fixture ( "with-functions-and-entities" ) ) ;
6059 t . api . mockEntitiesPush ( { created : [ "Order" ] , updated : [ ] , deleted : [ ] } ) ;
61- t . api . mockFunctionsPush ( {
62- deployed : [ "process-order" ] ,
63- deleted : [ ] ,
64- errors : null ,
65- } ) ;
60+ t . api . mockSingleFunctionDeploy ( { status : "deployed" } ) ;
6661 t . api . mockAgentsPush ( { created : [ ] , updated : [ ] , deleted : [ ] } ) ;
6762 t . api . mockConnectorsList ( { integrations : [ ] } ) ;
6863
6964 const result = await t . run ( "deploy" , "-y" ) ;
7065
7166 t . expectResult ( result ) . toSucceed ( ) ;
72- t . expectResult ( result ) . toContain ( "Deployment completed " ) ;
67+ t . expectResult ( result ) . toContain ( "App deployed successfully " ) ;
7368 } ) ;
7469
7570 it ( "deploys zero-config functions (path-based names) with unified deploy" , async ( ) => {
7671 await t . givenLoggedInWithProject ( fixture ( "with-zero-config-functions" ) ) ;
7772 t . api . mockEntitiesPush ( { created : [ ] , updated : [ ] , deleted : [ ] } ) ;
78- t . api . mockFunctionsPush ( {
79- deployed : [ "foo/bar" , "foo/kfir/hello" , "stam" , "custom-name" ] ,
80- deleted : [ ] ,
81- errors : null ,
82- } ) ;
73+ t . api . mockSingleFunctionDeploy ( { status : "deployed" } ) ;
8374 t . api . mockAgentsPush ( { created : [ ] , updated : [ ] , deleted : [ ] } ) ;
8475 t . api . mockConnectorsList ( { integrations : [ ] } ) ;
8576
8677 const result = await t . run ( "deploy" , "-y" ) ;
8778
8879 t . expectResult ( result ) . toSucceed ( ) ;
89- t . expectResult ( result ) . toContain ( "Deployment completed " ) ;
80+ t . expectResult ( result ) . toContain ( "App deployed successfully " ) ;
9081 } ) ;
9182
9283 it ( "deploys entities, functions, and site together" , async ( ) => {
9384 await t . givenLoggedInWithProject ( fixture ( "full-project" ) ) ;
9485 t . api . mockEntitiesPush ( { created : [ "Task" ] , updated : [ ] , deleted : [ ] } ) ;
95- t . api . mockFunctionsPush ( { deployed : [ "hello" ] , deleted : [ ] , errors : null } ) ;
86+ t . api . mockSingleFunctionDeploy ( { status : "deployed" } ) ;
9687 t . api . mockAgentsPush ( { created : [ ] , updated : [ ] , deleted : [ ] } ) ;
9788 t . api . mockConnectorsList ( { integrations : [ ] } ) ;
9889 t . api . mockSiteDeploy ( { app_url : "https://full-project.base44.app" } ) ;
9990
10091 const result = await t . run ( "deploy" , "-y" ) ;
10192
10293 t . expectResult ( result ) . toSucceed ( ) ;
103- t . expectResult ( result ) . toContain ( "Deployment completed " ) ;
94+ t . expectResult ( result ) . toContain ( "App deployed successfully " ) ;
10495 t . expectResult ( result ) . toContain ( "https://full-project.base44.app" ) ;
10596 } ) ;
10697
10798 it ( "deploys agents successfully with -y flag" , async ( ) => {
10899 await t . givenLoggedInWithProject ( fixture ( "with-agents" ) ) ;
109100 t . api . mockEntitiesPush ( { created : [ ] , updated : [ ] , deleted : [ ] } ) ;
110- t . api . mockFunctionsPush ( { deployed : [ ] , deleted : [ ] , errors : null } ) ;
111101 t . api . mockAgentsPush ( {
112102 created : [ "customer_support" , "order_assistant" , "data_analyst" ] ,
113103 updated : [ ] ,
@@ -118,14 +108,12 @@ describe("deploy command (unified)", () => {
118108 const result = await t . run ( "deploy" , "-y" ) ;
119109
120110 t . expectResult ( result ) . toSucceed ( ) ;
121- t . expectResult ( result ) . toContain ( "Deployment completed" ) ;
122111 t . expectResult ( result ) . toContain ( "App deployed successfully" ) ;
123112 } ) ;
124113
125114 it ( "deploys agents and entities together" , async ( ) => {
126115 await t . givenLoggedInWithProject ( fixture ( "with-agents" ) ) ;
127116 t . api . mockEntitiesPush ( { created : [ ] , updated : [ ] , deleted : [ ] } ) ;
128- t . api . mockFunctionsPush ( { deployed : [ ] , deleted : [ ] , errors : null } ) ;
129117 t . api . mockAgentsPush ( {
130118 created : [ "customer_support" ] ,
131119 updated : [ "order_assistant" ] ,
@@ -136,13 +124,12 @@ describe("deploy command (unified)", () => {
136124 const result = await t . run ( "deploy" , "-y" ) ;
137125
138126 t . expectResult ( result ) . toSucceed ( ) ;
139- t . expectResult ( result ) . toContain ( "Deployment completed " ) ;
127+ t . expectResult ( result ) . toContain ( "App deployed successfully " ) ;
140128 } ) ;
141129
142130 it ( "deploys connectors successfully with -y flag" , async ( ) => {
143131 await t . givenLoggedInWithProject ( fixture ( "with-connectors" ) ) ;
144132 t . api . mockEntitiesPush ( { created : [ ] , updated : [ ] , deleted : [ ] } ) ;
145- t . api . mockFunctionsPush ( { deployed : [ ] , deleted : [ ] , errors : null } ) ;
146133 t . api . mockAgentsPush ( { created : [ ] , updated : [ ] , deleted : [ ] } ) ;
147134 t . api . mockConnectorsList ( { integrations : [ ] } ) ;
148135 t . api . mockConnectorSet ( {
@@ -154,14 +141,12 @@ describe("deploy command (unified)", () => {
154141 const result = await t . run ( "deploy" , "-y" ) ;
155142
156143 t . expectResult ( result ) . toSucceed ( ) ;
157- t . expectResult ( result ) . toContain ( "Deployment completed" ) ;
158144 t . expectResult ( result ) . toContain ( "3 connectors" ) ;
159145 } ) ;
160146
161147 it ( "shows OAuth info when connectors need authorization with -y flag" , async ( ) => {
162148 await t . givenLoggedInWithProject ( fixture ( "with-connectors" ) ) ;
163149 t . api . mockEntitiesPush ( { created : [ ] , updated : [ ] , deleted : [ ] } ) ;
164- t . api . mockFunctionsPush ( { deployed : [ ] , deleted : [ ] , errors : null } ) ;
165150 t . api . mockAgentsPush ( { created : [ ] , updated : [ ] , deleted : [ ] } ) ;
166151 t . api . mockConnectorsList ( { integrations : [ ] } ) ;
167152 t . api . mockConnectorSet ( {
@@ -173,7 +158,6 @@ describe("deploy command (unified)", () => {
173158 const result = await t . run ( "deploy" , "-y" ) ;
174159
175160 t . expectResult ( result ) . toSucceed ( ) ;
176- t . expectResult ( result ) . toContain ( "Deployment completed" ) ;
177161 t . expectResult ( result ) . toContain ( "require authorization" ) ;
178162 t . expectResult ( result ) . toContain ( "base44 connectors push" ) ;
179163 } ) ;
0 commit comments