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: stricter props types #2137

Merged
merged 1 commit into from Oct 17, 2023
Merged

fix: stricter props types #2137

merged 1 commit into from Oct 17, 2023

Commits on Oct 9, 2023

  1. fix: stricter props types

    At the moment, `mount()` offers [strong typing][1] of props, but this
    strong typing is lost when dealing with the `VueWrapper` through either
    the `props()` or `setProps()` methods.
    
    This change strengthens the typing of these methods to help raise
    compile-time errors when trying to get or set incorrect props.
    
    [1]: https://github.com/vuejs/test-utils/blob/11b34745e8e66fc747881dfb1ce94cef537c455e/src/types.ts#L44
    alecgibson committed Oct 9, 2023
    Configuration menu
    Copy the full SHA
    dac5950 View commit details
    Browse the repository at this point in the history