diff --git a/config/scripts/ci-shard-timings.json b/config/scripts/ci-shard-timings.json index 123e2ae0233..fa5c549df9a 100644 --- a/config/scripts/ci-shard-timings.json +++ b/config/scripts/ci-shard-timings.json @@ -10650,7 +10650,6 @@ "src/renderer/src/lib/monaco-languages/zig-highlighting.test.ts": 4871, "src/renderer/src/lib/monaco-setup-steps.test.ts": 48, "src/renderer/src/lib/native-chat-cli-fork-preparation.test.ts": 2392, - "src/shared/native-chat/transcript/native-chat-transcript-readability.test.ts": 35, "src/renderer/src/lib/nested-repo-selected-paths.test.ts": 24, "src/renderer/src/lib/new-agent-prompt-outcome.test.ts": 744, "src/renderer/src/lib/new-tab-agent-menu-rows.test.ts": 362, diff --git a/src/renderer/src/components/editor/csv/csv-preview-error-message.test.ts b/src/renderer/src/components/editor/csv/csv-preview-error-message.test.ts deleted file mode 100644 index 43c365f2077..00000000000 --- a/src/renderer/src/components/editor/csv/csv-preview-error-message.test.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { afterEach, expect, it } from 'vitest' -import { i18n } from '@/i18n/i18n' -import { CsvPreviewError } from './csv-preview-error' -import { formatCsvPreviewError } from './csv-preview-error-message' - -afterEach(async () => { - await i18n.changeLanguage('en') -}) - -it('translates CSV error codes and passes other errors through', async () => { - await i18n.changeLanguage('es') - expect(formatCsvPreviewError(new CsvPreviewError('binary-data'))).toBe( - 'Este archivo contiene datos binarios.' - ) - expect(formatCsvPreviewError(new Error('EACCES: permission denied'))).toBe( - 'EACCES: permission denied' - ) -}) diff --git a/src/renderer/src/components/plugins/list/PluginChips.test.ts b/src/renderer/src/components/plugins/list/PluginChips.test.ts deleted file mode 100644 index 88cc4ddde17..00000000000 --- a/src/renderer/src/components/plugins/list/PluginChips.test.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { describe, expect, it } from 'vitest' -import { pluginVerifiedSourceLabel } from './PluginChips' - -describe('pluginVerifiedSourceLabel', () => { - it.each([ - [{ kind: 'official' } as const, null], - [{ kind: 'bundled' } as const, null], - [{ kind: 'dev' } as const, 'Dev · unverified'], - [{ kind: 'unverified' } as const, 'Unverified'], - [ - { kind: 'catalog', catalog: 'Acme Plugins', owner: 'github.com/acme' } as const, - 'Acme Plugins · github.com/acme' - ], - [ - { kind: 'catalog', catalog: null, owner: 'gitlab.com/acme/tools' } as const, - 'gitlab.com/acme/tools' - ], - [{ kind: 'catalog', catalog: null, owner: null } as const, 'Unverified'] - ])('labels %o as %s', (source, label) => { - expect(pluginVerifiedSourceLabel(source)).toBe(label) - }) -}) diff --git a/src/renderer/src/lib/simulator-tab-label.test.ts b/src/renderer/src/lib/simulator-tab-label.test.ts deleted file mode 100644 index ff47b32aaf5..00000000000 --- a/src/renderer/src/lib/simulator-tab-label.test.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { afterEach, expect, it } from 'vitest' -import { i18n } from '@/i18n/i18n' -import { SIMULATOR_DEFAULT_TAB_LABEL, formatSimulatorTabLabel } from './simulator-tab-label' - -afterEach(async () => { - await i18n.changeLanguage('en') -}) - -it('translates the stored default label but keeps device names', async () => { - await i18n.changeLanguage('es') - expect(formatSimulatorTabLabel(SIMULATOR_DEFAULT_TAB_LABEL)).toBe('Emulador móvil') - expect(formatSimulatorTabLabel('')).toBe('Emulador móvil') - expect(formatSimulatorTabLabel('iPhone 16 Pro')).toBe('iPhone 16 Pro') -}) diff --git a/src/shared/native-chat/transcript/native-chat-transcript-readability.test.ts b/src/shared/native-chat/transcript/native-chat-transcript-readability.test.ts deleted file mode 100644 index 29d41bcc7bd..00000000000 --- a/src/shared/native-chat/transcript/native-chat-transcript-readability.test.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { describe, expect, it } from 'vitest' -import { isNativeChatTranscriptLocalReadable } from './native-chat-transcript-readability' - -describe('native chat transcript readability', () => { - it('allows local and runtime-owned hosts but rejects Model-A SSH and unresolved hosts', () => { - expect(isNativeChatTranscriptLocalReadable(null)).toBe(true) - expect(isNativeChatTranscriptLocalReadable('runtime-ssh-env-1')).toBe(true) - expect(isNativeChatTranscriptLocalReadable('ssh-target-1')).toBe(false) - expect(isNativeChatTranscriptLocalReadable(undefined)).toBe(false) - }) -}) diff --git a/src/shared/plugins/catalog/plugin-publisher-reservation.test.ts b/src/shared/plugins/catalog/plugin-publisher-reservation.test.ts deleted file mode 100644 index 62e36c934f8..00000000000 --- a/src/shared/plugins/catalog/plugin-publisher-reservation.test.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { describe, expect, it } from 'vitest' -import { isReservedPluginPublisher } from './plugin-publisher-reservation' - -describe('isReservedPluginPublisher', () => { - it.each([ - 'stablyai', - 'StablyAI', - 'orca', - 'orca-labs', - 'Orcatools', - 'openai', - 'GitHub', - 'official' - ])('reserves %s', (publisher) => { - expect(isReservedPluginPublisher(publisher)).toBe(true) - }) - - it.each(['acme', 'gleam-community', 'githubber', 'mo-orca', '0rca'])( - 'leaves %s alone', - (publisher) => { - expect(isReservedPluginPublisher(publisher)).toBe(false) - } - ) -})