import { mount } from '@vue/test-utils'
import { describe, expect, it } from 'vitest'
import HomePage from '../src/pages/index.vue'
describe('HomePage.vue', () => {
it('should render', () => {
const wrapper = mount(HomePage)
expect(wrapper.html()).toMatchSnapshot()
})
})
Describe the bug
When you try to test home page with basic test, this returns an error:
This is the test:
This is the error:

Reproduction
The test above
System Info
System: OS: macOS 12.6 CPU: (8) arm64 Apple M1 Memory: 147.06 MB / 16.00 GB Shell: 5.8.1 - /bin/zsh Binaries: Node: 16.16.0 - ~/.nvm/versions/node/v16.16.0/bin/node npm: 8.11.0 - ~/.nvm/versions/node/v16.16.0/bin/npm Browsers: Chrome: 108.0.5359.98Used Package Manager
npm
Validations