@@ -76,7 +76,7 @@ describe('socket scan github', async () => {
7676 'should require args with just dry-run' ,
7777 async cmd => {
7878 const { code, stderr, stdout } = await spawnSocketCli ( binCliPath , cmd )
79- expect ( stdout ) . toMatchInlineSnapshot ( `""` )
79+ expect ( stdout ) . toMatchInlineSnapshot ( `"[DryRun]: Bailing now "` )
8080 expect ( `\n ${ stderr } ` ) . toMatchInlineSnapshot ( `
8181 "
8282 \\u203c Build/test mode mismatch! Built without VITEST=1 but running in test mode.
@@ -92,10 +92,7 @@ describe('socket scan github', async () => {
9292 i Note: Run \`socket login\` to set a default org.
9393 Use the --org flag to override the default org.
9494
95- \\xd7 Skipping auto-discovery of org in dry-run mode
96- \\xd7 Input error: Please review the input requirements and try again
97-
98- \\xd7 This command requires a GitHub API token for access (missing)"
95+ \\xd7 Skipping auto-discovery of org in dry-run mode"
9996 ` )
10097
10198 expect ( code , 'dry-run should exit with code 2 if missing input' ) . toBe ( 2 )
@@ -118,7 +115,7 @@ describe('socket scan github', async () => {
118115 'should require args with just dry-run' ,
119116 async cmd => {
120117 const { code, stderr, stdout } = await spawnSocketCli ( binCliPath , cmd )
121- expect ( stdout ) . toMatchInlineSnapshot ( `""` )
118+ expect ( stdout ) . toMatchInlineSnapshot ( `"[DryRun]: Bailing now "` )
122119 expect ( `\n ${ stderr } ` ) . toMatchInlineSnapshot ( `
123120 "
124121 \\u203c Build/test mode mismatch! Built without VITEST=1 but running in test mode.
@@ -134,10 +131,7 @@ describe('socket scan github', async () => {
134131 i Note: Run \`socket login\` to set a default org.
135132 Use the --org flag to override the default org.
136133
137- \\xd7 Skipping auto-discovery of org in dry-run mode
138- \\xd7 Input error: Please review the input requirements and try again
139-
140- \\u221a This command requires a GitHub API token for access"
134+ \\xd7 Skipping auto-discovery of org in dry-run mode"
141135 ` )
142136
143137 expect ( code , 'dry-run should exit with code 0 if input ok' ) . toBe ( 0 )
0 commit comments