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.
This commit is contained in:
Neil
2026-09-06 15:46:55 -07:00
parent dffab872c3
commit 9aef8c93b3
@@ -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'