Skip to content

Commit 1b18250

Browse files
committedApr 16, 2024
fix(e2e): force string response within startServer
1 parent b21d9a5 commit 1b18250

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎src/core/server.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export async function startServer(options: StartServerOptions = {}) {
3939
for (let i = 0; i < 150; i++) {
4040
await new Promise(resolve => setTimeout(resolve, 100))
4141
try {
42-
const res = await $fetch(ctx.nuxt!.options.app.baseURL)
42+
const res = await $fetch<string>(ctx.nuxt!.options.app.baseURL, { responseType: 'text' })
4343
if (!res.includes('__NUXT_LOADING__')) {
4444
return
4545
}

0 commit comments

Comments
 (0)
Please sign in to comment.