Skip to content

Commit d2e908f

Browse files
committed
PR feedback: Use constant for API version in tests
1 parent 2aeb596 commit d2e908f

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
@@ -69,7 +69,7 @@ describe('executeBulkOperation', () => {
6969
beforeEach(() => {
7070
vi.mocked(ensureAuthenticatedAdminAsApp).mockResolvedValue(mockAdminSession)
7171
vi.mocked(shortBulkOperationPoll).mockResolvedValue(createdBulkOperation)
72-
vi.mocked(resolveApiVersion).mockResolvedValue('2026-01')
72+
vi.mocked(resolveApiVersion).mockResolvedValue(BULK_OPERATIONS_MIN_API_VERSION)
7373
})
7474

7575
afterEach(() => {
@@ -94,7 +94,7 @@ describe('executeBulkOperation', () => {
9494
expect(runBulkOperationQuery).toHaveBeenCalledWith({
9595
adminSession: mockAdminSession,
9696
query,
97-
version: '2026-01',
97+
version: BULK_OPERATIONS_MIN_API_VERSION,
9898
})
9999
expect(runBulkOperationMutation).not.toHaveBeenCalled()
100100
})
@@ -117,7 +117,7 @@ describe('executeBulkOperation', () => {
117117
expect(runBulkOperationQuery).toHaveBeenCalledWith({
118118
adminSession: mockAdminSession,
119119
query,
120-
version: '2026-01',
120+
version: BULK_OPERATIONS_MIN_API_VERSION,
121121
})
122122
expect(runBulkOperationMutation).not.toHaveBeenCalled()
123123
})
@@ -141,7 +141,7 @@ describe('executeBulkOperation', () => {
141141
adminSession: mockAdminSession,
142142
query: mutation,
143143
variablesJsonl: undefined,
144-
version: '2026-01',
144+
version: BULK_OPERATIONS_MIN_API_VERSION,
145145
})
146146
expect(runBulkOperationQuery).not.toHaveBeenCalled()
147147
})
@@ -167,7 +167,7 @@ describe('executeBulkOperation', () => {
167167
adminSession: mockAdminSession,
168168
query: mutation,
169169
variablesJsonl: '{"input":{"id":"gid://shopify/Product/123","tags":["test"]}}',
170-
version: '2026-01',
170+
version: BULK_OPERATIONS_MIN_API_VERSION,
171171
})
172172
})
173173

0 commit comments

Comments
 (0)