0

I see some tutorials with React but am unclear how this would work w/ Lit. Specifically is there something like the react-test-renderer but for Lit?

phamjamstudio
  • 93
  • 1
  • 5

1 Answers1

1
import { it, describe, expect } from 'vitest';
import { shallowMount, mount } from '@vue/test-utils'
import App from '@/App.vue'

describe('App', () => {

  it('renders correctly', () => {
    const wrapper = shallowMount(App)
    expect(wrapper).toMatchSnapshot()
  })

  it('renders the correct markup', () => {
    const wrapper = shallowMount(App)
    expect(wrapper.html()).toContain('router-view')
  })
})
Lukasz Madon
  • 14,664
  • 14
  • 64
  • 108