From: Evan You Date: Tue, 10 Dec 2024 11:41:29 +0000 (+0800) Subject: chore: make types pass in vapor directive tests X-Git-Tag: v3.6.0-alpha.1~16^2~167 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f3b883aea5ffebe3031352ca3e24024fc905c64;p=thirdparty%2Fvuejs%2Fcore.git chore: make types pass in vapor directive tests --- diff --git a/packages/runtime-vapor/__tests__/directives/vModel.spec.ts b/packages/runtime-vapor/__tests__/directives/vModel.spec.ts index 8ee22607fe..4a744a5f3b 100644 --- a/packages/runtime-vapor/__tests__/directives/vModel.spec.ts +++ b/packages/runtime-vapor/__tests__/directives/vModel.spec.ts @@ -6,8 +6,11 @@ import { setClass, setDOMProp, template, + // @ts-expect-error vModelDynamic, + // @ts-expect-error vModelSelect, + // @ts-expect-error withDirectives, } from '../../src' import { makeRender } from '../_utils' diff --git a/packages/runtime-vapor/__tests__/directives/vShow.spec.ts b/packages/runtime-vapor/__tests__/directives/vShow.spec.ts index 92565e5dc1..7a22ebffeb 100644 --- a/packages/runtime-vapor/__tests__/directives/vShow.spec.ts +++ b/packages/runtime-vapor/__tests__/directives/vShow.spec.ts @@ -3,7 +3,9 @@ import { createComponent, on, template, + // @ts-expect-error vShow, + // @ts-expect-error withDirectives, } from '../../src' import { nextTick, ref } from 'vue' @@ -70,7 +72,7 @@ describe.todo('directive: v-show', () => { const { host } = define({ render() { const n1 = t1() - const n2 = createComponent(Child, [], null, true) + const n2 = createComponent(Child, null, null, true) withDirectives(n2, [[vShow, () => visible.value]]) on(n1 as HTMLElement, 'click', () => handleClick) return [n1, n2]