How to do integration testing in Nuxt 4 / Nitro routes with vitest?
Summary A developer reported a failure to run integration tests for Nuxt 4 / Nitro routes using vitest and @nuxt/test-utils. The core issue was an ambiguous test environment configuration. By defining the environment: ‘nuxt’ inside a project-specific configuration while simultaneously wrapping the test file in an await setup() call, the test runner was caught in … Read more