import { render, screen } from '@testing-library/react' import { describe, expect, it } from 'vitest' import '@testing-library/jest-dom' import { ProjectContextChip } from './ProjectContextChip' describe('ProjectContextChip', () => { it('keeps the source project label and adds worktree identity', () => { render( , ) expect(screen.getByText('OpenCutSkill')).toBeInTheDocument() expect(screen.getByText('main')).toBeInTheDocument() expect(screen.getByText('worktree')).toBeInTheDocument() expect(screen.getByText('desktop-main-54a09f85')).toBeInTheDocument() }) it('does not show worktree details for a normal checkout', () => { render( , ) expect(screen.getByText('OpenCutSkill')).toBeInTheDocument() expect(screen.queryByText('worktree')).not.toBeInTheDocument() }) })