Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions playground/react/__tests__/react.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,12 @@ test.runIf(isServe)('should not invalidate when code is invalid', async () => {
// if import.meta.invalidate happened, the old page won't be shown because the page is reloaded
expect(await page.textContent('h1')).toMatch('Hello Vite + React')

editFile('App.jsx', (code) =>
code.replace('<div className="App"}>', '<div className="App">'),
await untilBrowserLogAfter(
() =>
editFile('App.jsx', (code) =>
code.replace('<div className="App"}>', '<div className="App">'),
),
'[vite] hot updated: /App.jsx',
)
})

Expand Down
Loading