snowy
snowy
NNuxt
Created by snowy on 7/15/2024 in #❓・help
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:
Error: Failed to load url /home/projects/nuxt-examples-tpwdwa/node_modules/@nuxt/test-utils/dist/shared/runtime/global-setup (resolved id: /home/projects/nuxt-examples-tpwdwa/node_modules/@nuxt/test-utils/dist/shared/runtime/global-setup). Does the file exist?
Error: Failed to load url /home/projects/nuxt-examples-tpwdwa/node_modules/@nuxt/test-utils/dist/shared/runtime/global-setup (resolved id: /home/projects/nuxt-examples-tpwdwa/node_modules/@nuxt/test-utils/dist/shared/runtime/global-setup). Does the file exist?
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?
2 replies