-
Notifications
You must be signed in to change notification settings - Fork 156
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
Bug: Props detection broken with jest since 2.4.2 (works in 2.4.1) #561
Comments
Hi @sawmurai Thanks for the repro. |
You are right of course :) I'll update the issue. |
@johnsoncodehk would you mind taking a look at why vuejs/test-utils@1db42c8 introduced this regression? How should we type cc @alecgibson as well, as the original author of this change |
It even correctly flags bad props: and fails
|
Oh I see, Edit: or the |
Thanks for looking into it @alecgibson ! |
Describe the bug
Since upgrading from 2.4.1 props are no longer properly detected if the component is imported from a SFC. Please see the reproducer linked below.
The following error is shown if I run the tests:
To Reproduce
https://stackblitz.com/edit/vitejs-vite-wdomed?file=src%2Fcomponents%2FHelloWorld.spec.ts
Expected behavior
Prop is still detected, or at least "ignored".
Related information:
System:
OS: Linux 5.0 undefined
CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
Memory: 0 Bytes / 0 Bytes
Shell: 1.0 - /bin/jsh
npmPackages:
@vue/test-utils: ^2.4.5 => 2.4.5
jest: ^29.7.0 => 29.7.0
vue: ^3.4.21 => 3.4.21
Additional context
The text was updated successfully, but these errors were encountered: