import { shallowMount } from '@vue/test-utils' import BaseCard from '@/elements/card/BaseCard.vue' describe('BaseCard.vue', () => { it('should be a Vue instance when mounted', () => { const wrapper = shallowMount(BaseCard) expect(wrapper.isVueInstance()).toBeTruthy() }) it('should render the slot content when passed', () => { const message = 'Hello World' const slot = `${message}` const wrapper = shallowMount(BaseCard, { scopedSlots: { default: slot } }) expect(wrapper.text()).toContain(message) }) })