import { mount } from '@vue/test-utils'; import ShSelect from '@/components/shared/ShSelect.vue'; describe('ShSelect', () => { it('renders no label if omitted', () => { const wrapper = mount(ShSelect); expect(wrapper.find('[data-testid="label"]').exists()).toBe(false); }); it('renders label if provided', () => { const wrapper = mount(ShSelect, { props: { label: 'Test' } }); expect(wrapper.find('[data-testid="label"]').exists()).toBe(true); }); });