diff --git a/packages/babel-plugin-jsx/test/index.test.tsx b/packages/babel-plugin-jsx/test/index.test.tsx index 6d654c1..00cc7c1 100644 --- a/packages/babel-plugin-jsx/test/index.test.tsx +++ b/packages/babel-plugin-jsx/test/index.test.tsx @@ -393,10 +393,10 @@ describe('PatchFlags', () => { }); describe('variables outside slots', () => { - interface AProps { - inc: () => void - } - const A = defineComponent({ + const A = defineComponent({ + props: { + inc: Function, + }, render() { return this.$slots.default?.(); }, @@ -405,7 +405,7 @@ describe('variables outside slots', () => { A.inheritAttrs = false; test('internal', async () => { - const wrapper = mount({ + const wrapper = mount(defineComponent({ data() { return { val: 0, @@ -429,7 +429,7 @@ describe('variables outside slots', () => { ); }, - }); + })); expect(wrapper.get('#textarea').element.innerHTML).toBe('0'); await wrapper.get('#button').trigger('click'); diff --git a/tsconfig.json b/tsconfig.json index 3abbc45..5e6c6cc 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -18,4 +18,4 @@ "include": [ "global.d.ts" ] -} \ No newline at end of file +}