carousel.spec.ts 394 B

123456789101112131415161718
  1. import { expect, it, describe, beforeEach } from 'vitest'
  2. import { mount } from '@vue/test-utils'
  3. import Carousel from '@/components/Carousel'
  4. describe('Carousel.ts', () => {
  5. let wrapper: any
  6. beforeEach(async () => {
  7. wrapper = mount(Carousel)
  8. })
  9. it('It renders correctly', () => {
  10. const carousel = wrapper.find('.carousel')
  11. expect(carousel.exists()).toBe(true)
  12. })
  13. })