Nuxt3 Unit Testing - Components that use Pinia

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ม.ค. 2025

ความคิดเห็น •

  • @alexanderkim7241
    @alexanderkim7241 หลายเดือนก่อน

    Why are you using `mount` instead of `mountSuspended` for nuxt 3 unit-tests?

  • @yabuking84
    @yabuking84 ปีที่แล้ว

    I get "TypeError: Cannot read properties of undefined" with components that uses props, means props are undefined. Maybe you have an example where there are props on components. Thanks !

  • @AlessandroFaggiano-p1k
    @AlessandroFaggiano-p1k ปีที่แล้ว

    hi, in my case I get an error on the getter (itemGetter) I have in the store: "TypeError: Cannot read properties of undefined (reading 'itemGetter')".
    the component I am working on is almost identical to yours and the getter in question simply returns the state (as in your example)