Home > Net >  Testing vue3 computed properties with TypeScript SFC
Testing vue3 computed properties with TypeScript SFC

Time:03-12

I am trying to write a test, using enter image description here

It is able to see normal properties (e.g., those defined with the defineProps macro). Is this just a problem with VSCode-specific tooling, or is there another way I should be going about testing computed properties in vue3 components?

If this is the preferred method, is there a way to pull in the types of the computed properties (similar to how the types of the defined props seem to be pulled in)?

I have tried the technique described in this screenshot

  • Related