Skip to content

Commit

Permalink
Remove test
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacroldan committed Jan 17, 2025
1 parent 088f368 commit 0620b6a
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions packages/app/src/cli/services/dev/processes/dev-session.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {
testAppAccessConfigExtension,
testAppLinked,
testDeveloperPlatformClient,
testFunctionExtension,
testUIExtension,
testWebhookExtensions,
} from '../../../models/app/app.test-data.js'
Expand Down Expand Up @@ -206,21 +205,4 @@ describe('pushUpdatesForDevSession', () => {
expect(developerPlatformClient.refreshToken).toHaveBeenCalledOnce()
expect(developerPlatformClient.devSessionUpdate).toHaveBeenCalledTimes(2)
})

test('prints build errors', async () => {
// Given
const extension = await testFunctionExtension()
const event = {app, extensionEvents: [{type: 'updated', extension, buildResult: {status: 'error'}}]}

// When
try {
await pushUpdatesForDevSession({stderr, stdout, abortSignal: abortController.signal}, options)
appWatcher.emit('ready', event)
await flushPromises()
// eslint-disable-next-line no-catch-all/no-catch-all
} catch (error: any) {
expect(error.message).toBe('Dev session aborted, build errors detected in extensions')
}
expect(developerPlatformClient.devSessionCreate).not.toHaveBeenCalled()
})
})

0 comments on commit 0620b6a

Please sign in to comment.