Skip to content

Remove node-fetch #7357

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
1 change: 0 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@
"multiparty": "4.2.3",
"nanospinner": "1.2.2",
"netlify-redirector": "0.5.0",
"node-fetch": "3.3.2",
"normalize-package-data": "6.0.2",
"open": "10.1.2",
"p-filter": "4.1.0",
Expand Down
10 changes: 8 additions & 2 deletions src/commands/functions/functions-create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { OptionValues } from 'commander'
import { findUp } from 'find-up'
import fuzzy from 'fuzzy'
import inquirer from 'inquirer'
import fetch from 'node-fetch'

import { createSpinner } from 'nanospinner'

import { fileExistsAsync } from '../../lib/fs.js'
Expand Down Expand Up @@ -386,7 +386,13 @@ const downloadFromURL = async function (command, options, argumentName, function
const res = await fetch(downloadUrl)
const finalName = path.basename(name, '.js') === functionName ? `${nameToUse}.js` : name
const dest = fs.createWriteStream(path.join(fnFolder, finalName))
res.body?.pipe(dest)
if (res.body) {
for await (const chunk of res.body) {
dest.write(chunk)
}

dest.end()
}
} catch (error_) {
throw new Error(`Error while retrieving ${downloadUrl} ${error_}`)
}
Expand Down
1 change: 0 additions & 1 deletion src/commands/functions/functions-invoke.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import path from 'path'

import { OptionValues } from 'commander'
import inquirer from 'inquirer'
import fetch from 'node-fetch'

import { APIError, NETLIFYDEVWARN, chalk, logAndThrowError, exit } from '../../utils/command-helpers.js'
import { BACKGROUND, CLOCKWORK_USERAGENT, getFunctions } from '../../utils/functions/index.js'
Expand Down
2 changes: 0 additions & 2 deletions src/lib/geo-location.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import fetch from 'node-fetch'

const API_URL = 'https://netlifind.netlify.app'
const STATE_GEO_PROPERTY = 'geolocation'
// 24 hours
Expand Down
1 change: 0 additions & 1 deletion src/utils/live-tunnel.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { platform } from 'process'

import fetch from 'node-fetch'
import pWaitFor from 'p-wait-for'
import { v4 as uuidv4 } from 'uuid'

Expand Down
2 changes: 0 additions & 2 deletions src/utils/read-repo-url.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import URL from 'url'

import fetch from 'node-fetch'

// supported repo host types
const GITHUB = 'GitHub'

Expand Down
1 change: 0 additions & 1 deletion src/utils/sites/utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import fetch from 'node-fetch'
import execa from 'execa'

import { GitHubRepoResponse, logAndThrowError } from '../command-helpers.js'
Expand Down
2 changes: 0 additions & 2 deletions src/utils/telemetry/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
// to run as a detached process
import process from 'process'

import fetch from 'node-fetch'

import getPackageJson from '../get-cli-package-json.js'

const { name, version } = await getPackageJson()
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/commands/deploy/deploy.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { fileURLToPath } from 'url'

import { load } from 'cheerio'
import execa from 'execa'
import fetch from 'node-fetch'

import { afterAll, beforeAll, describe, expect, test } from 'vitest'

import { callCli } from '../../utils/call-cli.js'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@

import type { HandlerEvent } from '@netlify/functions'
import js from 'dedent'
import FormData from 'form-data'
import getPort from 'get-port'
import fetch from 'node-fetch'

import { describe, test } from 'vitest'

import { withDevServer } from '../../utils/dev-server.js'
Expand Down Expand Up @@ -129,7 +128,7 @@
},
}

t.expect(body).toStrictEqual(expectedBody)

Check failure on line 131 in tests/integration/commands/dev/dev-forms-and-redirects.test.ts

View workflow job for this annotation

GitHub Actions / Integration (macOS-latest, 20.12.2, 2/4)

tests/integration/commands/dev/dev-forms-and-redirects.test.ts > commands/dev-forms-and-redirects > should handle form submission

