@@ -68,7 +68,7 @@ describe('hot module replacement', () => {
6868
6969 const Parent = defineVaporComponent ( {
7070 __hmrId : parentId ,
71- // @ts -expect-error ObjectVaporComponent doesn't have components
71+ // ObjectVaporComponent doesn't have components
7272 components : { Child } ,
7373 setup ( ) {
7474 const count = ref ( 0 )
@@ -77,7 +77,7 @@ describe('hot module replacement', () => {
7777 render : compileToFunction (
7878 `<div @click="count++">{{ count }}<Child>{{ count }}</Child></div>` ,
7979 ) ,
80- } )
80+ } as any )
8181 createRecord ( parentId , Parent as any )
8282
8383 const { mount } = define ( Parent ) . create ( )
@@ -197,7 +197,6 @@ describe('hot module replacement', () => {
197197
198198 const Parent = defineVaporComponent ( {
199199 __hmrId : 'parentId' ,
200- // @ts -expect-error
201200 components : { Child } ,
202201 setup ( ) {
203202 const toggle = ref ( true )
@@ -207,7 +206,7 @@ describe('hot module replacement', () => {
207206 `<button @click="toggle = !toggle" />
208207 <KeepAlive><Child v-if="toggle" /></KeepAlive>` ,
209208 ) ,
210- } )
209+ } as any )
211210
212211 define ( Parent ) . create ( ) . mount ( root )
213212 expect ( root . innerHTML ) . toBe ( `<button></button><div>0</div><!--if-->` )
@@ -271,7 +270,6 @@ describe('hot module replacement', () => {
271270
272271 const Parent = defineVaporComponent ( {
273272 __hmrId : 'parentId' ,
274- // @ts -expect-error
275273 components : { Child } ,
276274 setup ( ) {
277275 const toggle = ref ( true )
@@ -283,7 +281,7 @@ describe('hot module replacement', () => {
283281 <KeepAlive><Child v-if="toggle" /></KeepAlive>
284282 </Transition>` ,
285283 ) ,
286- } )
284+ } as any )
287285
288286 define ( Parent ) . create ( ) . mount ( root )
289287 expect ( root . innerHTML ) . toBe ( `<button></button><div>0</div><!--if-->` )
@@ -531,10 +529,9 @@ describe('hot module replacement', () => {
531529
532530 const Parent = defineVaporComponent ( {
533531 __hmrId : parentId ,
534- // @ts -expect-error
535532 components : { Child } ,
536533 render : compileToFunction ( `<Child msg="foo" />` ) ,
537- } )
534+ } as any )
538535 createRecord ( parentId , Parent as any )
539536
540537 define ( Parent ) . create ( ) . mount ( root )
@@ -557,10 +554,9 @@ describe('hot module replacement', () => {
557554
558555 const Parent = defineVaporComponent ( {
559556 __hmrId : parentId ,
560- // @ts -expect-error
561557 components : { Child } ,
562558 render : compileToFunction ( `<Child class="test" />` ) ,
563- } )
559+ } as any )
564560 createRecord ( parentId , Parent as any )
565561
566562 define ( Parent ) . create ( ) . mount ( root )
0 commit comments