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'
1 Reply
so the solution is to use
$test
section on top level in the nuxt config not under the nitro section. Thanks @danielroe 🙂