repo_description: 🦎 Simple and complete Vue.js testing utilities that encourage good testing practices.
repo_topics: dom-testing-library test testing testing-tools vue vue-testing-library vuejs
code: let render
  beforeAll(() => {
    process.env.VTL_SKIP_AUTO_CLEANUP = 'true'
    const vtl = require('..')
    render = vtl.render
  })
  
  // This test verifies that if VTL_SKIP_AUTO_CLEANUP is set then we DON'T
  // auto-wire up the afterEach cleanup for folks.
  test('first test render a vue component', () => {
    render({
      template: `<h1>Hello World</h1>`,
    })
  
    expect(document.body.innerHTML).toMatchInlineSnapshot(`
          <div>
            <h1>Hello World</h1>
          </div>
      `)
  })
  
  test('no cleanup should have happened, renders the first component still', () => {
    expect(document.body.innerHTML).toMatchInlineSnapshot(`
      <div>
        <h1>Hello World</h1>
      </div>
    `)
  })
  