8000 test: fix deprecated third argument options (#574) · vitejs/vite-plugin-vue@a613df4 · GitHub
[go: up one dir, main page]

Skip to content

Commit a613df4

Browse files
authored
test: fix deprecated third argument options (#574)
1 parent c89a4ba commit a613df4

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

playground/ssr-vue/__tests__/ssr-vue.spec.ts

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -166,18 +166,14 @@ test('hydration', async () => {
166166
expect(await page.textContent('button')).toMatch('1')
167167
})
168168

169-
test(
170-
'hmr',
171-
async () => {
172-
// This is test is flaky in Mac CI, but can't be reproduced locally. Wait until
173-
// network idle to avoid the issue. TODO: This may be caused by a bug when
174-
// modifying a file while loading, we should remove this guard
175-
await page.goto(url, { waitUntil: 'networkidle' })
176-
editFile('src/pages/Home.vue', (code) => code.replace('Home', 'changed'))
177-
await untilUpdated(() => page.textContent('h1'), 'changed')
178-
},
179-
{ retry: 3 },
180-
)
169+
test('hmr', { retry: 3 }, async () => {
170+
// This is test is flaky in Mac CI, but can't be reproduced locally. Wait until
171+
// network idle to avoid the issue. TODO: This may be caused by a bug when
172+
// modifying a file while loading, we should remove this guard
173+
await page.goto(url, { waitUntil: 'networkidle' })
174+
editFile('src/pages/Home.vue', (code) => code.replace('Home', 'changed'))
175+
await untilUpdated(() => page.textContent('h1'), 'changed')
176+
})
181177

182178
test('client navigation', async () => {
183179
await untilBrowserLogAfter(() => page.goto(url), 'hydrated')

0 commit comments

Comments
 (0)
0