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

docs(testing): removed sync mode from vueTestUtils #2829

Merged
merged 1 commit into from
Jul 23, 2020

Conversation

jeanremy
Copy link

@jeanremy jeanremy commented Jul 22, 2020

This PR imporoves the doc, especially the testing part. I removed sync mode from vueTestUtils, since it has been removed.
I also add the import of flushPromises(). It took quite some time to find out that it was an external package.

The only way I got my tests working is by adding beforeEach(() => jest.useFakeTimers()) at the top of my tests. jest.useFakeTimers() was not sufficient. But I think it's more related to Jest, or my misknowledge of Jest, so I didn't change this part. But I'm willing to if you think it's worth.

Removed sync mode from vueTestUtils, since (it has been removed)[vuejs/vue-test-utils#1137].
Also add the import of flushPromises(). It took quite some time to find out that it was an external package.
@codecov
Copy link

codecov bot commented Jul 22, 2020

Codecov Report

Merging #2829 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2829   +/-   ##
=======================================
  Coverage   95.67%   95.67%           
=======================================
  Files          50       50           
  Lines        1319     1319           
  Branches      317      317           
=======================================
  Hits         1262     1262           
  Misses         57       57           

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 bf93906...9d13227. Read the comment docs.

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

Successfully merging this pull request may close these issues.

None yet

2 participants