From 0620b6a1f6566ba11623fd962179e44ec8dd5cd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isaac=20Rold=C3=A1n?= Date: Fri, 17 Jan 2025 18:07:22 +0100 Subject: [PATCH] Remove test --- .../services/dev/processes/dev-session.test.ts | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/packages/app/src/cli/services/dev/processes/dev-session.test.ts b/packages/app/src/cli/services/dev/processes/dev-session.test.ts index d5b745cdad..d403fcddc2 100644 --- a/packages/app/src/cli/services/dev/processes/dev-session.test.ts +++ b/packages/app/src/cli/services/dev/processes/dev-session.test.ts @@ -7,7 +7,6 @@ import { testAppAccessConfigExtension, testAppLinked, testDeveloperPlatformClient, - testFunctionExtension, testUIExtension, testWebhookExtensions, } from '../../../models/app/app.test-data.js' @@ -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() - }) })