From 9aef8c93b30ee73eeeafeeb9b134899fdfbad4b2 Mon Sep 17 00:00:00 2001 From: Neil <4138956+nwparker@users.noreply.github.com> Date: Sun, 6 Sep 2026 15:46:55 -0700 Subject: [PATCH] fix(test): use AppState['openFiles'][number] instead of a nonexistent module The test imported OpenFile from shared/editor-types, which does not exist. Vitest passed because a type-only import is erased at runtime; CI typecheck caught it. I had run tsc before adding this file and never re-ran it. --- .../teardown/worktree-teardown-array-identity.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/renderer/src/store/slices/worktrees/teardown/worktree-teardown-array-identity.test.ts b/src/renderer/src/store/slices/worktrees/teardown/worktree-teardown-array-identity.test.ts index 422cc44ee57..5e122d9dbef 100644 --- a/src/renderer/src/store/slices/worktrees/teardown/worktree-teardown-array-identity.test.ts +++ b/src/renderer/src/store/slices/worktrees/teardown/worktree-teardown-array-identity.test.ts @@ -1,8 +1,9 @@ import { describe, expect, it } from 'vitest' import type { AppState } from '../../../types' -import type { OpenFile } from '../../../../../../shared/editor-types' import { applyRemoveWorktreeSuccessState } from './remove-worktree-store-cleanup' +type OpenFile = AppState['openFiles'][number] + const REMOVED = 'repo-1::/repos/one/removed' const KEPT = 'repo-1::/repos/one/kept'