Skip to content

Commit

Permalink
fix(e2e): force string response within startServer
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Apr 16, 2024
1 parent b21d9a5 commit 1b18250
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export async function startServer(options: StartServerOptions = {}) {
for (let i = 0; i < 150; i++) {
await new Promise(resolve => setTimeout(resolve, 100))
try {
const res = await $fetch(ctx.nuxt!.options.app.baseURL)
const res = await $fetch<string>(ctx.nuxt!.options.app.baseURL, { responseType: 'text' })
if (!res.includes('__NUXT_LOADING__')) {
return
}
Expand Down

0 comments on commit 1b18250

Please sign in to comment.