Skip to content

Commit 230006b

Browse files
committed
fix tests
1 parent cf10d28 commit 230006b

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ describe('getBulkOperationStatus', () => {
3838
return {
3939
bulkOperation: {
4040
id: operationId,
41+
type: 'QUERY',
4142
status: 'RUNNING',
4243
errorCode: null,
4344
objectCount: 100,
@@ -75,8 +76,8 @@ describe('getBulkOperationStatus', () => {
7576
const output = mockAndCaptureOutput()
7677
await getBulkOperationStatus({storeFqdn, operationId, remoteApp})
7778

78-
expect(output.info()).toContain('Bulk operation in progress...')
79-
expect(output.info()).toContain('500 objects')
79+
expect(output.info()).toContain('Bulk operation in progress')
80+
expect(output.info()).toContain('500 objects read')
8081
expect(output.info()).toContain('Started')
8182
})
8283

@@ -114,7 +115,7 @@ describe('getBulkOperationStatus', () => {
114115
const output = mockAndCaptureOutput()
115116
await getBulkOperationStatus({storeFqdn, operationId, remoteApp})
116117

117-
expect(output.info()).toContain('Starting...')
118+
expect(output.info()).toContain('Starting')
118119
})
119120

120121
test('renders info banner for canceled operation', async () => {
@@ -160,6 +161,7 @@ describe('listBulkOperations', () => {
160161
bulkOperations: {
161162
nodes: operations.map((op) => ({
162163
id: 'gid://shopify/BulkOperation/123',
164+
type: 'QUERY',
163165
status: 'RUNNING',
164166
errorCode: null,
165167
objectCount: 100,

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ describe('executeBulkOperation', () => {
4949
NonNullable<BulkOperationRunQueryMutation['bulkOperationRunQuery']>['bulkOperation']
5050
> = {
5151
id: 'gid://shopify/BulkOperation/123',
52+
type: 'QUERY',
5253
status: 'CREATED',
5354
errorCode: null,
5455
createdAt: '2024-01-01T00:00:00Z',

0 commit comments

Comments
 (0)