import { shallowMount } from '@vue/test-utils' import type { VueWrapper } from '@vue/test-utils' import { beforeEach, describe, expect, it } from 'vitest' import BUpload from '@components/upload/Upload.vue' let wrapper: VueWrapper> describe('BUpload', () => { beforeEach(() => { wrapper = shallowMount(BUpload) }) it('is called', () => { expect(wrapper.vm).toBeTruthy() expect(wrapper.vm.$options.name).toBe('BUpload') }) it('render correctly', () => { expect(wrapper.html()).toMatchSnapshot() }) describe('with fallthrough attributes', () => { const attrs = { class: 'fallthrough-class', style: 'font-size: 2rem;', id: 'fallthrough-id' } it('should apply class, style, and id to the root