diff --git a/playground/rolldown-dev-mpa/__tests__/basic.spec.ts b/playground/rolldown-dev-mpa/__tests__/basic.spec.ts index 68b0e1f2f0363a..36184a5432a684 100644 --- a/playground/rolldown-dev-mpa/__tests__/basic.spec.ts +++ b/playground/rolldown-dev-mpa/__tests__/basic.spec.ts @@ -2,11 +2,10 @@ import { test } from 'vitest' import { page } from '../../test-utils' test('basic', async () => { - await page.goto('/') await page.getByRole('heading', { name: 'Home' }).click() await page.getByText('Rendered by /index.js').click() await page.getByRole('link', { name: 'About' }).click() - await page.waitForURL('/about') + await page.waitForURL(/\/about/) await page.getByRole('heading', { name: 'About' }).click() await page.getByText('Rendered by /about/index.js').click() }) diff --git a/playground/rolldown-dev-mpa/src/about/index.html b/playground/rolldown-dev-mpa/about/index.html similarity index 100% rename from playground/rolldown-dev-mpa/src/about/index.html rename to playground/rolldown-dev-mpa/about/index.html diff --git a/playground/rolldown-dev-mpa/src/about/index.js b/playground/rolldown-dev-mpa/about/index.js similarity index 100% rename from playground/rolldown-dev-mpa/src/about/index.js rename to playground/rolldown-dev-mpa/about/index.js diff --git a/playground/rolldown-dev-mpa/src/index.html b/playground/rolldown-dev-mpa/index.html similarity index 100% rename from playground/rolldown-dev-mpa/src/index.html rename to playground/rolldown-dev-mpa/index.html diff --git a/playground/rolldown-dev-mpa/src/index.js b/playground/rolldown-dev-mpa/index.js similarity index 100% rename from playground/rolldown-dev-mpa/src/index.js rename to playground/rolldown-dev-mpa/index.js diff --git a/playground/rolldown-dev-mpa/vite.config.ts b/playground/rolldown-dev-mpa/vite.config.ts index 13b41466590a49..e915c1304ff29d 100644 --- a/playground/rolldown-dev-mpa/vite.config.ts +++ b/playground/rolldown-dev-mpa/vite.config.ts @@ -2,7 +2,6 @@ import { defineConfig } from 'vite' export default defineConfig({ clearScreen: false, - root: './src', environments: { client: { build: {