N
Nuxt4mo 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'
No description
1 Reply
kleinpetr
kleinpetrOP4mo ago
so the solution is to use $test section on top level in the nuxt config not under the nitro section. Thanks @danielroe 🙂
No description
Want results from more Discord servers?
Add your server