@@ -49,33 +49,42 @@ describe("parseCommand", () => {
4949} ) ;
5050
5151describe ( "bot messages" , ( ) => {
52- it ( "createdMessage (ru) has spawn link and command " , ( ) => {
52+ it ( "createdMessage (ru) includes bootstrap steps and links " , ( ) => {
5353 const message = createdMessage (
5454 "ru" ,
5555 "demo-app" ,
56- "npx -y @spawn-dock/cli spawn --token pair_demo" ,
57- "spawndock://spawn?token=pair_demo" ,
56+ "npx @spawn-dock/create --token pair_demo" ,
57+ "https://spawn-dock.example/preview/demo-app" ,
58+ "https://t.me/TMASpawnerBot/tma?startapp=demo-app" ,
59+ "https://spawn-dock.example/tma?tgWebAppStartParam=demo-app" ,
5860 ) ;
5961
60- expect ( message ) . not . toContain ( "Preview URL:" ) ;
61- expect ( message ) . not . toContain ( "Telegram Link:" ) ;
62- expect ( message ) . toContain ( "Нажми на ссылку, чтобы открыть рабочее окружение:" ) ;
63- expect ( message ) . toContain ( "spawndock://spawn?token=pair_demo" ) ;
64- expect ( message ) . toContain ( "Или запусти команду локально в терминале:" ) ;
65- expect ( message ) . toContain ( "npx -y @spawn-dock/cli spawn --token pair_demo" ) ;
62+ expect ( message ) . toContain ( "Проект demo-app создан." ) ;
63+ expect ( message ) . toContain ( "1. Запусти bootstrap-команду локально:" ) ;
64+ expect ( message ) . toContain ( "npx @spawn-dock/create --token pair_demo" ) ;
65+ expect ( message ) . toContain ( "Эту команду можно запускать повторно для этого проекта." ) ;
66+ expect ( message ) . toContain ( "2. После bootstrap запусти:" ) ;
67+ expect ( message ) . toContain ( "pnpm run dev" ) ;
68+ expect ( message ) . toContain ( "Preview URL:" ) ;
69+ expect ( message ) . toContain ( "Telegram Link:" ) ;
70+ expect ( message ) . toContain ( "TMA URL:" ) ;
6671 } ) ;
6772
68- it ( "createdMessage (en) uses English copy" , ( ) => {
73+ it ( "createdMessage (en) uses English bootstrap copy" , ( ) => {
6974 const message = createdMessage (
7075 "en" ,
7176 "demo-app" ,
72- "npx -y @spawn-dock/cli spawn --token pair_demo" ,
73- "spawndock://spawn?token=pair_demo" ,
77+ "npx @spawn-dock/create --token pair_demo" ,
78+ "https://spawn-dock.example/preview/demo-app" ,
79+ "https://t.me/TMASpawnerBot/tma?startapp=demo-app" ,
80+ "https://spawn-dock.example/tma?tgWebAppStartParam=demo-app" ,
7481 ) ;
7582
76- expect ( message ) . toContain ( "Project" ) ;
77- expect ( message ) . toContain ( "Click the link to open the workspace:" ) ;
78- expect ( message ) . toContain ( "spawndock://spawn?token=pair_demo" ) ;
83+ expect ( message ) . toContain ( "Project demo-app created." ) ;
84+ expect ( message ) . toContain ( "1. Run the bootstrap command locally:" ) ;
85+ expect ( message ) . toContain ( "npx @spawn-dock/create --token pair_demo" ) ;
86+ expect ( message ) . toContain ( "2. After bootstrap, run:" ) ;
87+ expect ( message ) . toContain ( "pnpm run dev" ) ;
7988 } ) ;
8089
8190 it ( "includes TMA and preview links in launchMessage" , ( ) => {
0 commit comments