No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Integration with Testing Library

    Framework
    test testing
    3
    6
    519
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      Matheus Ryuki last edited by Matheus Ryuki

      Hello everyone!
      I wonder if there is a way to integrate this library (“Testing Library”) with quasar? It is particularly good, and has American consulting firms that are already replacing the enzyme for example, with this one.

      1 Reply Last reply Reply Quote 0
      • s.molinari
        s.molinari last edited by

        There is an app extension, which installs a testing system here: https://github.com/quasarframework/quasar-testing

        This extension uses Cypress. And, from what I’ve read (this is all hypothetical) you can install the Cypress wrapper of DOM Testing Library. If that works, then the Vue Testing Library should also work.

        Scott

        M 1 Reply Last reply Reply Quote 1
        • M
          Matheus Ryuki @s.molinari last edited by

          @s-molinari i will try this, thanks for advice.

          1 Reply Last reply Reply Quote 0
          • A
            AndreasK last edited by

            Can anybody confirm that this is the way to go ?
            If so, it would be nice to put a how-to in here.
            Andreas

            1 Reply Last reply Reply Quote 0
            • s.molinari
              s.molinari last edited by

              Yes, and the how-to is in the repo.

              Scott

              1 Reply Last reply Reply Quote 0
              • A
                AndreasK last edited by

                Hi all,
                I’m still struggling with the test setup.
                Issue:
                “[Vue warn]: Unknown custom element: <q-breadcrumbs> - did you register the component correctly? For recursive components, make sure to provide the “name” option.”
                I’m not able to set
                " localVue.use(Quasar);"
                which is the clue when using vue test-utils.
                But the render function of the vue testing-library creates the “localVue” instance internally.
                Any hints ?
                Andreas

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post