@@ -15,33 +15,69 @@ describe("dialog helpers", () => {
1515 process . stdout . columns = originalColumns ;
1616 } ) ;
1717
18- test ( "printWelcomeMessage with telemetry disabled" , ( ) => {
19- printWelcomeMessage ( "0.0.0" , false ) ;
18+ describe ( "printWelcomeMessage" , ( ) => {
19+ test ( "with telemetry disabled" , ( ) => {
20+ printWelcomeMessage ( "0.0.0" , false , { } ) ;
2021
21- expect ( normalizeOutput ( std . out ) ) . toMatchInlineSnapshot ( `
22- "────────────────────────────────────────────────────────────
23- 👋 Welcome to create-cloudflare v0.0.0!
24- 🧡 Let's get started.
25- ────────────────────────────────────────────────────────────
22+ expect ( normalizeOutput ( std . out ) ) . toMatchInlineSnapshot ( `
23+ "────────────────────────────────────────────────────────────
24+ 👋 Welcome to create-cloudflare v0.0.0!
25+ 🧡 Let's get started.
26+ ────────────────────────────────────────────────────────────
2627
27- "
28- ` ) ;
29- } ) ;
28+ "
29+ ` ) ;
30+ } ) ;
31+
32+ test ( "with telemetry enabled" , ( ) => {
33+ printWelcomeMessage ( "0.0.0" , true , { } ) ;
34+
35+ expect ( normalizeOutput ( std . out ) ) . toMatchInlineSnapshot ( `
36+ "────────────────────────────────────────────────────────────
37+ 👋 Welcome to create-cloudflare v0.0.0!
38+ 🧡 Let's get started.
39+ 📊 Cloudflare collects telemetry about your usage of Create-Cloudflare.
3040
31- test ( "printWelcomeMessage with telemetry enabled" , ( ) => {
32- printWelcomeMessage ( "0.0.0" , true ) ;
41+ Learn more at: https://github.com/cloudflare/workers-sdk/blob/main/packages/create-cloudflare/telemetry.md
42+ ────────────────────────────────────────────────────────────
3343
34- expect ( normalizeOutput ( std . out ) ) . toMatchInlineSnapshot ( `
35- "────────────────────────────────────────────────────────────
36- 👋 Welcome to create-cloudflare v0.0.0!
37- 🧡 Let's get started.
38- 📊 Cloudflare collects telemetry about your usage of Create-Cloudflare.
44+ "
45+ ` ) ;
46+ } ) ;
47+
48+ test ( "with telemetry disabled in experimental mode" , ( ) => {
49+ printWelcomeMessage ( "0.0.0" , false , { experimental : true } ) ;
3950
40- Learn more at: https://github.com/cloudflare/workers-sdk/blob/main/packages/create-cloudflare/telemetry.md
41- ────────────────────────────────────────────────────────────
51+ expect ( normalizeOutput ( std . out ) ) . toMatchInlineSnapshot ( `
52+ "────────────────────────────────────────────────────────────
53+ 👋 Welcome to create-cloudflare v0.0.0!
54+ 🧡 Let's get started.
4255
43- "
44- ` ) ;
56+ 🧪 Running in experimental mode
57+ ────────────────────────────────────────────────────────────
58+
59+ "
60+ ` ) ;
61+ } ) ;
62+
63+ test ( "with telemetry enabled in experimental mode" , ( ) => {
64+ printWelcomeMessage ( "0.0.0" , true , { experimental : true } ) ;
65+
66+ expect ( normalizeOutput ( std . out ) ) . toMatchInlineSnapshot ( `
67+ "────────────────────────────────────────────────────────────
68+ 👋 Welcome to create-cloudflare v0.0.0!
69+ 🧡 Let's get started.
70+
71+ 🧪 Running in experimental mode
72+
73+ 📊 Cloudflare collects telemetry about your usage of Create-Cloudflare.
74+
75+ Learn more at: https://github.com/cloudflare/workers-sdk/blob/main/packages/create-cloudflare/telemetry.md
76+ ────────────────────────────────────────────────────────────
77+
78+ "
79+ ` ) ;
80+ } ) ;
4581 } ) ;
4682
4783 describe ( "printSummary" , ( ) => {
0 commit comments