Skip to content

Rename test to match components for simple referencing #216

Closed
@travis5491811

Description

@travis5491811

Hello,
I came here through https://testing-library.com/docs/vue-testing-library/examples because I was trying to see how good this might be for use with vue or nuxt. There were only 2 examples on the page and neither used props and the docs said to look at the examples in the repo for more.

While looking at the examples in the repo, I started by exploring components in https://github.com/testing-library/vue-testing-library/tree/master/src/__tests__/components and then once i found a component that had the structure I wanted to test, I went back looking for that component in the test folder, but the test names don't match the names of the components they are testing.

For example this test (simple-button.js) is for this button (Button.vue). Is there some reasoning behind not using naming conventions (button.js, Button.vue, fetch.js, Fetch.vue or fetch-axios-mock, Fetch.vue instead of axios-mock.js, Fetch.vue) that will make it straight forward for people new to the project to follow the examples?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions