NuxtN
Nuxt17mo ago
kleinpetr

Change nitro preset for tests

Hi, I am using vercel as a default preset, but when I try to run e2e test using @nuxt/test-utils it works only if I use node-server preset, so when I disable the preset: 'vercel' it proceeds well, but when I try to keep the default preset and set node-server just for test env, it doesn't work properly

it says: Error: Cannot find module '/home/...../.nuxt/test/bqhctz/output/server/index.mjs'
image.png
Was this page helpful?