-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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(defineProps): defineProps starts with parenthesis #6430
Conversation
❌ Deploy Preview for vuejs-coverage failed.
|
<script setup> | ||
const props = defineProps({ | ||
foo: String | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel this line should without ;
@@ -1705,5 +1705,20 @@ describe('SFC analyze <script> bindings', () => { | |||
expect(content).toMatch(`name: 'Baz'`) | |||
assertCode(content) | |||
}) | |||
|
|||
test('defineProps starts with parenthesis', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the position of the test is not correct.
Maybe it should be moved to line 98
Thanks a lot for the PR - it seems to be missing a case (props destructuring) which is included in #6461, so I merged that one istead, I hope you don't mind. |
#6428
__props is not a function