After upgrading to @astrojs/language-server v2.7.6, astro check fails in my test files (e.g. Mycomponent.spec.ts) when using @vue/test-utils and defineExpose
Steps to Reproduce
npm init astro using template
set up using Vue integration
add a defineExpose to a vue file
try to use said expose (e.g. wrapper.vm.myExposedThing)
IDE typescript picks up the expose
run astro check
type check errors
@namespace/package-name:typecheck: > astro check --tsconfig tsconfig.check.json
@namespace/package-name:typecheck: 15:02:41 [check] Getting diagnostics for Astro files in
@namespace/package-name:typecheck:
@namespace/package-name:typecheck: src/components/ComponentName/__tests__/ComponentName.unit.test.ts:58:23 - error ts(2339): Property 'active' does not exist on type 'ComponentPublicInstance<ComponentNameProps, Omit<{ items: string[]; }, keyof ComponentNameProps>>'.
@namespace/package-name:typecheck:
@namespace/package-name:typecheck: 58 expect(wrapper.vm.active.title).toBe('test');
Describe the Bug
After upgrading to @astrojs/language-server v2.7.6,
astro check
fails in my test files (e.g. Mycomponent.spec.ts) when using @vue/test-utils and defineExposeSteps to Reproduce
npm init astro
using templateastro check