Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when testing home page with i18n #454

Open
5 tasks done
pablosirera opened this issue Dec 14, 2022 · 0 comments
Open
5 tasks done

Error when testing home page with i18n #454

pablosirera opened this issue Dec 14, 2022 · 0 comments

Comments

@pablosirera
Copy link

pablosirera commented Dec 14, 2022

Describe the bug

When you try to test home page with basic test, this returns an error:

This is the test:

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()
  })
})

This is the error:
image

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.98

Used Package Manager

npm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant