Skip to content

feat: allow passing instantiated Vue Router #239

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

Merged

Conversation

blimmer
Copy link
Contributor

@blimmer blimmer commented Jun 29, 2021

This PR supersedes #238 and is similar to #232. If routes is an instantiated Vue Router, it will be used instead of creating a new Vue Router. This allows developers to use abstract mode to avoid the issue described in #210.

Fixes #210

See also docs upates here: testing-library/testing-library-docs#875

@codecov
Copy link

codecov bot commented Jun 29, 2021

Codecov Report

Merging #239 (70313ae) into master (9d63d71) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #239   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            3         3           
  Lines           99        99           
  Branches        33        34    +1     
=========================================
  Hits            99        99           
Impacted Files Coverage Δ
src/render.js 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9d63d71...70313ae. Read the comment docs.

@afontcu
Copy link
Member

afontcu commented Jun 29, 2021

Thanks for this! I left a comment regarding the test, but it looks good overall :)

@blimmer blimmer force-pushed the allow-passing-instantiated-router branch from 0f4b6f8 to 70313ae Compare June 29, 2021 18:22
@blimmer blimmer requested a review from afontcu June 29, 2021 18:22
Copy link
Member

@afontcu afontcu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great!

@afontcu afontcu merged commit 96c0c2d into testing-library:master Jun 29, 2021
@github-actions
Copy link

🎉 This PR is included in version 5.8.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions
Copy link

github-actions bot commented Jun 8, 2022

🎉 This PR is included in version 6.6.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

Broken test isolation of VueRouter instances
2 participants