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

1 - Hello World #2827

Open
varlog762 opened this issue Oct 30, 2024 · 0 comments
Open

1 - Hello World #2827

varlog762 opened this issue Oct 30, 2024 · 0 comments

Comments

@varlog762
Copy link

import { mount } from "@vue/test-utils"
import { describe, it, expect } from "vitest"

import HelloWorld from "./App.vue"

interface HelloWorldProps {
  msg: string
}

describe("HelloWorld", () => {
  it("renders a 'Hello World'", () => {
    const wrapper = mount(HelloWorld)
    const msg = (wrapper.vm as unknown as HelloWorldProps).msg
    expect(wrapper.text()).toBe(msg)
  })
})```

<!--

OR Vue SFC Playground Link (https://sfc.vuejs.org)

-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant