import { fileURLToPath } from 'node:url' // eslint-disable-next-line import/order import { setup, $fetch } from '@nuxt/test-utils' import { describe, it, expect } from 'vitest' await setup({ rootDir: fileURLToPath(new URL('./fixtures/basic', import.meta.url)), dev: true, nuxtConfig: { app: { baseURL: '/test' } } }) describe('dev tests', () => { it('should just work', async () => { expect(await $fetch('/')).toMatchInlineSnapshot(` " - Fixture
Extended layout from foo

[...slug].vue

catchall at > Network: http:
Middleware ran: true
" `) }) })