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

fix(test-utils): verify object not null for typeof #1897

Commits on Aug 19, 2021

  1. fix(test-utils): verify object not null for typeof

    Using vue-test-utils may cause several messages of the sort
    ```
    [Vue warn]: Error in render: "TypeError: Cannot read property 'template' of null"
    ```
    
    Such messages stemmed from the `isComponentOptions` method call. It
    seems it received a null object and `typeof null` is object, so this
    error propagates to users of the library.
    
    This patch does not look for the reason a null object was sent in the
    first place, but it avoids the error propagation.
    
    close vuejs#1805
    ataias committed Aug 19, 2021
    Configuration menu
    Copy the full SHA
    dc917d6 View commit details
    Browse the repository at this point in the history