AssertionError: expected { payload: { data: { …(3) }, …(4) } } to strictly equal { payload: { …(5) } } - Expected + Received @@ -2,11 +2,11 @@ "payload": { "created_at": "2025-06-24T08:49:04.213Z", "data": { "ip": "::ffff:127.0.0.1", "some": "thing", - "user_agent": "node-fetch", + "user_agent": "node", }, "human_fields": { "Some": "thing", }, "ordered_human_fields": [ ❯ tests/integration/commands/dev/dev-forms-and-redirects.test.ts:131:24 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-forms-and-redirects.test.ts:92:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-forms-and-redirects.test.ts:70:5

Check failure on line 131 in tests/integration/commands/dev/dev-forms-and-redirects.test.ts

View workflow job for this annotation

GitHub Actions / Integration (macOS-latest, 20.12.2, 2/4)

tests/integration/commands/dev/dev-forms-and-redirects.test.ts > commands/dev-forms-and-redirects > should handle form submission

AssertionError: expected { payload: { data: { …(3) }, …(4) } } to strictly equal { payload: { …(5) } } - Expected + Received @@ -2,11 +2,11 @@ "payload": { "created_at": "2025-06-24T08:49:02.557Z", "data": { "ip": "::ffff:127.0.0.1", "some": "thing", - "user_agent": "node-fetch", + "user_agent": "node", }, "human_fields": { "Some": "thing", }, "ordered_human_fields": [ ❯ tests/integration/commands/dev/dev-forms-and-redirects.test.ts:131:24 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-forms-and-redirects.test.ts:92:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-forms-and-redirects.test.ts:70:5

Check failure on line 131 in tests/integration/commands/dev/dev-forms-and-redirects.test.ts

View workflow job for this annotation

GitHub Actions / Integration (macOS-latest, 20.12.2, 2/4)

tests/integration/commands/dev/dev-forms-and-redirects.test.ts > commands/dev-forms-and-redirects > should handle form submission

AssertionError: expected { payload: { data: { …(3) }, …(4) } } to strictly equal { payload: { …(5) } } - Expected + Received @@ -2,11 +2,11 @@ "payload": { "created_at": "2025-06-24T08:48:58.762Z", "data": { "ip": "::ffff:127.0.0.1", "some": "thing", - "user_agent": "node-fetch", + "user_agent": "node", }, "human_fields": { "Some": "thing", }, "ordered_human_fields": [ ❯ tests/integration/commands/dev/dev-forms-and-redirects.test.ts:131:24 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-forms-and-redirects.test.ts:92:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-forms-and-redirects.test.ts:70:5

Check failure on line 131 in tests/integration/commands/dev/dev-forms-and-redirects.test.ts

View workflow job for this annotation

GitHub Actions / Integration (macOS-latest, 20.12.2, 2/4)

tests/integration/commands/dev/dev-forms-and-redirects.test.ts > commands/dev-forms-and-redirects > should handle form submission

AssertionError: expected { payload: { data: { …(3) }, …(4) } } to strictly equal { payload: { …(5) } } - Expected + Received @@ -2,11 +2,11 @@ "payload": { "created_at": "2025-06-24T08:48:54.933Z", "data": { "ip": "::ffff:127.0.0.1", "some": "thing", - "user_agent": "node-fetch", + "user_agent": "node", }, "human_fields": { "Some": "thing", }, "ordered_human_fields": [ ❯ tests/integration/commands/dev/dev-forms-and-redirects.test.ts:131:24 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-forms-and-redirects.test.ts:92:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-forms-and-redirects.test.ts:70:5

Check failure on line 131 in tests/integration/commands/dev/dev-forms-and-redirects.test.ts

View workflow job for this annotation

GitHub Actions / Integration (macOS-latest, 22, 2/4)

tests/integration/commands/dev/dev-forms-and-redirects.test.ts > commands/dev-forms-and-redirects > should handle form submission

AssertionError: expected { payload: { data: { …(3) }, …(4) } } to strictly equal { payload: { …(5) } } - Expected + Received @@ -2,11 +2,11 @@ "payload": { "created_at": "2025-06-24T08:49:02.813Z", "data": { "ip": "::ffff:127.0.0.1", "some": "thing", - "user_agent": "node-fetch", + "user_agent": "node", }, "human_fields": { "Some": "thing", }, "ordered_human_fields": [ ❯ tests/integration/commands/dev/dev-forms-and-redirects.test.ts:131:24 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-forms-and-redirects.test.ts:92:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-forms-and-redirects.test.ts:70:5

Check failure on line 131 in tests/integration/commands/dev/dev-forms-and-redirects.test.ts

View workflow job for this annotation

GitHub Actions / Integration (macOS-latest, 22, 2/4)

tests/integration/commands/dev/dev-forms-and-redirects.test.ts > commands/dev-forms-and-redirects > should handle form submission

AssertionError: expected { payload: { data: { …(3) }, …(4) } } to strictly equal { payload: { …(5) } } - Expected + Received @@ -2,11 +2,11 @@ "payload": { "created_at": "2025-06-24T08:49:00.960Z", "data": { "ip": "::ffff:127.0.0.1", "some": "thing", - "user_agent": "node-fetch", + "user_agent": "node", }, "human_fields": { "Some": "thing", }, "ordered_human_fields": [ ❯ tests/integration/commands/dev/dev-forms-and-redirects.test.ts:131:24 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-forms-and-redirects.test.ts:92:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-forms-and-redirects.test.ts:70:5

Check failure on line 131 in tests/integration/commands/dev/dev-forms-and-redirects.test.ts

View workflow job for this annotation

GitHub Actions / Integration (macOS-latest, 22, 2/4)

tests/integration/commands/dev/dev-forms-and-redirects.test.ts > commands/dev-forms-and-redirects > should handle form submission

AssertionError: expected { payload: { data: { …(3) }, …(4) } } to strictly equal { payload: { …(5) } } - Expected + Received @@ -2,11 +2,11 @@ "payload": { "created_at": "2025-06-24T08:48:56.822Z", "data": { "ip": "::ffff:127.0.0.1", "some": "thing", - "user_agent": "node-fetch", + "user_agent": "node", }, "human_fields": { "Some": "thing", }, "ordered_human_fields": [ ❯ tests/integration/commands/dev/dev-forms-and-redirects.test.ts:131:24 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-forms-and-redirects.test.ts:92:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-forms-and-redirects.test.ts:70:5

Check failure on line 131 in tests/integration/commands/dev/dev-forms-and-redirects.test.ts

View workflow job for this annotation

GitHub Actions / Integration (macOS-latest, 22, 2/4)

tests/integration/commands/dev/dev-forms-and-redirects.test.ts > commands/dev-forms-and-redirects > should handle form submission

AssertionError: expected { payload: { data: { …(3) }, …(4) } } to strictly equal { payload: { …(5) } } - Expected + Received @@ -2,11 +2,11 @@ "payload": { "created_at": "2025-06-24T08:48:52.400Z", "data": { "ip": "::ffff:127.0.0.1", "some": "thing", - "user_agent": "node-fetch", + "user_agent": "node", }, "human_fields": { "Some": "thing", }, "ordered_human_fields": [ ❯ tests/integration/commands/dev/dev-forms-and-redirects.test.ts:131:24 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-forms-and-redirects.test.ts:92:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-forms-and-redirects.test.ts:70:5

Check failure on line 131 in tests/integration/commands/dev/dev-forms-and-redirects.test.ts

View workflow job for this annotation

GitHub Actions / Integration (ubuntu-latest, 20.12.2, 2/4)

tests/integration/commands/dev/dev-forms-and-redirects.test.ts > commands/dev-forms-and-redirects > should handle form submission

AssertionError: expected { payload: { data: { …(3) }, …(4) } } to strictly equal { payload: { …(5) } } - Expected + Received @@ -2,11 +2,11 @@ "payload": { "created_at": "2025-06-24T08:49:18.357Z", "data": { "ip": "::ffff:127.0.0.1", "some": "thing", - "user_agent": "node-fetch", + "user_agent": "node", }, "human_fields": { "Some": "thing", }, "ordered_human_fields": [ ❯ tests/integration/commands/dev/dev-forms-and-redirects.test.ts:131:24 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-forms-and-redirects.test.ts:92:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-forms-and-redirects.test.ts:70:5

Check failure on line 131 in tests/integration/commands/dev/dev-forms-and-redirects.test.ts

View workflow job for this annotation

GitHub Actions / Integration (ubuntu-latest, 20.12.2, 2/4)

tests/integration/commands/dev/dev-forms-and-redirects.test.ts > commands/dev-forms-and-redirects > should handle form submission

AssertionError: expected { payload: { data: { …(3) }, …(4) } } to strictly equal { payload: { …(5) } } - Expected + Received @@ -2,11 +2,11 @@ "payload": { "created_at": "2025-06-24T08:49:15.323Z", "data": { "ip": "::ffff:127.0.0.1", "some": "thing", - "user_agent": "node-fetch", + "user_agent": "node", }, "human_fields": { "Some": "thing", }, "ordered_human_fields": [ ❯ tests/integration/commands/dev/dev-forms-and-redirects.test.ts:131:24 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-forms-and-redirects.test.ts:92:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-forms-and-redirects.test.ts:70:5

Check failure on line 131 in tests/integration/commands/dev/dev-forms-and-redirects.test.ts

View workflow job for this annotation

GitHub Actions / Integration (ubuntu-latest, 20.12.2, 2/4)

tests/integration/commands/dev/dev-forms-and-redirects.test.ts > commands/dev-forms-and-redirects > should handle form submission

AssertionError: expected { payload: { data: { …(3) }, …(4) } } to strictly equal { payload: { …(5) } } - Expected + Received @@ -2,11 +2,11 @@ "payload": { "created_at": "2025-06-24T08:49:09.952Z", "data": { "ip": "::ffff:127.0.0.1", "some": "thing", - "user_agent": "node-fetch", + "user_agent": "node", }, "human_fields": { "Some": "thing", }, "ordered_human_fields": [ ❯ tests/integration/commands/dev/dev-forms-and-redirects.test.ts:131:24 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-forms-and-redirects.test.ts:92:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-forms-and-redirects.test.ts:70:5

Check failure on line 131 in tests/integration/commands/dev/dev-forms-and-redirects.test.ts

View workflow job for this annotation

GitHub Actions / Integration (ubuntu-latest, 20.12.2, 2/4)

tests/integration/commands/dev/dev-forms-and-redirects.test.ts > commands/dev-forms-and-redirects > should handle form submission

AssertionError: expected { payload: { data: { …(3) }, …(4) } } to strictly equal { payload: { …(5) } } - Expected + Received @@ -2,11 +2,11 @@ "payload": { "created_at": "2025-06-24T08:49:04.832Z", "data": { "ip": "::ffff:127.0.0.1", "some": "thing", - "user_agent": "node-fetch", + "user_agent": "node", }, "human_fields": { "Some": "thing", }, "ordered_human_fields": [ ❯ tests/integration/commands/dev/dev-forms-and-redirects.test.ts:131:24 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-forms-and-redirects.test.ts:92:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-forms-and-redirects.test.ts:70:5

Check failure on line 131 in tests/integration/commands/dev/dev-forms-and-redirects.test.ts

View workflow job for this annotation

GitHub Actions / Integration (ubuntu-latest, 22, 2/4)

tests/integration/commands/dev/dev-forms-and-redirects.test.ts > commands/dev-forms-and-redirects > should handle form submission

AssertionError: expected { payload: { data: { …(3) }, …(4) } } to strictly equal { payload: { …(5) } } - Expected + Received @@ -2,11 +2,11 @@ "payload": { "created_at": "2025-06-24T08:49:11.255Z", "data": { "ip": "::ffff:127.0.0.1", "some": "thing", - "user_agent": "node-fetch", + "user_agent": "node", }, "human_fields": { "Some": "thing", }, "ordered_human_fields": [ ❯ tests/integration/commands/dev/dev-forms-and-redirects.test.ts:131:24 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-forms-and-redirects.test.ts:92:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-forms-and-redirects.test.ts:70:5

Check failure on line 131 in tests/integration/commands/dev/dev-forms-and-redirects.test.ts

View workflow job for this annotation

GitHub Actions / Integration (ubuntu-latest, 22, 2/4)

tests/integration/commands/dev/dev-forms-and-redirects.test.ts > commands/dev-forms-and-redirects > should handle form submission

AssertionError: expected { payload: { data: { …(3) }, …(4) } } to strictly equal { payload: { …(5) } } - Expected + Received @@ -2,11 +2,11 @@ "payload": { "created_at": "2025-06-24T08:49:08.341Z", "data": { "ip": "::ffff:127.0.0.1", "some": "thing", - "user_agent": "node-fetch", + "user_agent": "node", }, "human_fields": { "Some": "thing", }, "ordered_human_fields": [ ❯ tests/integration/commands/dev/dev-forms-and-redirects.test.ts:131:24 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-forms-and-redirects.test.ts:92:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-forms-and-redirects.test.ts:70:5

Check failure on line 131 in tests/integration/commands/dev/dev-forms-and-redirects.test.ts

View workflow job for this annotation

GitHub Actions / Integration (ubuntu-latest, 22, 2/4)

tests/integration/commands/dev/dev-forms-and-redirects.test.ts > commands/dev-forms-and-redirects > should handle form submission

AssertionError: expected { payload: { data: { …(3) }, …(4) } } to strictly equal { payload: { …(5) } } - Expected + Received @@ -2,11 +2,11 @@ "payload": { "created_at": "2025-06-24T08:49:01.820Z", "data": { "ip": "::ffff:127.0.0.1", "some": "thing", - "user_agent": "node-fetch", + "user_agent": "node", }, "human_fields": { "Some": "thing", }, "ordered_human_fields": [ ❯ tests/integration/commands/dev/dev-forms-and-redirects.test.ts:131:24 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-forms-and-redirects.test.ts:92:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-forms-and-redirects.test.ts:70:5

Check failure on line 131 in tests/integration/commands/dev/dev-forms-and-redirects.test.ts

View workflow job for this annotation

GitHub Actions / Integration (ubuntu-latest, 22, 2/4)

tests/integration/commands/dev/dev-forms-and-redirects.test.ts > commands/dev-forms-and-redirects > should handle form submission

AssertionError: expected { payload: { data: { …(3) }, …(4) } } to strictly equal { payload: { …(5) } } - Expected + Received @@ -2,11 +2,11 @@ "payload": { "created_at": "2025-06-24T08:48:55.462Z", "data": { "ip": "::ffff:127.0.0.1", "some": "thing", - "user_agent": "node-fetch", + "user_agent": "node", }, "human_fields": { "Some": "thing", }, "ordered_human_fields": [ ❯ tests/integration/commands/dev/dev-forms-and-redirects.test.ts:131:24 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-forms-and-redirects.test.ts:92:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-forms-and-redirects.test.ts:70:5

Check failure on line 131 in tests/integration/commands/dev/dev-forms-and-redirects.test.ts

View workflow job for this annotation

GitHub Actions / Integration (windows-2025, 20.12.2, 2/4)

tests/integration/commands/dev/dev-forms-and-redirects.test.ts > commands/dev-forms-and-redirects > should handle form submission

AssertionError: expected { payload: { data: { …(3) }, …(4) } } to strictly equal { payload: { …(5) } } - Expected + Received @@ -2,11 +2,11 @@ "payload": { "created_at": "2025-06-24T08:52:34.771Z", "data": { "ip": "::ffff:127.0.0.1", "some": "thing", - "user_agent": "node-fetch", + "user_agent": "node", }, "human_fields": { "Some": "thing", }, "ordered_human_fields": [ ❯ tests/integration/commands/dev/dev-forms-and-redirects.test.ts:131:24 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-forms-and-redirects.test.ts:92:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-forms-and-redirects.test.ts:70:5

Check failure on line 131 in tests/integration/commands/dev/dev-forms-and-redirects.test.ts

View workflow job for this annotation

GitHub Actions / Integration (windows-2025, 20.12.2, 2/4)

tests/integration/commands/dev/dev-forms-and-redirects.test.ts > commands/dev-forms-and-redirects > should handle form submission

AssertionError: expected { payload: { data: { …(3) }, …(4) } } to strictly equal { payload: { …(5) } } - Expected + Received @@ -2,11 +2,11 @@ "payload": { "created_at": "2025-06-24T08:52:29.180Z", "data": { "ip": "::ffff:127.0.0.1", "some": "thing", - "user_agent": "node-fetch", + "user_agent": "node", }, "human_fields": { "Some": "thing", }, "ordered_human_fields": [ ❯ tests/integration/commands/dev/dev-forms-and-redirects.test.ts:131:24 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-forms-and-redirects.test.ts:92:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-forms-and-redirects.test.ts:70:5

Check failure on line 131 in tests/integration/commands/dev/dev-forms-and-redirects.test.ts

View workflow job for this annotation

GitHub Actions / Integration (windows-2025, 20.12.2, 2/4)

tests/integration/commands/dev/dev-forms-and-redirects.test.ts > commands/dev-forms-and-redirects > should handle form submission

AssertionError: expected { payload: { data: { …(3) }, …(4) } } to strictly equal { payload: { …(5) } } - Expected + Received @@ -2,11 +2,11 @@ "payload": { "created_at": "2025-06-24T08:52:16.887Z", "data": { "ip": "::ffff:127.0.0.1", "some": "thing", - "user_agent": "node-fetch", + "user_agent": "node", }, "human_fields": { "Some": "thing", }, "ordered_human_fields": [ ❯ tests/integration/commands/dev/dev-forms-and-redirects.test.ts:131:24 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-forms-and-redirects.test.ts:92:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-forms-and-redirects.test.ts:70:5

Check failure on line 131 in tests/integration/commands/dev/dev-forms-and-redirects.test.ts

View workflow job for this annotation

GitHub Actions / Integration (windows-2025, 20.12.2, 2/4)

tests/integration/commands/dev/dev-forms-and-redirects.test.ts > commands/dev-forms-and-redirects > should handle form submission

AssertionError: expected { payload: { data: { …(3) }, …(4) } } to strictly equal { payload: { …(5) } } - Expected + Received @@ -2,11 +2,11 @@ "payload": { "created_at": "2025-06-24T08:52:01.846Z", "data": { "ip": "::ffff:127.0.0.1", "some": "thing", - "user_agent": "node-fetch", + "user_agent": "node", }, "human_fields": { "Some": "thing", }, "ordered_human_fields": [ ❯ tests/integration/commands/dev/dev-forms-and-redirects.test.ts:131:24 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-forms-and-redirects.test.ts:92:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-forms-and-redirects.test.ts:70:5
t.expect(response).toHaveProperty('headers.host', `${server.host}:${server.port.toString()}`)
t.expect(response).toHaveProperty('headers.content-length', JSON.stringify(expectedBody).length.toString())
t.expect(response).toHaveProperty('headers.content-type', 'application/json')
Expand Down Expand Up @@ -316,7 +315,7 @@
await builder.build()

await withDevServer({ cwd: builder.directory }, async (server) => {
const response = await fetch(`${server.url}/foo.html`, { follow: 0 })
const response = await fetch(`${server.url}/foo.html`, { redirect: 'manual' })
t.expect(response).not.toHaveProperty('headers.location')
t.expect(await response.text()).toEqual('<html><h1>foo')
})
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/commands/dev/dev-miscellaneous.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import execa, { ExecaError } from 'execa'
import getAvailablePort from 'get-port'
import jwt from 'jsonwebtoken'
import fetch from 'node-fetch'

import { type TestContext, describe, test } from 'vitest'
import type { HandlerEvent, HandlerContext } from '@netlify/functions'
import type { Context as EdgeHandlerContext } from '@netlify/edge-functions'
Expand Down Expand Up @@ -597,10 +597,10 @@
expect(stream).not.toBeNull()

let numberOfChunks = 0
stream!.on('data', () => {

Check failure on line 600 in tests/integration/commands/dev/dev-miscellaneous.test.ts

View workflow job for this annotation

GitHub Actions / typecheck

Property 'on' does not exist on type 'ReadableStream<any>'.

Check failure on line 600 in tests/integration/commands/dev/dev-miscellaneous.test.ts

View workflow job for this annotation

GitHub Actions / Lint

Unsafe call of a(n) `error` type typed value

Check failure on line 600 in tests/integration/commands/dev/dev-miscellaneous.test.ts

View workflow job for this annotation

GitHub Actions / Integration (macOS-latest, 22, 4/4)

tests/integration/commands/dev/dev-miscellaneous.test.ts > commands/dev-miscellaneous > Serves an Edge Function that streams the response

TypeError: stream.on is not a function ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:600:17 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:593:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:547:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { stdout: '⬥ No app server detected. Using simple static server\n⬥ Running static server from "serves-an-edge-function-that-streams-the-response/public"\n⬥ Setting up local dev server\n\n⬥ Static server listening to 49574\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:49573 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n⬥ Loaded edge function stream\n', stderr: '(node:7860) [DEP0060] DeprecationWarning: The `util._extend` API is deprecated. Please use Object.assign() instead.\n(Use `node --trace-deprecation ...` to show where the warning was created)\n' }

Check failure on line 600 in tests/integration/commands/dev/dev-miscellaneous.test.ts

View workflow job for this annotation

GitHub Actions / Integration (macOS-latest, 22, 4/4)

tests/integration/commands/dev/dev-miscellaneous.test.ts > commands/dev-miscellaneous > Serves an Edge Function that streams the response

TypeError: stream.on is not a function ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:600:17 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:593:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:547:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { stdout: '⬥ No app server detected. Using simple static server\n⬥ Running static server from "serves-an-edge-function-that-streams-the-response/public"\n⬥ Setting up local dev server\n\n⬥ Static server listening to 49532\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:49531 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n⬥ Loaded edge function stream\n', stderr: '(node:7028) [DEP0060] DeprecationWarning: The `util._extend` API is deprecated. Please use Object.assign() instead.\n(Use `node --trace-deprecation ...` to show where the warning was created)\n' }

Check failure on line 600 in tests/integration/commands/dev/dev-miscellaneous.test.ts

View workflow job for this annotation

GitHub Actions / Integration (macOS-latest, 22, 4/4)

tests/integration/commands/dev/dev-miscellaneous.test.ts > commands/dev-miscellaneous > Serves an Edge Function that streams the response

TypeError: stream.on is not a function ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:600:17 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:593:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:547:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { stdout: '⬥ No app server detected. Using simple static server\n⬥ Running static server from "serves-an-edge-function-that-streams-the-response/public"\n⬥ Setting up local dev server\n\n⬥ Static server listening to 49496\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:49495 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n⬥ Loaded edge function stream\n', stderr: '(node:6313) [DEP0060] DeprecationWarning: The `util._extend` API is deprecated. Please use Object.assign() instead.\n(Use `node --trace-deprecation ...` to show where the warning was created)\n' }

Check failure on line 600 in tests/integration/commands/dev/dev-miscellaneous.test.ts

View workflow job for this annotation

GitHub Actions / Integration (macOS-latest, 22, 4/4)

tests/integration/commands/dev/dev-miscellaneous.test.ts > commands/dev-miscellaneous > Serves an Edge Function that streams the response

TypeError: stream.on is not a function ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:600:17 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:593:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:547:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { stdout: '⬥ No app server detected. Using simple static server\n⬥ Running static server from "serves-an-edge-function-that-streams-the-response/public"\n⬥ Setting up local dev server\n\n⬥ Static server listening to 49439\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:49438 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n⬥ Loaded edge function stream\n', stderr: '(node:5467) [DEP0060] DeprecationWarning: The `util._extend` API is deprecated. Please use Object.assign() instead.\n(Use `node --trace-deprecation ...` to show where the warning was created)\n' }

Check failure on line 600 in tests/integration/commands/dev/dev-miscellaneous.test.ts

View workflow job for this annotation

GitHub Actions / Integration (macOS-latest, 20.12.2, 4/4)

tests/integration/commands/dev/dev-miscellaneous.test.ts > commands/dev-miscellaneous > Serves an Edge Function that streams the response

TypeError: stream.on is not a function ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:600:17 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:593:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:547:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { stdout: '⬥ No app server detected. Using simple static server\n⬥ Running static server from "serves-an-edge-function-that-streams-the-response/public"\n⬥ Setting up local dev server\n\n⬥ Static server listening to 52652\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:52651 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n⬥ Loaded edge function stream\n', stderr: '' }

Check failure on line 600 in tests/integration/commands/dev/dev-miscellaneous.test.ts

View workflow job for this annotation

GitHub Actions / Integration (macOS-latest, 20.12.2, 4/4)

tests/integration/commands/dev/dev-miscellaneous.test.ts > commands/dev-miscellaneous > Serves an Edge Function that streams the response

TypeError: stream.on is not a function ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:600:17 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:593:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:547:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { stdout: '⬥ No app server detected. Using simple static server\n⬥ Running static server from "serves-an-edge-function-that-streams-the-response/public"\n⬥ Setting up local dev server\n\n⬥ Static server listening to 52615\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:52614 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n⬥ Loaded edge function stream\n', stderr: '' }

Check failure on line 600 in tests/integration/commands/dev/dev-miscellaneous.test.ts

View workflow job for this annotation

GitHub Actions / Integration (macOS-latest, 20.12.2, 4/4)

tests/integration/commands/dev/dev-miscellaneous.test.ts > commands/dev-miscellaneous > Serves an Edge Function that streams the response

TypeError: stream.on is not a function ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:600:17 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:593:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:547:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { stdout: '⬥ No app server detected. Using simple static server\n⬥ Running static server from "serves-an-edge-function-that-streams-the-response/public"\n⬥ Setting up local dev server\n\n⬥ Static server listening to 52576\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:52575 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n⬥ Loaded edge function stream\n', stderr: '' }

Check failure on line 600 in tests/integration/commands/dev/dev-miscellaneous.test.ts

View workflow job for this annotation

GitHub Actions / Integration (macOS-latest, 20.12.2, 4/4)

tests/integration/commands/dev/dev-miscellaneous.test.ts > commands/dev-miscellaneous > Serves an Edge Function that streams the response

TypeError: stream.on is not a function ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:600:17 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:593:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:547:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { stdout: '⬥ No app server detected. Using simple static server\n⬥ Running static server from "serves-an-edge-function-that-streams-the-response/public"\n⬥ Setting up local dev server\n\n⬥ Static server listening to 52509\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:52508 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n⬥ Loaded edge function stream\n', stderr: '' }

Check failure on line 600 in tests/integration/commands/dev/dev-miscellaneous.test.ts

View workflow job for this annotation

GitHub Actions / Integration (ubuntu-latest, 22, 4/4)

tests/integration/commands/dev/dev-miscellaneous.test.ts > commands/dev-miscellaneous > Serves an Edge Function that streams the response

TypeError: stream.on is not a function ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:600:17 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:593:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:547:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { stdout: '⬥ No app server detected. Using simple static server\n⬥ Running static server from "serves-an-edge-function-that-streams-the-response/public"\n⬥ Setting up local dev server\n\n⬥ Static server listening to 36951\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:45931 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n⬥ Loaded edge function stream\n', stderr: '(node:3505) [DEP0060] DeprecationWarning: The `util._extend` API is deprecated. Please use Object.assign() instead.\n(Use `node --trace-deprecation ...` to show where the warning was created)\n' }

Check failure on line 600 in tests/integration/commands/dev/dev-miscellaneous.test.ts

View workflow job for this annotation

GitHub Actions / Integration (ubuntu-latest, 22, 4/4)

tests/integration/commands/dev/dev-miscellaneous.test.ts > commands/dev-miscellaneous > Serves an Edge Function that streams the response

TypeError: stream.on is not a function ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:600:17 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:593:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:547:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { stdout: '⬥ No app server detected. Using simple static server\n⬥ Running static server from "serves-an-edge-function-that-streams-the-response/public"\n⬥ Setting up local dev server\n\n⬥ Static server listening to 41869\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:45759 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n⬥ Loaded edge function stream\n', stderr: '(node:3339) [DEP0060] DeprecationWarning: The `util._extend` API is deprecated. Please use Object.assign() instead.\n(Use `node --trace-deprecation ...` to show where the warning was created)\n' }

Check failure on line 600 in tests/integration/commands/dev/dev-miscellaneous.test.ts

View workflow job for this annotation

GitHub Actions / Integration (ubuntu-latest, 22, 4/4)

tests/integration/commands/dev/dev-miscellaneous.test.ts > commands/dev-miscellaneous > Serves an Edge Function that streams the response

TypeError: stream.on is not a function ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:600:17 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:593:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:547:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { stdout: '⬥ No app server detected. Using simple static server\n⬥ Running static server from "serves-an-edge-function-that-streams-the-response/public"\n⬥ Setting up local dev server\n\n⬥ Static server listening to 35405\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:41077 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n⬥ Loaded edge function stream\n', stderr: '(node:3227) [DEP0060] DeprecationWarning: The `util._extend` API is deprecated. Please use Object.assign() instead.\n(Use `node --trace-deprecation ...` to show where the warning was created)\n' }

Check failure on line 600 in tests/integration/commands/dev/dev-miscellaneous.test.ts

View workflow job for this annotation

GitHub Actions / Integration (ubuntu-latest, 22, 4/4)

tests/integration/commands/dev/dev-miscellaneous.test.ts > commands/dev-miscellaneous > Serves an Edge Function that streams the response

TypeError: stream.on is not a function ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:600:17 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:593:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:547:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { stdout: '⬥ No app server detected. Using simple static server\n⬥ Running static server from "serves-an-edge-function-that-streams-the-response/public"\n⬥ Setting up local dev server\n\n⬥ Static server listening to 38135\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:44615 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n⬥ Loaded edge function stream\n', stderr: '(node:2982) [DEP0060] DeprecationWarning: The `util._extend` API is deprecated. Please use Object.assign() instead.\n(Use `node --trace-deprecation ...` to show where the warning was created)\n' }

Check failure on line 600 in tests/integration/commands/dev/dev-miscellaneous.test.ts

View workflow job for this annotation

GitHub Actions / Integration (ubuntu-latest, 20.12.2, 4/4)

tests/integration/commands/dev/dev-miscellaneous.test.ts > commands/dev-miscellaneous > Serves an Edge Function that streams the response

TypeError: stream.on is not a function ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:600:17 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:593:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:547:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { stdout: '⬥ No app server detected. Using simple static server\n⬥ Running static server from "serves-an-edge-function-that-streams-the-response/public"\n⬥ Setting up local dev server\n\n⬥ Static server listening to 39217\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:37543 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n⬥ Loaded edge function stream\n', stderr: '' }

Check failure on line 600 in tests/integration/commands/dev/dev-miscellaneous.test.ts

View workflow job for this annotation

GitHub Actions / Integration (ubuntu-latest, 20.12.2, 4/4)

tests/integration/commands/dev/dev-miscellaneous.test.ts > commands/dev-miscellaneous > Serves an Edge Function that streams the response

TypeError: stream.on is not a function ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:600:17 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:593:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:547:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { stdout: '⬥ No app server detected. Using simple static server\n⬥ Running static server from "serves-an-edge-function-that-streams-the-response/public"\n⬥ Setting up local dev server\n\n⬥ Static server listening to 35815\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:35655 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n⬥ Loaded edge function stream\n', stderr: '' }

Check failure on line 600 in tests/integration/commands/dev/dev-miscellaneous.test.ts

View workflow job for this annotation

GitHub Actions / Integration (ubuntu-latest, 20.12.2, 4/4)

tests/integration/commands/dev/dev-miscellaneous.test.ts > commands/dev-miscellaneous > Serves an Edge Function that streams the response

TypeError: stream.on is not a function ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:600:17 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:593:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:547:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { stdout: '⬥ No app server detected. Using simple static server\n⬥ Running static server from "serves-an-edge-function-that-streams-the-response/public"\n⬥ Setting up local dev server\n\n⬥ Static server listening to 45709\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:40959 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n⬥ Loaded edge function stream\n', stderr: '' }

Check failure on line 600 in tests/integration/commands/dev/dev-miscellaneous.test.ts

View workflow job for this annotation

GitHub Actions / Integration (ubuntu-latest, 20.12.2, 4/4)

tests/integration/commands/dev/dev-miscellaneous.test.ts > commands/dev-miscellaneous > Serves an Edge Function that streams the response

TypeError: stream.on is not a function ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:600:17 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:593:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:547:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { stdout: '⬥ No app server detected. Using simple static server\n⬥ Running static server from "serves-an-edge-function-that-streams-the-response/public"\n⬥ Setting up local dev server\n\n⬥ Static server listening to 37655\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:41745 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n⬥ Loaded edge function stream\n', stderr: '' }

Check failure on line 600 in tests/integration/commands/dev/dev-miscellaneous.test.ts

View workflow job for this annotation

GitHub Actions / Integration (windows-2025, 20.12.2, 4/4)

tests/integration/commands/dev/dev-miscellaneous.test.ts > commands/dev-miscellaneous > Serves an Edge Function that streams the response

TypeError: stream.on is not a function ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:600:17 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:593:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:547:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { stdout: '⬥ No app server detected. Using simple static server\n⬥ Running static server from "serves-an-edge-function-that-streams-the-response\public"\n⬥ Setting up local dev server\n\n⬥ Static server listening to 10599\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:10598 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n⬥ Loaded edge function stream\n', stderr: '' }

Check failure on line 600 in tests/integration/commands/dev/dev-miscellaneous.test.ts

View workflow job for this annotation

GitHub Actions / Integration (windows-2025, 20.12.2, 4/4)

tests/integration/commands/dev/dev-miscellaneous.test.ts > commands/dev-miscellaneous > Serves an Edge Function that streams the response

TypeError: stream.on is not a function ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:600:17 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:593:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:547:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { stdout: '⬥ No app server detected. Using simple static server\n⬥ Running static server from "serves-an-edge-function-that-streams-the-response\public"\n⬥ Setting up local dev server\n\n⬥ Static server listening to 10556\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:10555 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n⬥ Loaded edge function stream\n', stderr: '' }

Check failure on line 600 in tests/integration/commands/dev/dev-miscellaneous.test.ts

View workflow job for this annotation

GitHub Actions / Integration (windows-2025, 20.12.2, 4/4)

tests/integration/commands/dev/dev-miscellaneous.test.ts > commands/dev-miscellaneous > Serves an Edge Function that streams the response

TypeError: stream.on is not a function ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:600:17 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:593:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:547:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { stdout: '⬥ No app server detected. Using simple static server\n⬥ Running static server from "serves-an-edge-function-that-streams-the-response\public"\n⬥ Setting up local dev server\n\n⬥ Static server listening to 10512\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:10511 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n⬥ Loaded edge function stream\n', stderr: '' }

Check failure on line 600 in tests/integration/commands/dev/dev-miscellaneous.test.ts

View workflow job for this annotation

GitHub Actions / Integration (windows-2025, 20.12.2, 4/4)

tests/integration/commands/dev/dev-miscellaneous.test.ts > commands/dev-miscellaneous > Serves an Edge Function that streams the response

TypeError: stream.on is not a function ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:600:17 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:593:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:547:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { stdout: '⬥ No app server detected. Using simple static server\n⬥ Running static server from "serves-an-edge-function-that-streams-the-response\public"\n⬥ Setting up local dev server\n\n⬥ Static server listening to 10440\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:10439 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n⬥ Loaded edge function stream\n', stderr: '' }
numberOfChunks += 1
})
await events.once(stream!, 'end')

Check failure on line 603 in tests/integration/commands/dev/dev-miscellaneous.test.ts

View workflow job for this annotation

GitHub Actions / typecheck

No overload matches this call.

// streamed responses arrive in more than one batch
expect(numberOfChunks).not.toBe(1)
Expand Down Expand Up @@ -775,7 +775,7 @@
.build()

await withDevServer({ cwd: builder.directory }, async ({ port, url }) => {
const response = await fetch(`${url.replace(port.toString(), functionsPort.toString())}/test`, {

Check failure on line 778 in tests/integration/commands/dev/dev-miscellaneous.test.ts

View workflow job for this annotation

GitHub Actions / Integration (macOS-latest, 22, 4/4)

tests/integration/commands/dev/dev-miscellaneous.test.ts > commands/dev-miscellaneous > doesn't hang when sending a application/json POST request to function server

TypeError: fetch failed ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:778:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:777:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:771:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { stdout: '⬥ No app server detected. Using simple static server\n⬥ Unable to determine public folder to serve files from. Using current working directory\n⬥ Setup a netlify.toml file with a [dev] section to specify your dev server settings.\n⬥ See docs at: https://docs.netlify.com/cli/local-development/#project-detection\n⬥ Running static server from "doesnt-hang-when-sending-a-application-json-post-request-to-function-server"\n⬥ Setting up local dev server\n\n⬥ Static server listening to 49594\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:49593 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:778:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:777:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 778 in tests/integration/commands/dev/dev-miscellaneous.test.ts

View workflow job for this annotation

GitHub Actions / Integration (macOS-latest, 22, 4/4)

tests/integration/commands/dev/dev-miscellaneous.test.ts > commands/dev-miscellaneous > doesn't hang when sending a application/json POST request to function server

TypeError: fetch failed ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:778:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:777:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:771:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { stdout: '⬥ No app server detected. Using simple static server\n⬥ Unable to determine public folder to serve files from. Using current working directory\n⬥ Setup a netlify.toml file with a [dev] section to specify your dev server settings.\n⬥ See docs at: https://docs.netlify.com/cli/local-development/#project-detection\n⬥ Running static server from "doesnt-hang-when-sending-a-application-json-post-request-to-function-server"\n⬥ Setting up local dev server\n\n⬥ Static server listening to 49543\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:49542 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:778:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:777:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 778 in tests/integration/commands/dev/dev-miscellaneous.test.ts

View workflow job for this annotation

GitHub Actions / Integration (macOS-latest, 22, 4/4)

tests/integration/commands/dev/dev-miscellaneous.test.ts > commands/dev-miscellaneous > doesn't hang when sending a application/json POST request to function server

TypeError: fetch failed ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:778:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:777:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:771:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { stdout: '⬥ No app server detected. Using simple static server\n⬥ Unable to determine public folder to serve files from. Using current working directory\n⬥ Setup a netlify.toml file with a [dev] section to specify your dev server settings.\n⬥ See docs at: https://docs.netlify.com/cli/local-development/#project-detection\n⬥ Running static server from "doesnt-hang-when-sending-a-application-json-post-request-to-function-server"\n⬥ Setting up local dev server\n\n⬥ Static server listening to 49510\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:49509 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:778:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:777:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 778 in tests/integration/commands/dev/dev-miscellaneous.test.ts

View workflow job for this annotation

GitHub Actions / Integration (macOS-latest, 22, 4/4)

tests/integration/commands/dev/dev-miscellaneous.test.ts > commands/dev-miscellaneous > doesn't hang when sending a application/json POST request to function server

TypeError: fetch failed ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:778:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:777:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:771:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { stdout: '⬥ No app server detected. Using simple static server\n⬥ Unable to determine public folder to serve files from. Using current working directory\n⬥ Setup a netlify.toml file with a [dev] section to specify your dev server settings.\n⬥ See docs at: https://docs.netlify.com/cli/local-development/#project-detection\n⬥ Running static server from "doesnt-hang-when-sending-a-application-json-post-request-to-function-server"\n⬥ Setting up local dev server\n\n⬥ Static server listening to 49477\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:49476 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:778:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:777:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 778 in tests/integration/commands/dev/dev-miscellaneous.test.ts

View workflow job for this annotation

GitHub Actions / Integration (macOS-latest, 20.12.2, 4/4)

tests/integration/commands/dev/dev-miscellaneous.test.ts > commands/dev-miscellaneous > doesn't hang when sending a application/json POST request to function server

TypeError: fetch failed ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:778:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:777:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:771:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { stdout: '⬥ No app server detected. Using simple static server\n⬥ Unable to determine public folder to serve files from. Using current working directory\n⬥ Setup a netlify.toml file with a [dev] section to specify your dev server settings.\n⬥ See docs at: https://docs.netlify.com/cli/local-development/#project-detection\n⬥ Running static server from "doesnt-hang-when-sending-a-application-json-post-request-to-function-server"\n⬥ Setting up local dev server\n\n⬥ Static server listening to 52685\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:52684 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:778:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:777:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 778 in tests/integration/commands/dev/dev-miscellaneous.test.ts

View workflow job for this annotation

GitHub Actions / Integration (macOS-latest, 20.12.2, 4/4)

tests/integration/commands/dev/dev-miscellaneous.test.ts > commands/dev-miscellaneous > doesn't hang when sending a application/json POST request to function server

TypeError: fetch failed ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:778:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:777:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:771:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { stdout: '⬥ No app server detected. Using simple static server\n⬥ Unable to determine public folder to serve files from. Using current working directory\n⬥ Setup a netlify.toml file with a [dev] section to specify your dev server settings.\n⬥ See docs at: https://docs.netlify.com/cli/local-development/#project-detection\n⬥ Running static server from "doesnt-hang-when-sending-a-application-json-post-request-to-function-server"\n⬥ Setting up local dev server\n\n⬥ Static server listening to 52635\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:52634 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:778:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:777:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 778 in tests/integration/commands/dev/dev-miscellaneous.test.ts

View workflow job for this annotation

GitHub Actions / Integration (macOS-latest, 20.12.2, 4/4)

tests/integration/commands/dev/dev-miscellaneous.test.ts > commands/dev-miscellaneous > doesn't hang when sending a application/json POST request to function server

TypeError: fetch failed ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:778:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:777:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:771:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { stdout: '⬥ No app server detected. Using simple static server\n⬥ Unable to determine public folder to serve files from. Using current working directory\n⬥ Setup a netlify.toml file with a [dev] section to specify your dev server settings.\n⬥ See docs at: https://docs.netlify.com/cli/local-development/#project-detection\n⬥ Running static server from "doesnt-hang-when-sending-a-application-json-post-request-to-function-server"\n⬥ Setting up local dev server\n\n⬥ Static server listening to 52609\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:52608 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:778:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:777:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 778 in tests/integration/commands/dev/dev-miscellaneous.test.ts

View workflow job for this annotation

GitHub Actions / Integration (macOS-latest, 20.12.2, 4/4)

tests/integration/commands/dev/dev-miscellaneous.test.ts > commands/dev-miscellaneous > doesn't hang when sending a application/json POST request to function server

TypeError: fetch failed ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:778:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:777:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:771:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { stdout: '⬥ No app server detected. Using simple static server\n⬥ Unable to determine public folder to serve files from. Using current working directory\n⬥ Setup a netlify.toml file with a [dev] section to specify your dev server settings.\n⬥ See docs at: https://docs.netlify.com/cli/local-development/#project-detection\n⬥ Running static server from "doesnt-hang-when-sending-a-application-json-post-request-to-function-server"\n⬥ Setting up local dev server\n\n⬥ Static server listening to 52570\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:52569 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:778:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:777:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 778 in tests/integration/commands/dev/dev-miscellaneous.test.ts

View workflow job for this annotation

GitHub Actions / Integration (ubuntu-latest, 22, 4/4)

tests/integration/commands/dev/dev-miscellaneous.test.ts > commands/dev-miscellaneous > doesn't hang when sending a application/json POST request to function server

TypeError: fetch failed ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:778:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:777:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:771:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { stdout: '⬥ No app server detected. Using simple static server\n⬥ Unable to determine public folder to serve files from. Using current working directory\n⬥ Setup a netlify.toml file with a [dev] section to specify your dev server settings.\n⬥ See docs at: https://docs.netlify.com/cli/local-development/#project-detection\n⬥ Running static server from "doesnt-hang-when-sending-a-application-json-post-request-to-function-server"\n⬥ Setting up local dev server\n\n⬥ Static server listening to 45363\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:38521 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:778:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:777:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 778 in tests/integration/commands/dev/dev-miscellaneous.test.ts

View workflow job for this annotation

GitHub Actions / Integration (ubuntu-latest, 22, 4/4)

tests/integration/commands/dev/dev-miscellaneous.test.ts > commands/dev-miscellaneous > doesn't hang when sending a application/json POST request to function server

TypeError: fetch failed ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:778:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:777:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:771:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { stdout: '⬥ No app server detected. Using simple static server\n⬥ Unable to determine public folder to serve files from. Using current working directory\n⬥ Setup a netlify.toml file with a [dev] section to specify your dev server settings.\n⬥ See docs at: https://docs.netlify.com/cli/local-development/#project-detection\n⬥ Running static server from "doesnt-hang-when-sending-a-application-json-post-request-to-function-server"\n⬥ Setting up local dev server\n\n⬥ Static server listening to 44811\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:35055 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:778:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:777:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 778 in tests/integration/commands/dev/dev-miscellaneous.test.ts

View workflow job for this annotation

GitHub Actions / Integration (ubuntu-latest, 22, 4/4)

tests/integration/commands/dev/dev-miscellaneous.test.ts > commands/dev-miscellaneous > doesn't hang when sending a application/json POST request to function server

TypeError: fetch failed ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:778:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:777:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:771:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { stdout: '⬥ No app server detected. Using simple static server\n⬥ Unable to determine public folder to serve files from. Using current working directory\n⬥ Setup a netlify.toml file with a [dev] section to specify your dev server settings.\n⬥ See docs at: https://docs.netlify.com/cli/local-development/#project-detection\n⬥ Running static server from "doesnt-hang-when-sending-a-application-json-post-request-to-function-server"\n⬥ Setting up local dev server\n\n⬥ Static server listening to 44723\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:36849 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:778:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:777:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 778 in tests/integration/commands/dev/dev-miscellaneous.test.ts

View workflow job for this annotation

GitHub Actions / Integration (ubuntu-latest, 22, 4/4)

tests/integration/commands/dev/dev-miscellaneous.test.ts > commands/dev-miscellaneous > doesn't hang when sending a application/json POST request to function server

TypeError: fetch failed ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:778:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:777:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:771:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { stdout: '⬥ No app server detected. Using simple static server\n⬥ Unable to determine public folder to serve files from. Using current working directory\n⬥ Setup a netlify.toml file with a [dev] section to specify your dev server settings.\n⬥ See docs at: https://docs.netlify.com/cli/local-development/#project-detection\n⬥ Running static server from "doesnt-hang-when-sending-a-application-json-post-request-to-function-server"\n⬥ Setting up local dev server\n\n⬥ Static server listening to 43081\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:43713 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:778:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:777:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 778 in tests/integration/commands/dev/dev-miscellaneous.test.ts

View workflow job for this annotation

GitHub Actions / Integration (ubuntu-latest, 20.12.2, 4/4)

tests/integration/commands/dev/dev-miscellaneous.test.ts > commands/dev-miscellaneous > doesn't hang when sending a application/json POST request to function server

TypeError: fetch failed ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:778:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:777:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:771:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { stdout: '⬥ No app server detected. Using simple static server\n⬥ Unable to determine public folder to serve files from. Using current working directory\n⬥ Setup a netlify.toml file with a [dev] section to specify your dev server settings.\n⬥ See docs at: https://docs.netlify.com/cli/local-development/#project-detection\n⬥ Running static server from "doesnt-hang-when-sending-a-application-json-post-request-to-function-server"\n⬥ Setting up local dev server\n\n⬥ Static server listening to 35033\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:36765 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:778:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:777:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 778 in tests/integration/commands/dev/dev-miscellaneous.test.ts

View workflow job for this annotation

GitHub Actions / Integration (ubuntu-latest, 20.12.2, 4/4)

tests/integration/commands/dev/dev-miscellaneous.test.ts > commands/dev-miscellaneous > doesn't hang when sending a application/json POST request to function server

TypeError: fetch failed ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:778:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:777:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:771:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { stdout: '⬥ No app server detected. Using simple static server\n⬥ Unable to determine public folder to serve files from. Using current working directory\n⬥ Setup a netlify.toml file with a [dev] section to specify your dev server settings.\n⬥ See docs at: https://docs.netlify.com/cli/local-development/#project-detection\n⬥ Running static server from "doesnt-hang-when-sending-a-application-json-post-request-to-function-server"\n⬥ Setting up local dev server\n\n⬥ Static server listening to 40849\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:34419 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:778:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:777:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 778 in tests/integration/commands/dev/dev-miscellaneous.test.ts

View workflow job for this annotation

GitHub Actions / Integration (ubuntu-latest, 20.12.2, 4/4)

tests/integration/commands/dev/dev-miscellaneous.test.ts > commands/dev-miscellaneous > doesn't hang when sending a application/json POST request to function server

TypeError: fetch failed ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:778:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:777:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:771:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { stdout: '⬥ No app server detected. Using simple static server\n⬥ Unable to determine public folder to serve files from. Using current working directory\n⬥ Setup a netlify.toml file with a [dev] section to specify your dev server settings.\n⬥ See docs at: https://docs.netlify.com/cli/local-development/#project-detection\n⬥ Running static server from "doesnt-hang-when-sending-a-application-json-post-request-to-function-server"\n⬥ Setting up local dev server\n\n⬥ Static server listening to 44247\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:41467 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:778:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:777:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 778 in tests/integration/commands/dev/dev-miscellaneous.test.ts

View workflow job for this annotation

GitHub Actions / Integration (ubuntu-latest, 20.12.2, 4/4)

tests/integration/commands/dev/dev-miscellaneous.test.ts > commands/dev-miscellaneous > doesn't hang when sending a application/json POST request to function server

TypeError: fetch failed ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:778:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:777:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:771:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { stdout: '⬥ No app server detected. Using simple static server\n⬥ Unable to determine public folder to serve files from. Using current working directory\n⬥ Setup a netlify.toml file with a [dev] section to specify your dev server settings.\n⬥ See docs at: https://docs.netlify.com/cli/local-development/#project-detection\n⬥ Running static server from "doesnt-hang-when-sending-a-application-json-post-request-to-function-server"\n⬥ Setting up local dev server\n\n⬥ Static server listening to 41339\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:33299 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:778:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:777:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 778 in tests/integration/commands/dev/dev-miscellaneous.test.ts

View workflow job for this annotation

GitHub Actions / Integration (windows-2025, 20.12.2, 4/4)

tests/integration/commands/dev/dev-miscellaneous.test.ts > commands/dev-miscellaneous > doesn't hang when sending a application/json POST request to function server

TypeError: fetch failed ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:778:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:777:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:771:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { stdout: '⬥ No app server detected. Using simple static server\n⬥ Unable to determine public folder to serve files from. Using current working directory\n⬥ Setup a netlify.toml file with a [dev] section to specify your dev server settings.\n⬥ See docs at: https://docs.netlify.com/cli/local-development/#project-detection\n⬥ Running static server from "doesnt-hang-when-sending-a-application-json-post-request-to-function-server"\n⬥ Setting up local dev server\n\n⬥ Static server listening to 10611\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:10610 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:778:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:777:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 778 in tests/integration/commands/dev/dev-miscellaneous.test.ts

View workflow job for this annotation

GitHub Actions / Integration (windows-2025, 20.12.2, 4/4)

tests/integration/commands/dev/dev-miscellaneous.test.ts > commands/dev-miscellaneous > doesn't hang when sending a application/json POST request to function server

TypeError: fetch failed ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:778:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:777:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:771:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { stdout: '⬥ No app server detected. Using simple static server\n⬥ Unable to determine public folder to serve files from. Using current working directory\n⬥ Setup a netlify.toml file with a [dev] section to specify your dev server settings.\n⬥ See docs at: https://docs.netlify.com/cli/local-development/#project-detection\n⬥ Running static server from "doesnt-hang-when-sending-a-application-json-post-request-to-function-server"\n⬥ Setting up local dev server\n\n⬥ Static server listening to 10570\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:10569 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:778:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:777:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 778 in tests/integration/commands/dev/dev-miscellaneous.test.ts

View workflow job for this annotation

GitHub Actions / Integration (windows-2025, 20.12.2, 4/4)

tests/integration/commands/dev/dev-miscellaneous.test.ts > commands/dev-miscellaneous > doesn't hang when sending a application/json POST request to function server

TypeError: fetch failed ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:778:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:777:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:771:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { stdout: '⬥ No app server detected. Using simple static server\n⬥ Unable to determine public folder to serve files from. Using current working directory\n⬥ Setup a netlify.toml file with a [dev] section to specify your dev server settings.\n⬥ See docs at: https://docs.netlify.com/cli/local-development/#project-detection\n⬥ Running static server from "doesnt-hang-when-sending-a-application-json-post-request-to-function-server"\n⬥ Setting up local dev server\n\n⬥ Static server listening to 10536\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:10535 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:778:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:777:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 778 in tests/integration/commands/dev/dev-miscellaneous.test.ts

View workflow job for this annotation

GitHub Actions / Integration (windows-2025, 20.12.2, 4/4)

tests/integration/commands/dev/dev-miscellaneous.test.ts > commands/dev-miscellaneous > doesn't hang when sending a application/json POST request to function server

TypeError: fetch failed ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:778:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:777:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:771:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { stdout: '⬥ No app server detected. Using simple static server\n⬥ Unable to determine public folder to serve files from. Using current working directory\n⬥ Setup a netlify.toml file with a [dev] section to specify your dev server settings.\n⬥ See docs at: https://docs.netlify.com/cli/local-development/#project-detection\n⬥ Running static server from "doesnt-hang-when-sending-a-application-json-post-request-to-function-server"\n⬥ Setting up local dev server\n\n⬥ Static server listening to 10510\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:10509 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:778:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:777:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12
method: 'POST',
headers: {
'Content-Type': 'application/json',
Expand Down Expand Up @@ -804,7 +804,7 @@
.build()

await withDevServer({ cwd: builder.directory }, async ({ port, url }) => {
const response = await fetch(

Check failure on line 807 in tests/integration/commands/dev/dev-miscellaneous.test.ts

View workflow job for this annotation

GitHub Actions / Integration (macOS-latest, 22, 4/4)

tests/integration/commands/dev/dev-miscellaneous.test.ts > commands/dev-miscellaneous > catches invalid function names

TypeError: fetch failed ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:807:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:806:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:792:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { stdout: '⬥ No app server detected. Using simple static server\n⬥ Unable to determine public folder to serve files from. Using current working directory\n⬥ Setup a netlify.toml file with a [dev] section to specify your dev server settings.\n⬥ See docs at: https://docs.netlify.com/cli/local-development/#project-detection\n⬥ Running static server from "catches-invalid-function-names"\n⬥ Setting up local dev server\n\n⬥ Static server listening to 49523\n › Warning: Function name \'exclamat!on\' is invalid. It should consist only of alphanumeric characters, hyphen & underscores.\n⬥ Loaded function exclamat!on\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:49522 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:807:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:806:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 807 in tests/integration/commands/dev/dev-miscellaneous.test.ts

View workflow job for this annotation

GitHub Actions / Integration (macOS-latest, 22, 4/4)

tests/integration/commands/dev/dev-miscellaneous.test.ts > commands/dev-miscellaneous > catches invalid function names

TypeError: fetch failed ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:807:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:806:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:792:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { stdout: '⬥ No app server detected. Using simple static server\n⬥ Unable to determine public folder to serve files from. Using current working directory\n⬥ Setup a netlify.toml file with a [dev] section to specify your dev server settings.\n⬥ See docs at: https://docs.netlify.com/cli/local-development/#project-detection\n⬥ Running static server from "catches-invalid-function-names"\n⬥ Setting up local dev server\n\n⬥ Static server listening to 49494\n › Warning: Function name \'exclamat!on\' is invalid. It should consist only of alphanumeric characters, hyphen & underscores.\n⬥ Loaded function exclamat!on\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:49493 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:807:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:806:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 807 in tests/integration/commands/dev/dev-miscellaneous.test.ts

View workflow job for this annotation

GitHub Actions / Integration (macOS-latest, 20.12.2, 4/4)

tests/integration/commands/dev/dev-miscellaneous.test.ts > commands/dev-miscellaneous > catches invalid function names

TypeError: fetch failed ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:807:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:806:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:792:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { stdout: '⬥ No app server detected. Using simple static server\n⬥ Unable to determine public folder to serve files from. Using current working directory\n⬥ Setup a netlify.toml file with a [dev] section to specify your dev server settings.\n⬥ See docs at: https://docs.netlify.com/cli/local-development/#project-detection\n⬥ Running static server from "catches-invalid-function-names"\n⬥ Setting up local dev server\n\n⬥ Static server listening to 52607\n › Warning: Function name \'exclamat!on\' is invalid. It should consist only of alphanumeric characters, hyphen & underscores.\n⬥ Loaded function exclamat!on\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:52606 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:807:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:806:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 807 in tests/integration/commands/dev/dev-miscellaneous.test.ts

View workflow job for this annotation

GitHub Actions / Integration (macOS-latest, 20.12.2, 4/4)

tests/integration/commands/dev/dev-miscellaneous.test.ts > commands/dev-miscellaneous > catches invalid function names

TypeError: fetch failed ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:807:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:806:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:792:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { stdout: '⬥ No app server detected. Using simple static server\n⬥ Unable to determine public folder to serve files from. Using current working directory\n⬥ Setup a netlify.toml file with a [dev] section to specify your dev server settings.\n⬥ See docs at: https://docs.netlify.com/cli/local-development/#project-detection\n⬥ Running static server from "catches-invalid-function-names"\n⬥ Setting up local dev server\n\n⬥ Static server listening to 52578\n › Warning: Function name \'exclamat!on\' is invalid. It should consist only of alphanumeric characters, hyphen & underscores.\n⬥ Loaded function exclamat!on\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:52577 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:807:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:806:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 807 in tests/integration/commands/dev/dev-miscellaneous.test.ts

View workflow job for this annotation

GitHub Actions / Integration (ubuntu-latest, 22, 4/4)

tests/integration/commands/dev/dev-miscellaneous.test.ts > commands/dev-miscellaneous > catches invalid function names

TypeError: fetch failed ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:807:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:806:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:792:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { stdout: '⬥ No app server detected. Using simple static server\n⬥ Unable to determine public folder to serve files from. Using current working directory\n⬥ Setup a netlify.toml file with a [dev] section to specify your dev server settings.\n⬥ See docs at: https://docs.netlify.com/cli/local-development/#project-detection\n⬥ Running static server from "catches-invalid-function-names"\n⬥ Setting up local dev server\n\n⬥ Static server listening to 34513\n › Warning: Function name \'exclamat!on\' is invalid. It should consist only of alphanumeric characters, hyphen & underscores.\n⬥ Loaded function exclamat!on\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:40335 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:807:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:806:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 807 in tests/integration/commands/dev/dev-miscellaneous.test.ts

View workflow job for this annotation

GitHub Actions / Integration (ubuntu-latest, 22, 4/4)

tests/integration/commands/dev/dev-miscellaneous.test.ts > commands/dev-miscellaneous > catches invalid function names

TypeError: fetch failed ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:807:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:806:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:792:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { stdout: '⬥ No app server detected. Using simple static server\n⬥ Unable to determine public folder to serve files from. Using current working directory\n⬥ Setup a netlify.toml file with a [dev] section to specify your dev server settings.\n⬥ See docs at: https://docs.netlify.com/cli/local-development/#project-detection\n⬥ Running static server from "catches-invalid-function-names"\n⬥ Setting up local dev server\n\n⬥ Static server listening to 41531\n › Warning: Function name \'exclamat!on\' is invalid. It should consist only of alphanumeric characters, hyphen & underscores.\n⬥ Loaded function exclamat!on\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:38515 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:807:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:806:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 807 in tests/integration/commands/dev/dev-miscellaneous.test.ts

View workflow job for this annotation

GitHub Actions / Integration (ubuntu-latest, 20.12.2, 4/4)

tests/integration/commands/dev/dev-miscellaneous.test.ts > commands/dev-miscellaneous > catches invalid function names

TypeError: fetch failed ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:807:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:806:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:792:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { stdout: '⬥ No app server detected. Using simple static server\n⬥ Unable to determine public folder to serve files from. Using current working directory\n⬥ Setup a netlify.toml file with a [dev] section to specify your dev server settings.\n⬥ See docs at: https://docs.netlify.com/cli/local-development/#project-detection\n⬥ Running static server from "catches-invalid-function-names"\n⬥ Setting up local dev server\n\n⬥ Static server listening to 43333\n › Warning: Function name \'exclamat!on\' is invalid. It should consist only of alphanumeric characters, hyphen & underscores.\n⬥ Loaded function exclamat!on\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:46535 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:807:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:806:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 807 in tests/integration/commands/dev/dev-miscellaneous.test.ts

View workflow job for this annotation

GitHub Actions / Integration (ubuntu-latest, 20.12.2, 4/4)

tests/integration/commands/dev/dev-miscellaneous.test.ts > commands/dev-miscellaneous > catches invalid function names

TypeError: fetch failed ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:807:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:806:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:792:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { stdout: '⬥ No app server detected. Using simple static server\n⬥ Unable to determine public folder to serve files from. Using current working directory\n⬥ Setup a netlify.toml file with a [dev] section to specify your dev server settings.\n⬥ See docs at: https://docs.netlify.com/cli/local-development/#project-detection\n⬥ Running static server from "catches-invalid-function-names"\n⬥ Setting up local dev server\n\n⬥ Static server listening to 36799\n › Warning: Function name \'exclamat!on\' is invalid. It should consist only of alphanumeric characters, hyphen & underscores.\n⬥ Loaded function exclamat!on\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:37481 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:807:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:806:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 807 in tests/integration/commands/dev/dev-miscellaneous.test.ts

View workflow job for this annotation

GitHub Actions / Integration (windows-2025, 20.12.2, 4/4)

tests/integration/commands/dev/dev-miscellaneous.test.ts > commands/dev-miscellaneous > catches invalid function names

TypeError: fetch failed ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:807:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:806:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:792:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { stdout: '⬥ No app server detected. Using simple static server\n⬥ Unable to determine public folder to serve files from. Using current working directory\n⬥ Setup a netlify.toml file with a [dev] section to specify your dev server settings.\n⬥ See docs at: https://docs.netlify.com/cli/local-development/#project-detection\n⬥ Running static server from "catches-invalid-function-names"\n⬥ Setting up local dev server\n\n⬥ Static server listening to 10547\n » Warning: Function name \'exclamat!on\' is invalid. It should consist only of alphanumeric characters, hyphen & underscores.\n⬥ Loaded function exclamat!on\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:10546 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:807:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:806:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 807 in tests/integration/commands/dev/dev-miscellaneous.test.ts

View workflow job for this annotation

GitHub Actions / Integration (windows-2025, 20.12.2, 4/4)

tests/integration/commands/dev/dev-miscellaneous.test.ts > commands/dev-miscellaneous > catches invalid function names

TypeError: fetch failed ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:807:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:806:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:792:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { stdout: '⬥ No app server detected. Using simple static server\n⬥ Unable to determine public folder to serve files from. Using current working directory\n⬥ Setup a netlify.toml file with a [dev] section to specify your dev server settings.\n⬥ See docs at: https://docs.netlify.com/cli/local-development/#project-detection\n⬥ Running static server from "catches-invalid-function-names"\n⬥ Setting up local dev server\n\n⬥ Static server listening to 10516\n » Warning: Function name \'exclamat!on\' is invalid. It should consist only of alphanumeric characters, hyphen & underscores.\n⬥ Loaded function exclamat!on\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:10515 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:807:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:806:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12
`${url.replace(port.toString(), functionsPort.toString())}/.netlify/functions/exclamat!on`,
{
method: 'POST',
Expand Down
21 changes: 9 additions & 12 deletions tests/integration/commands/dev/dev.config.test.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import { Buffer } from 'node:buffer'
import { version } from 'node:process'
import events from 'node:events'

import type { HandlerEvent } from '@netlify/functions'
import FormData from 'form-data'
import getPort from 'get-port'
import fetch from 'node-fetch'

import { gte } from 'semver'
import { describe, test } from 'vitest'

Expand Down Expand Up @@ -437,9 +435,11 @@
await withDevServer({ cwd: builder.directory }, async (server) => {
const form = new FormData()
form.append('some', 'thing')

const expectedBoundary = form.getBoundary()
const expectedResponseBody = form.getBuffer().toString('base64')
const rsp = new Response(form);
const contentType = rsp.headers.get('Content-Type');
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/prefer-regexp-exec
const expectedBoundary = contentType!.match(/boundary=(\S+)/)![1];
const expectedResponseBody = await rsp.text();

const response = await fetch(`${server.url}/api/echo?ding=dong`, {
method: 'POST',
Expand All @@ -448,7 +448,7 @@
const body = await response.json()

t.expect(body).toHaveProperty('headers.host', `${server.host}:${server.port.toString()}`)
t.expect(body).toHaveProperty('headers.content-type', `multipart/form-data;boundary=${expectedBoundary}`)

Check failure on line 451 in tests/integration/commands/dev/dev.config.test.ts

View workflow job for this annotation

GitHub Actions / Integration (ubuntu-latest, 20.12.2, 1/4)

tests/integration/commands/dev/dev.config.test.ts > commands/dev/config > should handle multipart form data when redirecting

AssertionError: expected { path: '/api/echo', …(11) } to have property "headers.content-type" with value 'multipart/form-data;boundary=----form…' Expected: "multipart/form-data;boundary=----formdata-undici-075608104568" Received: "multipart/form-data; boundary=----formdata-undici-085838600793" ❯ tests/integration/commands/dev/dev.config.test.ts:451:24 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev.config.test.ts:435:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev.config.test.ts:416:5

Check failure on line 451 in tests/integration/commands/dev/dev.config.test.ts

View workflow job for this annotation

GitHub Actions / Integration (ubuntu-latest, 20.12.2, 1/4)

tests/integration/commands/dev/dev.config.test.ts > commands/dev/config > should handle multipart form data when redirecting

AssertionError: expected { path: '/api/echo', …(11) } to have property "headers.content-type" with value 'multipart/form-data;boundary=----form…' Expected: "multipart/form-data;boundary=----formdata-undici-056776122782" Received: "multipart/form-data; boundary=----formdata-undici-087486105776" ❯ tests/integration/commands/dev/dev.config.test.ts:451:24 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev.config.test.ts:435:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev.config.test.ts:416:5

Check failure on line 451 in tests/integration/commands/dev/dev.config.test.ts

View workflow job for this annotation

GitHub Actions / Integration (ubuntu-latest, 20.12.2, 1/4)

tests/integration/commands/dev/dev.config.test.ts > commands/dev/config > should handle multipart form data when redirecting

AssertionError: expected { path: '/api/echo', …(11) } to have property "headers.content-type" with value 'multipart/form-data;boundary=----form…' Expected: "multipart/form-data;boundary=----formdata-undici-008811975715" Received: "multipart/form-data; boundary=----formdata-undici-059231998701" ❯ tests/integration/commands/dev/dev.config.test.ts:451:24 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev.config.test.ts:435:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev.config.test.ts:416:5

Check failure on line 451 in tests/integration/commands/dev/dev.config.test.ts

View workflow job for this annotation

GitHub Actions / Integration (ubuntu-latest, 20.12.2, 1/4)

tests/integration/commands/dev/dev.config.test.ts > commands/dev/config > should handle multipart form data when redirecting

AssertionError: expected { path: '/api/echo', …(11) } to have property "headers.content-type" with value 'multipart/form-data;boundary=----form…' Expected: "multipart/form-data;boundary=----formdata-undici-076879622394" Received: "multipart/form-data; boundary=----formdata-undici-053966619939" ❯ tests/integration/commands/dev/dev.config.test.ts:451:24 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev.config.test.ts:435:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev.config.test.ts:416:5

Check failure on line 451 in tests/integration/commands/dev/dev.config.test.ts

View workflow job for this annotation

GitHub Actions / Integration (ubuntu-latest, 22, 1/4)

tests/integration/commands/dev/dev.config.test.ts > commands/dev/config > should handle multipart form data when redirecting

AssertionError: expected { path: '/api/echo', …(11) } to have property "headers.content-type" with value 'multipart/form-data;boundary=----form…' Expected: "multipart/form-data;boundary=----formdata-undici-092014754605" Received: "multipart/form-data; boundary=----formdata-undici-072832655890" ❯ tests/integration/commands/dev/dev.config.test.ts:451:24 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev.config.test.ts:435:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev.config.test.ts:416:5

Check failure on line 451 in tests/integration/commands/dev/dev.config.test.ts

View workflow job for this annotation

GitHub Actions / Integration (ubuntu-latest, 22, 1/4)

tests/integration/commands/dev/dev.config.test.ts > commands/dev/config > should handle multipart form data when redirecting

AssertionError: expected { path: '/api/echo', …(11) } to have property "headers.content-type" with value 'multipart/form-data;boundary=----form…' Expected: "multipart/form-data;boundary=----formdata-undici-031314114264" Received: "multipart/form-data; boundary=----formdata-undici-049420679091" ❯ tests/integration/commands/dev/dev.config.test.ts:451:24 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev.config.test.ts:435:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev.config.test.ts:416:5

Check failure on line 451 in tests/integration/commands/dev/dev.config.test.ts

View workflow job for this annotation

GitHub Actions / Integration (ubuntu-latest, 22, 1/4)

tests/integration/commands/dev/dev.config.test.ts > commands/dev/config > should handle multipart form data when redirecting

AssertionError: expected { path: '/api/echo', …(11) } to have property "headers.content-type" with value 'multipart/form-data;boundary=----form…' Expected: "multipart/form-data;boundary=----formdata-undici-030655685599" Received: "multipart/form-data; boundary=----formdata-undici-014667467920" ❯ tests/integration/commands/dev/dev.config.test.ts:451:24 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev.config.test.ts:435:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev.config.test.ts:416:5

Check failure on line 451 in tests/integration/commands/dev/dev.config.test.ts

View workflow job for this annotation

GitHub Actions / Integration (ubuntu-latest, 22, 1/4)

tests/integration/commands/dev/dev.config.test.ts > commands/dev/config > should handle multipart form data when redirecting

AssertionError: expected { path: '/api/echo', …(11) } to have property "headers.content-type" with value 'multipart/form-data;boundary=----form…' Expected: "multipart/form-data;boundary=----formdata-undici-055502236885" Received: "multipart/form-data; boundary=----formdata-undici-065963401024" ❯ tests/integration/commands/dev/dev.config.test.ts:451:24 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev.config.test.ts:435:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev.config.test.ts:416:5

Check failure on line 451 in tests/integration/commands/dev/dev.config.test.ts

View workflow job for this annotation

GitHub Actions / Integration (macOS-latest, 20.12.2, 1/4)

tests/integration/commands/dev/dev.config.test.ts > commands/dev/config > should handle multipart form data when redirecting

AssertionError: expected { path: '/api/echo', …(11) } to have property "headers.content-type" with value 'multipart/form-data;boundary=----form…' Expected: "multipart/form-data;boundary=----formdata-undici-034126793336" Received: "multipart/form-data; boundary=----formdata-undici-037004252240" ❯ tests/integration/commands/dev/dev.config.test.ts:451:24 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev.config.test.ts:435:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev.config.test.ts:416:5

Check failure on line 451 in tests/integration/commands/dev/dev.config.test.ts

View workflow job for this annotation

GitHub Actions / Integration (macOS-latest, 20.12.2, 1/4)

tests/integration/commands/dev/dev.config.test.ts > commands/dev/config > should handle multipart form data when redirecting

AssertionError: expected { path: '/api/echo', …(11) } to have property "headers.content-type" with value 'multipart/form-data;boundary=----form…' Expected: "multipart/form-data;boundary=----formdata-undici-091107208762" Received: "multipart/form-data; boundary=----formdata-undici-063057980475" ❯ tests/integration/commands/dev/dev.config.test.ts:451:24 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev.config.test.ts:435:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev.config.test.ts:416:5

Check failure on line 451 in tests/integration/commands/dev/dev.config.test.ts

View workflow job for this annotation

GitHub Actions / Integration (macOS-latest, 20.12.2, 1/4)

tests/integration/commands/dev/dev.config.test.ts > commands/dev/config > should handle multipart form data when redirecting

AssertionError: expected { path: '/api/echo', …(11) } to have property "headers.content-type" with value 'multipart/form-data;boundary=----form…' Expected: "multipart/form-data;boundary=----formdata-undici-037164999890" Received: "multipart/form-data; boundary=----formdata-undici-083035853416" ❯ tests/integration/commands/dev/dev.config.test.ts:451:24 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev.config.test.ts:435:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev.config.test.ts:416:5

Check failure on line 451 in tests/integration/commands/dev/dev.config.test.ts

View workflow job for this annotation

GitHub Actions / Integration (macOS-latest, 20.12.2, 1/4)

tests/integration/commands/dev/dev.config.test.ts > commands/dev/config > should handle multipart form data when redirecting

AssertionError: expected { path: '/api/echo', …(11) } to have property "headers.content-type" with value 'multipart/form-data;boundary=----form…' Expected: "multipart/form-data;boundary=----formdata-undici-021516640960" Received: "multipart/form-data; boundary=----formdata-undici-009229127921" ❯ tests/integration/commands/dev/dev.config.test.ts:451:24 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev.config.test.ts:435:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev.config.test.ts:416:5

Check failure on line 451 in tests/integration/commands/dev/dev.config.test.ts

View workflow job for this annotation

GitHub Actions / Integration (macOS-latest, 22, 1/4)

tests/integration/commands/dev/dev.config.test.ts > commands/dev/config > should handle multipart form data when redirecting

AssertionError: expected { path: '/api/echo', …(11) } to have property "headers.content-type" with value 'multipart/form-data;boundary=----form…' Expected: "multipart/form-data;boundary=----formdata-undici-069386761453" Received: "multipart/form-data; boundary=----formdata-undici-013538992204" ❯ tests/integration/commands/dev/dev.config.test.ts:451:24 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev.config.test.ts:435:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev.config.test.ts:416:5

Check failure on line 451 in tests/integration/commands/dev/dev.config.test.ts

View workflow job for this annotation

GitHub Actions / Integration (macOS-latest, 22, 1/4)

tests/integration/commands/dev/dev.config.test.ts > commands/dev/config > should handle multipart form data when redirecting

AssertionError: expected { path: '/api/echo', …(11) } to have property "headers.content-type" with value 'multipart/form-data;boundary=----form…' Expected: "multipart/form-data;boundary=----formdata-undici-008466982975" Received: "multipart/form-data; boundary=----formdata-undici-008689809057" ❯ tests/integration/commands/dev/dev.config.test.ts:451:24 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev.config.test.ts:435:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev.config.test.ts:416:5

Check failure on line 451 in tests/integration/commands/dev/dev.config.test.ts

View workflow job for this annotation

GitHub Actions / Integration (macOS-latest, 22, 1/4)

tests/integration/commands/dev/dev.config.test.ts > commands/dev/config > should handle multipart form data when redirecting

AssertionError: expected { path: '/api/echo', …(11) } to have property "headers.content-type" with value 'multipart/form-data;boundary=----form…' Expected: "multipart/form-data;boundary=----formdata-undici-085873653689" Received: "multipart/form-data; boundary=----formdata-undici-082545734703" ❯ tests/integration/commands/dev/dev.config.test.ts:451:24 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev.config.test.ts:435:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev.config.test.ts:416:5

Check failure on line 451 in tests/integration/commands/dev/dev.config.test.ts

View workflow job for this annotation

GitHub Actions / Integration (macOS-latest, 22, 1/4)

tests/integration/commands/dev/dev.config.test.ts > commands/dev/config > should handle multipart form data when redirecting

AssertionError: expected { path: '/api/echo', …(11) } to have property "headers.content-type" with value 'multipart/form-data;boundary=----form…' Expected: "multipart/form-data;boundary=----formdata-undici-055433434139" Received: "multipart/form-data; boundary=----formdata-undici-046563249086" ❯ tests/integration/commands/dev/dev.config.test.ts:451:24 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev.config.test.ts:435:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev.config.test.ts:416:5

Check failure on line 451 in tests/integration/commands/dev/dev.config.test.ts

View workflow job for this annotation

GitHub Actions / Integration (windows-2025, 20.12.2, 1/4)

tests/integration/commands/dev/dev.config.test.ts > commands/dev/config > should handle multipart form data when redirecting

AssertionError: expected { path: '/api/echo', …(11) } to have property "headers.content-type" with value 'multipart/form-data;boundary=----form…' Expected: "multipart/form-data;boundary=----formdata-undici-051831938788" Received: "multipart/form-data; boundary=----formdata-undici-037215794094" ❯ tests/integration/commands/dev/dev.config.test.ts:451:24 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev.config.test.ts:435:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev.config.test.ts:416:5

Check failure on line 451 in tests/integration/commands/dev/dev.config.test.ts

View workflow job for this annotation

GitHub Actions / Integration (windows-2025, 20.12.2, 1/4)

tests/integration/commands/dev/dev.config.test.ts > commands/dev/config > should handle multipart form data when redirecting

AssertionError: expected { path: '/api/echo', …(11) } to have property "headers.content-type" with value 'multipart/form-data;boundary=----form…' Expected: "multipart/form-data;boundary=----formdata-undici-097358341723" Received: "multipart/form-data; boundary=----formdata-undici-016223740999" ❯ tests/integration/commands/dev/dev.config.test.ts:451:24 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev.config.test.ts:435:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev.config.test.ts:416:5

Check failure on line 451 in tests/integration/commands/dev/dev.config.test.ts

View workflow job for this annotation

GitHub Actions / Integration (windows-2025, 20.12.2, 1/4)

tests/integration/commands/dev/dev.config.test.ts > commands/dev/config > should handle multipart form data when redirecting

AssertionError: expected { path: '/api/echo', …(11) } to have property "headers.content-type" with value 'multipart/form-data;boundary=----form…' Expected: "multipart/form-data;boundary=----formdata-undici-049781918097" Received: "multipart/form-data; boundary=----formdata-undici-016428322463" ❯ tests/integration/commands/dev/dev.config.test.ts:451:24 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev.config.test.ts:435:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev.config.test.ts:416:5

Check failure on line 451 in tests/integration/commands/dev/dev.config.test.ts

View workflow job for this annotation

GitHub Actions / Integration (windows-2025, 20.12.2, 1/4)

tests/integration/commands/dev/dev.config.test.ts > commands/dev/config > should handle multipart form data when redirecting

AssertionError: expected { path: '/api/echo', …(11) } to have property "headers.content-type" with value 'multipart/form-data;boundary=----form…' Expected: "multipart/form-data;boundary=----formdata-undici-066684632672" Received: "multipart/form-data; boundary=----formdata-undici-013619061601" ❯ tests/integration/commands/dev/dev.config.test.ts:451:24 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev.config.test.ts:435:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev.config.test.ts:416:5
t.expect(body).toHaveProperty('headers.content-length', '164')
t.expect(body).toHaveProperty('httpMethod', 'POST')
t.expect(body).toHaveProperty('isBase64Encoded', true)
Expand Down Expand Up @@ -521,15 +521,12 @@
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
const body = res.body!

body.on('data', (chunk: Buffer) => {
for await (const chunk of body) {
const now = Date.now()

t.expect(now > lastTimestamp).toBe(true)

lastTimestamp = now
chunks.push(chunk.toString())
})
await events.once(body, 'end')
chunks.push(Buffer.from(chunk).toString())
}

t.expect(chunks).toStrictEqual(['one', 'two', 'three'])
})
Expand Down
10 changes: 5 additions & 5 deletions tests/integration/commands/dev/dev.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import js from 'dedent'
import jwt, { type JwtPayload } from 'jsonwebtoken'
import fetch from 'node-fetch'

import { describe, test } from 'vitest'

import { withDevServer } from '../../utils/dev-server.js'
Expand Down Expand Up @@ -243,7 +243,7 @@
'Content-Type': 'application/x-www-form-urlencoded',
},
body: 'param=value',
follow: 0,
redirect: 'manual',
})
const postBody = await postResponse.json()
t.expect(postBody).toHaveProperty('body', { param: 'value' })
Expand Down Expand Up @@ -311,7 +311,7 @@
'Content-Type': 'application/x-www-form-urlencoded',
},
body: 'param=value',
follow: 0,
redirect: 'manual',
}),
])
const getBody = await getResponse.json()
Expand Down Expand Up @@ -348,7 +348,7 @@

await withDevServer({ cwd: builder.directory }, async (server) => {
const [response1, response2] = await Promise.all([
fetch(`${server.url}/api/ping`, { follow: 0, redirect: 'manual' }),
fetch(`${server.url}/api/ping`, { redirect: 'manual' }),
fetch(`${server.url}/api/ping`),
])
const response2Body = await response2.json()
Expand Down Expand Up @@ -417,7 +417,7 @@
const response = await fetch(`${server.url}/api/echo`, {
method: 'POST',
body: 'param=value',
follow: 0,
redirect: 'manual'
})

// Method Not Allowed
Expand Down Expand Up @@ -867,7 +867,7 @@
const data = (await response.json()) as { WITH_BRANCH_OVERRIDE: string; WITHOUT_OVERRIDE: string }

t.expect(response).toHaveProperty('status', 200)
t.expect(data).toHaveProperty('WITH_BRANCH_OVERRIDE', 'value from branch context')

Check failure on line 870 in tests/integration/commands/dev/dev.test.ts

View workflow job for this annotation

GitHub Actions / Integration test windows latest node23 specific

tests/integration/commands/dev/dev.test.ts > command/dev > should inject `branch-deploy` and `branch` context env vars when given context matches `branch:*`

AssertionError: expected { …(2) } to have property "WITH_BRANCH_OVERRIDE" with value 'value from branch context' Expected: "value from branch context" Received: "WITH_BRANCH_OVERRIDE not defined" ❯ tests/integration/commands/dev/dev.test.ts:870:28 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev.test.ts:855:9 ❯ withMockApi tests/integration/utils/mock-api.ts:139:5 ❯ tests/integration/commands/dev/dev.test.ts:854:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev.test.ts:794:5
t.expect(data).toHaveProperty('WITHOUT_OVERRIDE', 'value from branch-deploy context')
},
)
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/commands/dev/edge-functions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { rename } from 'fs/promises'
import { join } from 'path'

import execa from 'execa'
import fetch from 'node-fetch'

import { describe, expect, test } from 'vitest'

import { withDevServer } from '../../utils/dev-server.js'
Expand Down
1 change: 0 additions & 1 deletion tests/integration/commands/dev/images.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import fs from 'fs'
import path from 'path'

import fetch from 'node-fetch'
import { describe, test } from 'vitest'

import { withDevServer } from '../../utils/dev-server.js'
Expand Down
1 change: 0 additions & 1 deletion tests/integration/commands/dev/redirects.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import fetch from 'node-fetch'
import { describe, expect, test } from 'vitest'

import { withDevServer } from '../../utils/dev-server.js'
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/commands/dev/responses.dev.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import path from 'path'

import type { HandlerEvent } from '@netlify/functions'
import fetch from 'node-fetch'

import { describe, test } from 'vitest'

import { withDevServer } from '../../utils/dev-server.js'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { describe, expect, test } from 'vitest'

import { FixtureTestContext, setupFixtureTests } from '../../utils/fixture.js'
import fetch from 'node-fetch'

import { pause } from '../../utils/pause.js'

describe('scheduled functions', async () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import fetch from 'node-fetch'
import { describe, test } from 'vitest'

import { FixtureTestContext, setupFixtureTests } from '../../utils/fixture.js'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import js from 'dedent'
import execa from 'execa'
import getPort from 'get-port'
import fetch from 'node-fetch'

import { describe, test } from 'vitest'
import waitPort from 'wait-port'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import path from 'node:path'
import { fileURLToPath } from 'node:url'

import type { HandlerEvent } from '@netlify/functions'
import fetch from 'node-fetch'

import { describe, test } from 'vitest'
import js from 'dedent'
import ts from 'dedent'
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/framework-detection.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import execa from 'execa'
import fetch from 'node-fetch'

import { describe, test } from 'vitest'

import { cliPath } from './utils/cli-path.js'
Expand Down
1 change: 0 additions & 1 deletion tests/integration/frameworks/hugo.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { expect, test } from 'vitest'

import { FixtureTestContext, setupFixtureTests } from '../utils/fixture.js'
import fetch from 'node-fetch'

setupFixtureTests('hugo-site', { devServer: true }, () => {
test<FixtureTestContext>('should not infinite redirect when -d flag is passed', async ({ devServer }) => {
Expand Down
1 change: 0 additions & 1 deletion tests/integration/rules-proxy.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { afterAll, beforeAll, describe, expect, test } from 'vitest'

import { createRewriter, getWatchers } from '../../src/utils/rules-proxy.js'

import fetch from 'node-fetch'
import { createSiteBuilder, SiteBuilder } from './utils/site-builder.js'

describe('rules-proxy', () => {
Expand Down
1 change: 0 additions & 1 deletion tests/integration/serve/functions-go.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import fetch from 'node-fetch'
import { describe, test } from 'vitest'

import { tryAndLogOutput, withDevServer } from '../utils/dev-server.js'
Expand Down
1 change: 0 additions & 1 deletion tests/integration/serve/functions-rust.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import fetch from 'node-fetch'
import { test } from 'vitest'

import { tryAndLogOutput, withDevServer } from '../utils/dev-server.js'
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/lib/functions/server.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { tmpdir } from 'node:os'
import { join } from 'node:path'

import express from 'express'
import fetch from 'node-fetch'

import { afterAll, beforeAll, describe, expect, test, vi } from 'vitest'

import { FunctionsRegistry } from '../../../../src/lib/functions/registry.js'
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/utils/gh-auth.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { fibonacci } from 'backoff'
import fetch from 'node-fetch'

import { afterAll, describe, expect, test, vi } from 'vitest'

import { authWithNetlify } from '../../../src/utils/gh-auth.js'
Expand Down
Loading