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
chore: bump to vue v3.2.34 #1510
Changes from 2 commits
8f9a91d
9a48c64
882450e
2500bc2
cc35833
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,10 +38,10 @@ describe('mocks', () => { | |
</div> | ||
`, | ||
computed: { | ||
url() { | ||
url(): string { | ||
return `/posts/${this.$route.params.id}` | ||
}, | ||
id() { | ||
id(): string | string[] { | ||
return this.$route.params.id | ||
Comment on lines
-41
to
45
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Concerned about this change, not 100% sure what's happening here There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The concern is that we shouldn't have to explicitly specify the type: the inference is somehow broken with V3.2.34 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Having to annotate the return type is something is there since V2, but this is not an issue with Vue test utils, is more a concern with Vue 3.2.34 release, all good on test utils IMO |
||
} | ||
}, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
declare module '@vue/compat' { | ||
export * from 'vue' | ||
export function extend<T>(options: T): T | ||
|
||
export function configureCompat( | ||
option: Record<string, boolean | string | number> | ||
): void | ||
} |
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.
This is a more generic way to catch components, I've removed the other
findComponent
overloads and the tests still passed, still not sure if removing the other overloads would cause an issueThere 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.
Shouldn't these methods return a
VueWrapper<T>
?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.
Yes 🤦