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

Test snippets #79

Open
Roninii opened this issue Aug 13, 2020 · 1 comment
Open

Test snippets #79

Roninii opened this issue Aug 13, 2020 · 1 comment

Comments

@Roninii
Copy link
Contributor

Roninii commented Aug 13, 2020

I'm just curious if you feel as though snippets directed at test files are out of the scope of this extension? I thought about making a separate extension, but I figured we could just add on to this one if you feel it's within the same scope?

i.e. using @testing-library/vue:

import { render } from '@testing-library/vue'
import MyComponent from '@/components/MyComponent.vue'

descibe('', () => {
    it('', () => {
        //... test...
    })
})

Why:

  • User generated snippets can't be scoped by file extensions like *.spec.js.
  • We should all probably write more tests, and testing boiler plate is obnoxious.

Edit: I should note that I bring this up because I'm willing to create some snippets. Just wondered if the interest was there :D

@sdras
Copy link
Owner

sdras commented May 16, 2021

Hm. It's tough to say because I agree with you, it would be nice to have but I don't know if I want to cover every testing library out there. I'll take a PR for this one because it's generic enough to be useful for a few cases. Sound good?

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

2 participants