Skip to content

Commit db716a6

Browse files
committed
PR feedback: Use constant for API version in tests
1 parent d3c6bcf commit db716a6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/app/src/cli/services/bulk-operations/execute-bulk-operation.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ describe('executeBulkOperation', () => {
6868

6969
beforeEach(() => {
7070
vi.mocked(ensureAuthenticatedAdminAsApp).mockResolvedValue(mockAdminSession)
71-
vi.mocked(resolveApiVersion).mockResolvedValue('2026-01')
71+
vi.mocked(resolveApiVersion).mockResolvedValue(BULK_OPERATIONS_MIN_API_VERSION)
7272
})
7373

7474
afterEach(() => {
@@ -93,7 +93,7 @@ describe('executeBulkOperation', () => {
9393
expect(runBulkOperationQuery).toHaveBeenCalledWith({
9494
adminSession: mockAdminSession,
9595
query,
96-
version: '2026-01',
96+
version: BULK_OPERATIONS_MIN_API_VERSION,
9797
})
9898
expect(runBulkOperationMutation).not.toHaveBeenCalled()
9999
})
@@ -116,7 +116,7 @@ describe('executeBulkOperation', () => {
116116
expect(runBulkOperationQuery).toHaveBeenCalledWith({
117117
adminSession: mockAdminSession,
118118
query,
119-
version: '2026-01',
119+
version: BULK_OPERATIONS_MIN_API_VERSION,
120120
})
121121
expect(runBulkOperationMutation).not.toHaveBeenCalled()
122122
})
@@ -140,7 +140,7 @@ describe('executeBulkOperation', () => {
140140
adminSession: mockAdminSession,
141141
query: mutation,
142142
variablesJsonl: undefined,
143-
version: '2026-01',
143+
version: BULK_OPERATIONS_MIN_API_VERSION,
144144
})
145145
expect(runBulkOperationQuery).not.toHaveBeenCalled()
146146
})
@@ -166,7 +166,7 @@ describe('executeBulkOperation', () => {
166166
adminSession: mockAdminSession,
167167
query: mutation,
168168
variablesJsonl: '{"input":{"id":"gid://shopify/Product/123","tags":["test"]}}',
169-
version: '2026-01',
169+
version: BULK_OPERATIONS_MIN_API_VERSION,
170170
})
171171
})
172172

0 commit comments

Comments
 (0)