Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red committed Aug 15, 2024
1 parent cade843 commit 11b757f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/examples-cases/middleware-mode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,17 @@ test('restart test', async ({ page }) => {
})

// https://github.com/vitejs/vite/pull/14127
test('restart server by config change', async ({page}) => {
test('restart server by config change', async ({ page }) => {
const finishVite = await startVite()
try {
await setupAndGotoPage(page)

// edit vite.config.js to restart server
await editFile('./vite.config.js', workspaceFileURL, content =>
content.replace('export default defineConfig({', 'export default defineConfig({\n')
content.replace(
'export default defineConfig({',
'export default defineConfig({\n'
)
)

const title = page.locator('h1')
Expand Down

0 comments on commit 11b757f

Please sign in to comment.