Skip to content

Commit

Permalink
chore(deps): bump vue to 3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
xanf committed Aug 28, 2021
1 parent df43338 commit 695bf27
Show file tree
Hide file tree
Showing 5 changed files with 185 additions and 98 deletions.
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[])(
'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

0 comments on commit 695bf27

Please sign in to comment.