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: allow mocking on script setup components #1861

Merged
merged 1 commit into from Nov 15, 2022

Commits on Nov 15, 2022

  1. fix: allow mocking on script setup components

    We need to differentiate how the mixin used for mocking updates the isntance,
    as Vue v3.2.45 now forbids to update directly a script setup component from a component written with the Options API.
    
    Fixes the error `set' on proxy: trap returned falsish for property`
    
    This comes from the fact that mocks are set via a mixin (Options API) and we run into the more strict behavior of Vue v3.2.45
    introduced in vuejs/core@f73925d#diff-ea4d1ddabb7e22e17e80ada458eef70679af4005df2a1a6b73418fec897603ceR404
    cexbrayat committed Nov 15, 2022
    Copy the full SHA
    d9d604c View commit details
    Browse the repository at this point in the history