@@ -108,24 +108,24 @@ describe('Copy', () => {
108108 }
109109
110110 test ( 'should instantiate StoreCopyOperation for store-to-store copy' , async ( ) => {
111- await run ( [ '--fromStore =source.myshopify.com' , '--toStore =target.myshopify.com' ] )
111+ await run ( [ '--from-store =source.myshopify.com' , '--to-store =target.myshopify.com' ] )
112112
113113 expect ( StoreCopyOperation ) . toHaveBeenCalledTimes ( 1 )
114114 expect ( mockExecute ) . toHaveBeenCalledWith ( 'source.myshopify.com' , 'target.myshopify.com' , expect . any ( Object ) )
115115 } )
116116
117117 test ( 'should instantiate StoreExportOperation for store-to-file export' , async ( ) => {
118- await run ( [ '--fromStore =source.myshopify.com' , '--toFile =output.sqlite' ] )
118+ await run ( [ '--from-store =source.myshopify.com' , '--to-file =output.sqlite' ] )
119119
120120 expect ( StoreExportOperation ) . toHaveBeenCalledTimes ( 1 )
121121 expect ( mockExecute ) . toHaveBeenCalledWith ( 'source.myshopify.com' , 'output.sqlite' , expect . any ( Object ) )
122122 } )
123123
124- test ( 'should auto-generate toFile path when exporting without toFile parameter' , async ( ) => {
124+ test ( 'should auto-generate to-file path when exporting without to-file parameter' , async ( ) => {
125125 const mockDate = new Date ( '2024-01-01T12:00:00Z' )
126126 vi . spyOn ( Date , 'now' ) . mockReturnValue ( mockDate . getTime ( ) )
127127
128- await run ( [ '--fromStore =source.myshopify.com' ] )
128+ await run ( [ '--from-store =source.myshopify.com' ] )
129129
130130 expect ( StoreExportOperation ) . toHaveBeenCalledTimes ( 1 )
131131 expect ( mockExecute ) . toHaveBeenCalledWith (
@@ -135,11 +135,11 @@ describe('Copy', () => {
135135 )
136136 } )
137137
138- test ( 'should sanitize domain name when auto-generating toFile path' , async ( ) => {
138+ test ( 'should sanitize domain name when auto-generating to-file path' , async ( ) => {
139139 const mockDate = new Date ( '2024-01-01T12:00:00Z' )
140140 vi . spyOn ( Date , 'now' ) . mockReturnValue ( mockDate . getTime ( ) )
141141
142- await run ( [ '--fromStore =test@store!.myshopify.com' ] )
142+ await run ( [ '--from-store =test@store!.myshopify.com' ] )
143143
144144 expect ( StoreExportOperation ) . toHaveBeenCalledTimes ( 1 )
145145 expect ( mockExecute ) . toHaveBeenCalledWith (
@@ -150,14 +150,14 @@ describe('Copy', () => {
150150 } )
151151
152152 test ( 'should instantiate StoreImportOperation for file-to-store import' , async ( ) => {
153- await run ( [ '--fromFile =input.sqlite' , '--toStore =target.myshopify.com' ] )
153+ await run ( [ '--from-file =input.sqlite' , '--to-store =target.myshopify.com' ] )
154154
155155 expect ( StoreImportOperation ) . toHaveBeenCalledTimes ( 1 )
156156 expect ( mockExecute ) . toHaveBeenCalledWith ( 'input.sqlite' , 'target.myshopify.com' , expect . any ( Object ) )
157157 } )
158158
159- test ( 'should auto-generate toFile for export when only fromStore is provided' , async ( ) => {
160- await run ( [ '--fromStore =source.myshopify.com' ] )
159+ test ( 'should auto-generate to-file for export when only from-store is provided' , async ( ) => {
160+ await run ( [ '--from-store =source.myshopify.com' ] )
161161
162162 expect ( StoreExportOperation ) . toHaveBeenCalledTimes ( 1 )
163163 expect ( mockExecute ) . toHaveBeenCalledWith (
@@ -168,7 +168,7 @@ describe('Copy', () => {
168168 } )
169169
170170 test ( 'should show help when invalid flag combination' , async ( ) => {
171- await run ( [ '--toFile =output.sqlite' ] )
171+ await run ( [ '--to-file =output.sqlite' ] )
172172
173173 expect ( loadHelpClass ) . toHaveBeenCalledWith ( expect . any ( Object ) )
174174 expect ( mockShowHelp ) . toHaveBeenCalledWith ( [ 'store:copy' ] )
@@ -188,7 +188,7 @@ describe('Copy', () => {
188188 } )
189189
190190 test ( 'should show help when mixing store and file flags' , async ( ) => {
191- await run ( [ '--fromStore =source.myshopify.com' , '--fromFile =input.sqlite' , '--toStore =target.myshopify.com' ] )
191+ await run ( [ '--from-store =source.myshopify.com' , '--from-file =input.sqlite' , '--to-store =target.myshopify.com' ] )
192192
193193 expect ( loadHelpClass ) . toHaveBeenCalledWith ( expect . any ( Object ) )
194194 expect ( mockShowHelp ) . toHaveBeenCalledWith ( [ 'store:copy' ] )
@@ -198,7 +198,7 @@ describe('Copy', () => {
198198 } )
199199
200200 test ( 'should pass flags to the operation' , async ( ) => {
201- await run ( [ '--fromStore =source.myshopify.com' , '--toStore =target.myshopify.com' , '--no-prompt' , '--mock' ] )
201+ await run ( [ '--from-store =source.myshopify.com' , '--to-store =target.myshopify.com' , '--no-prompt' , '--mock' ] )
202202
203203 expect ( mockExecute ) . toHaveBeenCalledWith (
204204 'source.myshopify.com' ,
0 commit comments