Closed jrutila closed 1 month ago
Thanks for reporting your issue.
There is some code internal to nuxt
that is not correctly handling Vue files when that have a querystring as part of their file URL (which is what Wallaby needs to do as a part of its cache-breaking mechanism). We've updated Wallaby to patch nuxt
in this case, which should fix the auto import issue. Non-vue files were not affected (auto-import still worked).
Please update to Wallaby core v1.0.1593
, it should fix your problem.
That was fast! It works, thank you.
Issue description or question
I am trying to create a unit test for my Nuxt component with vitest. The component refers to auto imported functions, like
storeToRefs
. Runningvitest
from cli the test works.The component script setup starts like this:
And the error is:
This sounds like #3318 but I have the latest core (1.0.1591). I tried to reset the cache, but it didn't work.
Wallaby diagnostics report