file path error in testing: can't find global-setup
I've been banging my head against this for a while but it turns out the example app has the same issue: https://nuxt.com/docs/examples/advanced/testing
open a new terminal, run
nuxi test
and get:
I think this is the same issue as reported at https://github.com/nuxt/test-utils/issues/818 but wanted to ask here in case there's a known workaround or anything other than patching test-utils?GitHub
Runtime dir miss-calculated Β· Issue #818 Β· nuxt/test-utils
Hi! π Firstly, thanks for your work on this project! π Today I used patch-package to patch @nuxt/[email protected] for the project I'm working on. When starting nuxt test from a fresh install o...
1 Reply
so it turns out this is only an issue when using
nuxi test
, running vitest
directly works fine. i'm not sure if doing that means missing out on some extra functionality but at least the tests run! π