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(defineProps): defineProps starts with parenthesis #6430

Closed
wants to merge 4 commits into from

Conversation

LQ6666666
Copy link

#6428
__props is not a function

@netlify
Copy link

netlify bot commented Aug 9, 2022

Deploy Preview for vuejs-coverage failed.

Name Link
🔨 Latest commit 3270c68
🔍 Latest deploy log https://app.netlify.com/sites/vuejs-coverage/deploys/62f71956d2084e00086b63dc

<script setup>
const props = defineProps({
foo: String
});
Copy link
Member

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', () => {
Copy link
Member

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

@yyx990803
Copy link
Member

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.

@yyx990803 yyx990803 closed this Nov 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants