You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 6, 2023. It is now read-only.
import{render}from'@testing-library/vue';importCounterfrom'~/src/components/Counter.vue'describe('Component: Counter.vue',()=>{test('User should see 0 at the beginning',()=>{const{ getByText }=render(Counter);consttextNumberWrapper=getByText(/Counter is:/);expect(textNumberWrapper).toHaveTextContent('Counter is: 0');});});
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
For component testing, would be great to have jest-dom like assertions, e.g.
toHaveAttribute()
The text was updated successfully, but these errors were encountered: