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

chore(deps): bump vue to 3.2 #889

Merged
merged 1 commit into from Aug 29, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 5 additions & 4 deletions package.json
Expand Up @@ -23,9 +23,9 @@
"@types/node": "16.7.1",
"@types/pretty": "^2.0.0",
"@vue/babel-plugin-jsx": "^1.0.6",
"@vue/compat": "^3.1.5",
"@vue/compiler-dom": "^3.1.4",
"@vue/compiler-sfc": "3.1.5",
"@vue/compat": "3.2.4",
"@vue/compiler-dom": "3.2.6",
"@vue/compiler-sfc": "3.2.6",
"babel-jest": "^26.6.3",
"babel-preset-jest": "^27.0.6",
"husky": "^7.0.1",
Expand All @@ -39,9 +39,10 @@
"rollup": "^2.56.3",
"rollup-plugin-typescript2": "^0.30.0",
"ts-jest": "25.3.1",
"tslib": "^2.3.1",
"typescript": "^4.3.5",
"vitepress": "^0.16.1",
"vue": "3.1.5",
"vue": "3.2.6",
"vue-class-component": "^8.0.0-rc.1",
"vue-jest": "^5.0.0-alpha.10",
"vue-router": "^4.0.11",
Expand Down
5 changes: 3 additions & 2 deletions src/stubs.ts
Expand Up @@ -8,6 +8,7 @@ import {
defineComponent,
VNodeTypes,
ConcreteComponent,
DefineComponent,
ComponentPropsOptions
} from 'vue'
import { hyphenate } from './utils/vueShared'
Expand Down Expand Up @@ -41,7 +42,7 @@ export const createStub = ({
name,
propsDeclaration,
renderStubDefaultSlot
}: StubOptions): ComponentOptions => {
}: StubOptions) => {
const anonName = 'anonymous-stub'
const tag = name ? `${hyphenate(name)}-stub` : anonName

Expand All @@ -57,7 +58,7 @@ export const createStub = ({
})
}

const createTransitionStub = ({ name }: StubOptions): ComponentOptions => {
const createTransitionStub = ({ name }: StubOptions) => {
const render = (ctx: ComponentPublicInstance) => {
return h(name, {}, ctx.$slots)
}
Expand Down
3 changes: 2 additions & 1 deletion tests/emit.spec.ts
@@ -1,4 +1,5 @@
import {
DefineComponent,
defineComponent,
FunctionalComponent,
getCurrentInstance,
Expand Down Expand Up @@ -322,7 +323,7 @@ describe('emitted', () => {
expect(wrapper.emitted('foo')).toHaveLength(1)
})

it.each([EmitsEventSFC, EmitsEventScriptSetup])(
it.each([EmitsEventSFC, EmitsEventScriptSetup] as DefineComponent[])(
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For some reason Volar (vue-tsc) fails to pick up correct overload for mount, so we've hinting it a bit :)

'captures emitted events',
async (component) => {
const wrapper = mount(component)
Expand Down
6 changes: 3 additions & 3 deletions tests/mountingOptions/global.stubs.spec.ts
Expand Up @@ -22,7 +22,7 @@ describe('mounting options: stubs', () => {
return h('p')
}
}
const Component: ComponentOptions = {
const Component = {
render() {
return h(() => [h('div'), h(Foo)])
}
Expand Down Expand Up @@ -131,7 +131,7 @@ describe('mounting options: stubs', () => {
return h('p')
}
}
const Component: ComponentOptions = {
const Component = {
render() {
return h(() => [h('div'), h(Foo)])
}
Expand Down Expand Up @@ -283,7 +283,7 @@ describe('mounting options: stubs', () => {
return h('p')
}
}
const Component: ComponentOptions = {
const Component = {
render() {
return h(() => [h(Foo), h(Bar)])
}
Expand Down