@@ -137,9 +137,6 @@ class TestThemeCommandWithoutStoreRequired extends ThemeCommand {
137137 env : 'SHOPIFY_FLAG_PATH' ,
138138 default : 'current/working/directory' ,
139139 } ) ,
140- password : Flags . string ( {
141- env : 'SHOPIFY_FLAG_PASSWORD' ,
142- } ) ,
143140 store : Flags . string ( {
144141 env : 'SHOPIFY_FLAG_STORE' ,
145142 } ) ,
@@ -267,7 +264,7 @@ describe('ThemeCommand', () => {
267264 expect ( ensureAuthenticatedThemes ) . not . toHaveBeenCalled ( )
268265 } )
269266
270- test ( 'single environment provided with store - creates session when store is provided even if not required ' , async ( ) => {
267+ test ( 'single environment provided with store - does not create session when command does not require auth ' , async ( ) => {
271268 // Given
272269 const environmentConfig = { path : '/some/path' , store : 'store.myshopify.com' }
273270 vi . mocked ( loadEnvironment ) . mockResolvedValue ( environmentConfig )
@@ -279,9 +276,9 @@ describe('ThemeCommand', () => {
279276 await command . run ( )
280277
281278 // Then
282- expect ( ensureAuthenticatedThemes ) . toHaveBeenCalledOnce ( )
279+ expect ( ensureAuthenticatedThemes ) . not . toHaveBeenCalled ( )
283280 expect ( command . commandCalls ) . toHaveLength ( 1 )
284- expect ( command . commandCalls [ 0 ] ?. session ) . toEqual ( mockSession )
281+ expect ( command . commandCalls [ 0 ] ?. session ) . toBeUndefined ( )
285282 } )
286283
287284 test ( 'multiple environments provided - uses renderConcurrent for parallel execution' , async ( ) => {
0 commit comments