© 2026 Hedgehog Software, LLC
./.config/nuxt.ts
Error: Invalid nuxt app. (Please explicitly set 'options.rootDir' pointing to a valid nuxt app)
// ./tests/basic.e2e.test.ts import { $fetch, setup } from '@nuxt/test-utils/e2e'; import { describe, expect, it } from 'vitest'; describe('basic', async () => { await setup({ rootDir: './app', configFile: '/.config/nuxt.ts', }); it('contains Welcome to Nuxt! string', async () => { const html = await $fetch('/'); expect(html).toContain('Welcome to Nuxt!'); }); });
// ./.config/nuxt.ts export default defineNuxtConfig({ compatibilityDate: '2024-04-03', devtools: { enabled: true }, future: { compatibilityVersion: 4, }, modules: ['@nuxt/test-utils/module'], });
configFile