import { fileURLToPath } from 'node:url' import { describe, expect, it } from 'vitest' import { isWindows } from 'std-env' import { $fetch, getBrowser, setup, url } from '@nuxt/test-utils' const isWebpack = process.env.TEST_BUILDER === 'webpack' || process.env.TEST_BUILDER === 'rspack' await setup({ rootDir: fileURLToPath(new URL('../fixtures/spa-loader', import.meta.url)), dev: process.env.TEST_ENV === 'dev', server: true, browser: true, setupTimeout: (isWindows ? 360 : 120) * 1000, nuxtConfig: { builder: isWebpack ? 'webpack' : 'vite', spaLoadingTemplate: true, experimental: { spaPreloaderOutside: false, }, }, }) describe('spaPreloaderOutside flag is disabled', () => { it('shoul be render loader inside appTag', async () => { const html = await $fetch('/spa') expect(html).toContain(`