Skip to content

Conversation

nandi95
Copy link
Contributor

@nandi95 nandi95 commented Mar 10, 2021

A quick addition so the method takes all styling into account.

Copy link
Member

@lmiller1990 lmiller1990 left a comment

Choose a reason for hiding this comment

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

Wow, neat!

@IGx89
Copy link

IGx89 commented Sep 30, 2022

Note for the future: getComputedStyle has been (re)defined to only work on connected elements (ref), so at some point in the future, when jsdom changes to match the spec, this will break. When that happens, see vuejs/vue-test-utils#2013 for how I handled that scenario.

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.

4 participants