Closed MickL closed 3 months ago
Ah, very linked to your other issue and my comment there: https://github.com/nuxt/test-utils/issues/801#issuecomment-2013246787.
The $fetch
helper from @nuxt/test-utils/e2e
is not for fetching anything but from your test fixture. You can use another fetch helper, like the one from ofetch
, for external fetches.
(We might consider this as an improvement in future - wdyt @pi0?)
Environment
Reproduction
Describe the bug
Fetching an external URL doesnt work. The url is prefixed, e.g. the upper created
http://127.0.0.1:56107https://www.google.de...
Additional context
An external URL needs to be fetched, e.g. when checking if a file has really been uploaded to AWS S3 or Vercel Blob.
Logs
No response