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

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from
Draft
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 @@ -128,7 +128,6 @@
"multiparty": "4.2.3",
"nanospinner": "1.2.2",
"netlify-redirector": "0.5.0",
"node-fetch": "3.3.2",
"normalize-package-data": "7.0.1",
"open": "10.2.0",
"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
1 change: 0 additions & 1 deletion src/lib/geo-location.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import fetch from 'node-fetch'
import { type Geolocation, mockLocation } from '@netlify/dev-utils'

const API_URL = 'https://netlifind.netlify.app'
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 path from 'path'

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 @@ -113,7 +112,7 @@ describe.concurrent('commands/dev-forms-and-redirects', () => {
data: {
ip: '::ffff:127.0.0.1',
some: 'thing',
user_agent: 'node-fetch',
user_agent: 'node',
},
human_fields: {
Some: 'thing',
Expand Down Expand Up @@ -316,7 +315,7 @@ describe.concurrent('commands/dev-forms-and-redirects', () => {
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
14 changes: 9 additions & 5 deletions tests/integration/commands/dev/dev-miscellaneous.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import events from 'node:events'
import { Buffer } from 'buffer'
import path from 'path'
import { platform } from 'process'
Expand All @@ -8,7 +7,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 @@ -595,12 +594,17 @@
const stream = res.body

expect(stream).not.toBeNull()
if (!stream) throw new Error('Expected a readable stream')

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

const reader = stream.getReader()
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
while (true) {
const { done } = await reader.read()
if (done) break
numberOfChunks += 1
})
await events.once(stream!, 'end')
}

// streamed responses arrive in more than one batch
expect(numberOfChunks).not.toBe(1)
Expand Down Expand Up @@ -775,7 +779,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 782 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:782:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:781:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:775: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 49584\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:49583 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:782:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:781:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 782 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:782:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:781:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:775: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 49527\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:49526 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:782:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:781:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 782 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:782:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:781:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:775: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 49494\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:49493 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:782:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:781:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 782 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:782:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:781:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:775: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 49462\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:49461 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:782:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:781:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 782 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:782:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:781:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:775: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 49627\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:49626 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:782:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:781:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 782 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:782:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:781:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:775: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 49569\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:49568 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:782:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:781:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 782 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:782:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:781:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:775: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 49535\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:49534 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:782:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:781:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 782 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:782:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:781:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:775: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 49503\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:49502 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:782:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:781:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 782 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:782:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:781:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:775: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 41193\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:40805 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:782:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:781:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 782 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:782:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:781:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:775: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 35937\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:38487 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:782:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:781:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 782 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:782:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:781:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:775: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 35013\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:36349 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:782:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:781:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 782 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:782:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:781:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:775: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 33859\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:35749 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:782:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:781:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 782 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:782:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:781:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:775: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 43203\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:43129 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:782:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:781:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 782 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:782:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:781:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:775: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 40963\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:36011 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:782:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:781:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 782 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:782:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:781:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:775: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 46469\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:40353 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:782:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:781:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 782 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:782:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:781:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:775: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 44347\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:45749 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:782:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:781:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 782 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:782:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:781:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:775: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 51760\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:51759 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:782:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:781:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 782 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:782:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:781:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:775: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 51714\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:51713 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:782:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:781:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 782 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:782:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:781:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:775: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 51678\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:51677 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:782:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:781:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 782 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:782:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:781:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:775: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 51641\n\n ╭──────────────────────── ⬥  ────────────────────────╮\n │ │\n │ Local dev server ready: http://localhost:51640 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:782:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:781:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12
method: 'POST',
headers: {
'Content-Type': 'application/json',
Expand Down Expand Up @@ -804,7 +808,7 @@
.build()

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

Check failure on line 811 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:811:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:810:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:796: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 49586\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:49585 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:811:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:810:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 811 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:811:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:810:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:796: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 49530\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:49529 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:811:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:810:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 811 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:811:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:810:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:796: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 49492\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:49491 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:811:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:810:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 811 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:811:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:810:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:796: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 49475\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:49474 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:811:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:810:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 811 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:811:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:810:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:796: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 49629\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:49628 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:811:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:810:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 811 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:811:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:810:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:796: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 49571\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:49570 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:811:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:810:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 811 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:811:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:810:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:796: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 49537\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:49536 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:811:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:810:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 811 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:811:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:810:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:796: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 49510\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:49509 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:811:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:810:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 811 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:811:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:810:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:796: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 41219\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:39857 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:811:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:810:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 811 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:811:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:810:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:796: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 39067\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:37081 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:811:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:810:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 811 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:811:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:810:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:796: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 35957\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:41931 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:811:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:810:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 811 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:811:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:810:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:796: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 45015\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:42967 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:811:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:810:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 811 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:811:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:810:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:796: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 41845\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:39267 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:811:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:810:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 811 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:811:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:810:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:796: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 34431\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:36425 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:811:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:810:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 811 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:811:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:810:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:796: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 44149\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:35399 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:811:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:810:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 811 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:811:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:810:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:796: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 36671\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:39119 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:811:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:810:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 811 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:811:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:810:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:796: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 51776\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:51775 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:811:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:810:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 811 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:811:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:810:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:796: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 51717\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:51716 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:811:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:810:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 811 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:811:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:810:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:796: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 51684\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:51683 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:811:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:810:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12

Check failure on line 811 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:811:26 ❯ withDevServer tests/integration/utils/dev-server.ts:209:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:810:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:796: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 51646\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:51645 │\n │ │\n ╰────────────────────────────────────────────────────╯\n\n', stderr: '' } Caused by: Caused by: Error: bad port ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:811:32 ❯ withDevServer tests/integration/utils/dev-server.ts:209:18 ❯ tests/integration/commands/dev/dev-miscellaneous.test.ts:810:7 ❯ withSiteBuilder tests/integration/utils/site-builder.ts:342:12
`${url.replace(port.toString(), functionsPort.toString())}/.netlify/functions/exclamat!on`,
{
method: 'POST',
Expand Down
24 changes: 10 additions & 14 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,8 @@
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 expectedResponseBody = Buffer.from(await rsp.text()).toString('base64')

const response = await fetch(`${server.url}/api/echo?ding=dong`, {
method: 'POST',
Expand All @@ -448,13 +445,15 @@
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}`)
t.expect(body).toHaveProperty('headers.content-length', '164')
t.expect((body as { headers: { 'content-type': string } }).headers['content-type']).toMatch(
/^multipart\/form-data; ?boundary=.+/,
)
t.expect(body).toHaveProperty('headers.content-length', '126')
t.expect(body).toHaveProperty('httpMethod', 'POST')
t.expect(body).toHaveProperty('isBase64Encoded', true)
t.expect(body).toHaveProperty('path', '/api/echo')
t.expect(body).toHaveProperty('queryStringParameters', { ding: 'dong' })
t.expect(body).toHaveProperty('body', expectedResponseBody)

Check failure on line 456 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 "body" with value 'LS0tLS0tZm9ybWRhdGEtdW5kaWNpLTA1MjUyM…' Expected: "LS0tLS0tZm9ybWRhdGEtdW5kaWNpLTA1MjUyMzk2Nzk1Mg0KQ29udGVudC1EaXNwb3NpdGlvbjogZm9ybS1kYXRhOyBuYW1lPSJzb21lIg0KDQp0aGluZw0KLS0tLS0tZm9ybWRhdGEtdW5kaWNpLTA1MjUyMzk2Nzk1Mi0t" Received: "LS0tLS0tZm9ybWRhdGEtdW5kaWNpLTA4OTc5NDI4NzMxNQ0KQ29udGVudC1EaXNwb3NpdGlvbjogZm9ybS1kYXRhOyBuYW1lPSJzb21lIg0KDQp0aGluZw0KLS0tLS0tZm9ybWRhdGEtdW5kaWNpLTA4OTc5NDI4NzMxNS0t" ❯ tests/integration/commands/dev/dev.config.test.ts:456: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 456 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 "body" with value 'LS0tLS0tZm9ybWRhdGEtdW5kaWNpLTAzOTkyM…' Expected: "LS0tLS0tZm9ybWRhdGEtdW5kaWNpLTAzOTkyMjExNDc5Mg0KQ29udGVudC1EaXNwb3NpdGlvbjogZm9ybS1kYXRhOyBuYW1lPSJzb21lIg0KDQp0aGluZw0KLS0tLS0tZm9ybWRhdGEtdW5kaWNpLTAzOTkyMjExNDc5Mi0t" Received: "LS0tLS0tZm9ybWRhdGEtdW5kaWNpLTAxMTc1NjI5Mjk4Nw0KQ29udGVudC1EaXNwb3NpdGlvbjogZm9ybS1kYXRhOyBuYW1lPSJzb21lIg0KDQp0aGluZw0KLS0tLS0tZm9ybWRhdGEtdW5kaWNpLTAxMTc1NjI5Mjk4Ny0t" ❯ tests/integration/commands/dev/dev.config.test.ts:456: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 456 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 "body" with value 'LS0tLS0tZm9ybWRhdGEtdW5kaWNpLTA0MzIwN…' Expected: "LS0tLS0tZm9ybWRhdGEtdW5kaWNpLTA0MzIwNjAzOTkzOA0KQ29udGVudC1EaXNwb3NpdGlvbjogZm9ybS1kYXRhOyBuYW1lPSJzb21lIg0KDQp0aGluZw0KLS0tLS0tZm9ybWRhdGEtdW5kaWNpLTA0MzIwNjAzOTkzOC0t" Received: "LS0tLS0tZm9ybWRhdGEtdW5kaWNpLTAwMTk2MTE1Njc1NQ0KQ29udGVudC1EaXNwb3NpdGlvbjogZm9ybS1kYXRhOyBuYW1lPSJzb21lIg0KDQp0aGluZw0KLS0tLS0tZm9ybWRhdGEtdW5kaWNpLTAwMTk2MTE1Njc1NS0t" ❯ tests/integration/commands/dev/dev.config.test.ts:456: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 456 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 "body" with value 'LS0tLS0tZm9ybWRhdGEtdW5kaWNpLTAwODQ5N…' Expected: "LS0tLS0tZm9ybWRhdGEtdW5kaWNpLTAwODQ5NjY4ODQ1NA0KQ29udGVudC1EaXNwb3NpdGlvbjogZm9ybS1kYXRhOyBuYW1lPSJzb21lIg0KDQp0aGluZw0KLS0tLS0tZm9ybWRhdGEtdW5kaWNpLTAwODQ5NjY4ODQ1NC0t" Received: "LS0tLS0tZm9ybWRhdGEtdW5kaWNpLTA5OTg0NTEyNjI0OA0KQ29udGVudC1EaXNwb3NpdGlvbjogZm9ybS1kYXRhOyBuYW1lPSJzb21lIg0KDQp0aGluZw0KLS0tLS0tZm9ybWRhdGEtdW5kaWNpLTA5OTg0NTEyNjI0OC0t" ❯ tests/integration/commands/dev/dev.config.test.ts:456: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 456 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 "body" with value 'LS0tLS0tZm9ybWRhdGEtdW5kaWNpLTAzNDI2N…' Expected: "LS0tLS0tZm9ybWRhdGEtdW5kaWNpLTAzNDI2NTY1ODI3MA0KQ29udGVudC1EaXNwb3NpdGlvbjogZm9ybS1kYXRhOyBuYW1lPSJzb21lIg0KDQp0aGluZw0KLS0tLS0tZm9ybWRhdGEtdW5kaWNpLTAzNDI2NTY1ODI3MC0t" Received: "LS0tLS0tZm9ybWRhdGEtdW5kaWNpLTAzOTczMjEzMzk1NA0KQ29udGVudC1EaXNwb3NpdGlvbjogZm9ybS1kYXRhOyBuYW1lPSJzb21lIg0KDQp0aGluZw0KLS0tLS0tZm9ybWRhdGEtdW5kaWNpLTAzOTczMjEzMzk1NC0t" ❯ tests/integration/commands/dev/dev.config.test.ts:456: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 456 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 "body" with value 'LS0tLS0tZm9ybWRhdGEtdW5kaWNpLTAwNTMyM…' Expected: "LS0tLS0tZm9ybWRhdGEtdW5kaWNpLTAwNTMyMjY5NzQ1Ng0KQ29udGVudC1EaXNwb3NpdGlvbjogZm9ybS1kYXRhOyBuYW1lPSJzb21lIg0KDQp0aGluZw0KLS0tLS0tZm9ybWRhdGEtdW5kaWNpLTAwNTMyMjY5NzQ1Ni0t" Received: "LS0tLS0tZm9ybWRhdGEtdW5kaWNpLTAzMDIzMTE5NTU4Ng0KQ29udGVudC1EaXNwb3NpdGlvbjogZm9ybS1kYXRhOyBuYW1lPSJzb21lIg0KDQp0aGluZw0KLS0tLS0tZm9ybWRhdGEtdW5kaWNpLTAzMDIzMTE5NTU4Ni0t" ❯ tests/integration/commands/dev/dev.config.test.ts:456: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 456 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 "body" with value 'LS0tLS0tZm9ybWRhdGEtdW5kaWNpLTAxNDQ1M…' Expected: "LS0tLS0tZm9ybWRhdGEtdW5kaWNpLTAxNDQ1MTUzMTM3Mg0KQ29udGVudC1EaXNwb3NpdGlvbjogZm9ybS1kYXRhOyBuYW1lPSJzb21lIg0KDQp0aGluZw0KLS0tLS0tZm9ybWRhdGEtdW5kaWNpLTAxNDQ1MTUzMTM3Mi0t" Received: "LS0tLS0tZm9ybWRhdGEtdW5kaWNpLTA0NTk2NTQ3OTQxMw0KQ29udGVudC1EaXNwb3NpdGlvbjogZm9ybS1kYXRhOyBuYW1lPSJzb21lIg0KDQp0aGluZw0KLS0tLS0tZm9ybWRhdGEtdW5kaWNpLTA0NTk2NTQ3OTQxMy0t" ❯ tests/integration/commands/dev/dev.config.test.ts:456: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 456 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 "body" with value 'LS0tLS0tZm9ybWRhdGEtdW5kaWNpLTAwMzI2M…' Expected: "LS0tLS0tZm9ybWRhdGEtdW5kaWNpLTAwMzI2MzAzNjQxNA0KQ29udGVudC1EaXNwb3NpdGlvbjogZm9ybS1kYXRhOyBuYW1lPSJzb21lIg0KDQp0aGluZw0KLS0tLS0tZm9ybWRhdGEtdW5kaWNpLTAwMzI2MzAzNjQxNC0t" Received: "LS0tLS0tZm9ybWRhdGEtdW5kaWNpLTAwMjg0OTE3ODk0NQ0KQ29udGVudC1EaXNwb3NpdGlvbjogZm9ybS1kYXRhOyBuYW1lPSJzb21lIg0KDQp0aGluZw0KLS0tLS0tZm9ybWRhdGEtdW5kaWNpLTAwMjg0OTE3ODk0NS0t" ❯ tests/integration/commands/dev/dev.config.test.ts:456: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 456 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 "body" with value 'LS0tLS0tZm9ybWRhdGEtdW5kaWNpLTA2MTUyO…' Expected: "LS0tLS0tZm9ybWRhdGEtdW5kaWNpLTA2MTUyOTU3ODY1NA0KQ29udGVudC1EaXNwb3NpdGlvbjogZm9ybS1kYXRhOyBuYW1lPSJzb21lIg0KDQp0aGluZw0KLS0tLS0tZm9ybWRhdGEtdW5kaWNpLTA2MTUyOTU3ODY1NC0t" Received: "LS0tLS0tZm9ybWRhdGEtdW5kaWNpLTAwNzkwMTI4Mjg0Mw0KQ29udGVudC1EaXNwb3NpdGlvbjogZm9ybS1kYXRhOyBuYW1lPSJzb21lIg0KDQp0aGluZw0KLS0tLS0tZm9ybWRhdGEtdW5kaWNpLTAwNzkwMTI4Mjg0My0t" ❯ tests/integration/commands/dev/dev.config.test.ts:456: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 456 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 "body" with value 'LS0tLS0tZm9ybWRhdGEtdW5kaWNpLTA0MTU0O…' Expected: "LS0tLS0tZm9ybWRhdGEtdW5kaWNpLTA0MTU0OTEwNTM1Ng0KQ29udGVudC1EaXNwb3NpdGlvbjogZm9ybS1kYXRhOyBuYW1lPSJzb21lIg0KDQp0aGluZw0KLS0tLS0tZm9ybWRhdGEtdW5kaWNpLTA0MTU0OTEwNTM1Ni0t" Received: "LS0tLS0tZm9ybWRhdGEtdW5kaWNpLTAyOTI1NjE1MzEwNA0KQ29udGVudC1EaXNwb3NpdGlvbjogZm9ybS1kYXRhOyBuYW1lPSJzb21lIg0KDQp0aGluZw0KLS0tLS0tZm9ybWRhdGEtdW5kaWNpLTAyOTI1NjE1MzEwNC0t" ❯ tests/integration/commands/dev/dev.config.test.ts:456: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 456 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 "body" with value 'LS0tLS0tZm9ybWRhdGEtdW5kaWNpLTAxOTQ5N…' Expected: "LS0tLS0tZm9ybWRhdGEtdW5kaWNpLTAxOTQ5NDI0NzMxOA0KQ29udGVudC1EaXNwb3NpdGlvbjogZm9ybS1kYXRhOyBuYW1lPSJzb21lIg0KDQp0aGluZw0KLS0tLS0tZm9ybWRhdGEtdW5kaWNpLTAxOTQ5NDI0NzMxOC0t" Received: "LS0tLS0tZm9ybWRhdGEtdW5kaWNpLTAyOTY3OTgzMzQ1OA0KQ29udGVudC1EaXNwb3NpdGlvbjogZm9ybS1kYXRhOyBuYW1lPSJzb21lIg0KDQp0aGluZw0KLS0tLS0tZm9ybWRhdGEtdW5kaWNpLTAyOTY3OTgzMzQ1OC0t" ❯ tests/integration/commands/dev/dev.config.test.ts:456: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 456 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 "body" with value 'LS0tLS0tZm9ybWRhdGEtdW5kaWNpLTAyNDYyM…' Expected: "LS0tLS0tZm9ybWRhdGEtdW5kaWNpLTAyNDYyMzEyNzM2NA0KQ29udGVudC1EaXNwb3NpdGlvbjogZm9ybS1kYXRhOyBuYW1lPSJzb21lIg0KDQp0aGluZw0KLS0tLS0tZm9ybWRhdGEtdW5kaWNpLTAyNDYyMzEyNzM2NC0t" Received: "LS0tLS0tZm9ybWRhdGEtdW5kaWNpLTA4Mzk0MjY5OTQ0Mw0KQ29udGVudC1EaXNwb3NpdGlvbjogZm9ybS1kYXRhOyBuYW1lPSJzb21lIg0KDQp0aGluZw0KLS0tLS0tZm9ybWRhdGEtdW5kaWNpLTA4Mzk0MjY5OTQ0My0t" ❯ tests/integration/commands/dev/dev.config.test.ts:456: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 456 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 "body" with value 'LS0tLS0tZm9ybWRhdGEtdW5kaWNpLTA4NzgwN…' Expected: "LS0tLS0tZm9ybWRhdGEtdW5kaWNpLTA4NzgwNTcyMTQ2OA0KQ29udGVudC1EaXNwb3NpdGlvbjogZm9ybS1kYXRhOyBuYW1lPSJzb21lIg0KDQp0aGluZw0KLS0tLS0tZm9ybWRhdGEtdW5kaWNpLTA4NzgwNTcyMTQ2OC0t" Received: "LS0tLS0tZm9ybWRhdGEtdW5kaWNpLTAwODIxNTI3NTc1Ng0KQ29udGVudC1EaXNwb3NpdGlvbjogZm9ybS1kYXRhOyBuYW1lPSJzb21lIg0KDQp0aGluZw0KLS0tLS0tZm9ybWRhdGEtdW5kaWNpLTAwODIxNTI3NTc1Ni0t" ❯ tests/integration/commands/dev/dev.config.test.ts:456: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 456 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 "body" with value 'LS0tLS0tZm9ybWRhdGEtdW5kaWNpLTAwMTY5M…' Expected: "LS0tLS0tZm9ybWRhdGEtdW5kaWNpLTAwMTY5MTY4MDEwNg0KQ29udGVudC1EaXNwb3NpdGlvbjogZm9ybS1kYXRhOyBuYW1lPSJzb21lIg0KDQp0aGluZw0KLS0tLS0tZm9ybWRhdGEtdW5kaWNpLTAwMTY5MTY4MDEwNi0t" Received: "LS0tLS0tZm9ybWRhdGEtdW5kaWNpLTAwMzg2OTE4MTc0NA0KQ29udGVudC1EaXNwb3NpdGlvbjogZm9ybS1kYXRhOyBuYW1lPSJzb21lIg0KDQp0aGluZw0KLS0tLS0tZm9ybWRhdGEtdW5kaWNpLTAwMzg2OTE4MTc0NC0t" ❯ tests/integration/commands/dev/dev.config.test.ts:456: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 456 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 "body" with value 'LS0tLS0tZm9ybWRhdGEtdW5kaWNpLTAxNzk0N…' Expected: "LS0tLS0tZm9ybWRhdGEtdW5kaWNpLTAxNzk0NzE2ODQzMw0KQ29udGVudC1EaXNwb3NpdGlvbjogZm9ybS1kYXRhOyBuYW1lPSJzb21lIg0KDQp0aGluZw0KLS0tLS0tZm9ybWRhdGEtdW5kaWNpLTAxNzk0NzE2ODQzMy0t" Received: "LS0tLS0tZm9ybWRhdGEtdW5kaWNpLTAwNTkxODMxMzcwNA0KQ29udGVudC1EaXNwb3NpdGlvbjogZm9ybS1kYXRhOyBuYW1lPSJzb21lIg0KDQp0aGluZw0KLS0tLS0tZm9ybWRhdGEtdW5kaWNpLTAwNTkxODMxMzcwNC0t" ❯ tests/integration/commands/dev/dev.config.test.ts:456: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 456 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 "body" with value 'LS0tLS0tZm9ybWRhdGEtdW5kaWNpLTA3Mzk2N…' Expected: "LS0tLS0tZm9ybWRhdGEtdW5kaWNpLTA3Mzk2Njc5NjEyMw0KQ29udGVudC1EaXNwb3NpdGlvbjogZm9ybS1kYXRhOyBuYW1lPSJzb21lIg0KDQp0aGluZw0KLS0tLS0tZm9ybWRhdGEtdW5kaWNpLTA3Mzk2Njc5NjEyMy0t" Received: "LS0tLS0tZm9ybWRhdGEtdW5kaWNpLTA5NDQyMDk2MjkyNA0KQ29udGVudC1EaXNwb3NpdGlvbjogZm9ybS1kYXRhOyBuYW1lPSJzb21lIg0KDQp0aGluZw0KLS0tLS0tZm9ybWRhdGEtdW5kaWNpLTA5NDQyMDk2MjkyNC0t" ❯ tests/integration/commands/dev/dev.config.test.ts:456: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 456 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 "body" with value 'LS0tLS0tZm9ybWRhdGEtdW5kaWNpLTAxOTgyN…' Expected: "LS0tLS0tZm9ybWRhdGEtdW5kaWNpLTAxOTgyNDE2OTQ0Nw0KQ29udGVudC1EaXNwb3NpdGlvbjogZm9ybS1kYXRhOyBuYW1lPSJzb21lIg0KDQp0aGluZw0KLS0tLS0tZm9ybWRhdGEtdW5kaWNpLTAxOTgyNDE2OTQ0Ny0t" Received: "LS0tLS0tZm9ybWRhdGEtdW5kaWNpLTA0NjE1NjE0MzUwOQ0KQ29udGVudC1EaXNwb3NpdGlvbjogZm9ybS1kYXRhOyBuYW1lPSJzb21lIg0KDQp0aGluZw0KLS0tLS0tZm9ybWRhdGEtdW5kaWNpLTA0NjE1NjE0MzUwOS0t" ❯ tests/integration/commands/dev/dev.config.test.ts:456: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 456 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 "body" with value 'LS0tLS0tZm9ybWRhdGEtdW5kaWNpLTAyMDc3N…' Expected: "LS0tLS0tZm9ybWRhdGEtdW5kaWNpLTAyMDc3NzAxNDczOA0KQ29udGVudC1EaXNwb3NpdGlvbjogZm9ybS1kYXRhOyBuYW1lPSJzb21lIg0KDQp0aGluZw0KLS0tLS0tZm9ybWRhdGEtdW5kaWNpLTAyMDc3NzAxNDczOC0t" Received: "LS0tLS0tZm9ybWRhdGEtdW5kaWNpLTA2NDg0MzAyNDkzOQ0KQ29udGVudC1EaXNwb3NpdGlvbjogZm9ybS1kYXRhOyBuYW1lPSJzb21lIg0KDQp0aGluZw0KLS0tLS0tZm9ybWRhdGEtdW5kaWNpLTA2NDg0MzAyNDkzOS0t" ❯ tests/integration/commands/dev/dev.config.test.ts:456: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 456 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 "body" with value 'LS0tLS0tZm9ybWRhdGEtdW5kaWNpLTAzNDExN…' Expected: "LS0tLS0tZm9ybWRhdGEtdW5kaWNpLTAzNDExNDgxMzg4Mw0KQ29udGVudC1EaXNwb3NpdGlvbjogZm9ybS1kYXRhOyBuYW1lPSJzb21lIg0KDQp0aGluZw0KLS0tLS0tZm9ybWRhdGEtdW5kaWNpLTAzNDExNDgxMzg4My0t" Received: "LS0tLS0tZm9ybWRhdGEtdW5kaWNpLTAzODk1MTY4NTMyMQ0KQ29udGVudC1EaXNwb3NpdGlvbjogZm9ybS1kYXRhOyBuYW1lPSJzb21lIg0KDQp0aGluZw0KLS0tLS0tZm9ybWRhdGEtdW5kaWNpLTAzODk1MTY4NTMyMS0t" ❯ tests/integration/commands/dev/dev.config.test.ts:456: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 456 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 "body" with value 'LS0tLS0tZm9ybWRhdGEtdW5kaWNpLTA4MzkzO…' Expected: "LS0tLS0tZm9ybWRhdGEtdW5kaWNpLTA4MzkzODkyNDM4Mg0KQ29udGVudC1EaXNwb3NpdGlvbjogZm9ybS1kYXRhOyBuYW1lPSJzb21lIg0KDQp0aGluZw0KLS0tLS0tZm9ybWRhdGEtdW5kaWNpLTA4MzkzODkyNDM4Mi0t" Received: "LS0tLS0tZm9ybWRhdGEtdW5kaWNpLTAwODg3ODc2Mjg1Mg0KQ29udGVudC1EaXNwb3NpdGlvbjogZm9ybS1kYXRhOyBuYW1lPSJzb21lIg0KDQp0aGluZw0KLS0tLS0tZm9ybWRhdGEtdW5kaWNpLTAwODg3ODc2Mjg1Mi0t" ❯ tests/integration/commands/dev/dev.config.test.ts:456: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
})
})
})
Expand Down Expand Up @@ -521,15 +520,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 (macOS-latest, 22, 4/4)

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

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

View workflow job for this annotation

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

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

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

View workflow job for this annotation

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

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

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

View workflow job for this annotation

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

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

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

View workflow job for this annotation

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

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

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

View workflow job for this annotation

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

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

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

View workflow job for this annotation

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

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

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

View workflow job for this annotation

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

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

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

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

View workflow job for this annotation

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

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

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

View workflow job for this annotation

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

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
Expand Up @@ -2,7 +2,7 @@ import { killProcess } from '@netlify/dev-utils'
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 @@ -6,7 +6,7 @@ import { join } from 'node:path'

import { LocalState } from '@netlify/dev-utils'
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