From d80cb308919fb2355086a71fbaf269e7d61a1111 Mon Sep 17 00:00:00 2001 From: Nicolas Dorseuil Date: Sat, 31 Oct 2026 16:04:34 +0100 Subject: [PATCH 01/21] test: scaffold the Next.js suite package with core and cloudflare targets Co-Authored-By: Claude Opus 5.5 (1M context) --- packages/tests-next-suite/.gitignore | 1 + packages/tests-next-suite/package.json | 23 + packages/tests-next-suite/src/env.ts | 42 + .../tests-next-suite/src/prepare-app.spec.ts | 109 ++ packages/tests-next-suite/src/prepare-app.ts | 64 + packages/tests-next-suite/src/targets.spec.ts | 53 + packages/tests-next-suite/src/targets.ts | 78 ++ .../templates/cloudflare/open-next.config.ts | 25 + .../templates/cloudflare/wrangler.jsonc | 50 + .../templates/core/open-next.config.ts | 27 + packages/tests-next-suite/tsconfig.json | 16 + packages/tests-next-suite/vitest.config.ts | 8 + pnpm-lock.yaml | 1054 ++++++++--------- 13 files changed, 1010 insertions(+), 540 deletions(-) create mode 100644 packages/tests-next-suite/.gitignore create mode 100644 packages/tests-next-suite/package.json create mode 100644 packages/tests-next-suite/src/env.ts create mode 100644 packages/tests-next-suite/src/prepare-app.spec.ts create mode 100644 packages/tests-next-suite/src/prepare-app.ts create mode 100644 packages/tests-next-suite/src/targets.spec.ts create mode 100644 packages/tests-next-suite/src/targets.ts create mode 100644 packages/tests-next-suite/templates/cloudflare/open-next.config.ts create mode 100644 packages/tests-next-suite/templates/cloudflare/wrangler.jsonc create mode 100644 packages/tests-next-suite/templates/core/open-next.config.ts create mode 100644 packages/tests-next-suite/tsconfig.json create mode 100644 packages/tests-next-suite/vitest.config.ts diff --git a/packages/tests-next-suite/.gitignore b/packages/tests-next-suite/.gitignore new file mode 100644 index 00000000..ceddaa37 --- /dev/null +++ b/packages/tests-next-suite/.gitignore @@ -0,0 +1 @@ +.cache/ diff --git a/packages/tests-next-suite/package.json b/packages/tests-next-suite/package.json new file mode 100644 index 00000000..103a7cbc --- /dev/null +++ b/packages/tests-next-suite/package.json @@ -0,0 +1,23 @@ +{ + "name": "tests-next-suite", + "version": null, + "private": true, + "type": "module", + "scripts": { + "clean": "rm -rf .turbo node_modules .cache", + "next-suite": "tsx src/cli.ts", + "test": "vitest run", + "ts:check": "tsc --noEmit" + }, + "dependencies": { + "fast-xml-parser": "^5.2.5", + "tsx": "catalog:", + "yaml": "^2.8.1" + }, + "devDependencies": { + "@tsconfig/strictest": "catalog:", + "@types/node": "catalog:", + "typescript": "catalog:", + "vitest": "catalog:" + } +} diff --git a/packages/tests-next-suite/src/env.ts b/packages/tests-next-suite/src/env.ts new file mode 100644 index 00000000..c8c751bf --- /dev/null +++ b/packages/tests-next-suite/src/env.ts @@ -0,0 +1,42 @@ +/** Environment variables the CLI uses to configure the harness hooks. */ +export const ENV = { + TARGET: "OPEN_NEXT_SUITE_TARGET", + TARBALLS_DIR: "OPEN_NEXT_SUITE_TARBALLS_DIR", + BASE_ENV_FILE: "OPEN_NEXT_SUITE_BASE_ENV_FILE", +} as const; + +const HARNESS_ENV_PREFIXES = ["NEXT_TEST_", "JEST_", "NODE_", "npm_", "PNPM_"]; + +/** + * Returns the environment for commands run by the hooks. + * + * `NODE_ENV` is removed as an inherited `development` silently breaks `next build` prerendering. + * + * @param env The environment the hook was started with. + * @returns A copy of the environment without `NODE_ENV`. + */ +export function hookEnv(env: NodeJS.ProcessEnv): NodeJS.ProcessEnv { + const { NODE_ENV: _nodeEnv, ...rest } = env; + return rest; +} + +/** + * Recovers the variables a test asked for. + * + * The harness merges them into `process.env`, so they are found by comparing against the environment + * the CLI recorded before starting the run. + * + * @param env The environment the hook was started with. + * @param baseKeys The variable names set before the run started. + * @returns The variables added by the test. + */ +export function testOnlyEnv(env: NodeJS.ProcessEnv, baseKeys: string[]): Record { + const known = new Set(baseKeys); + const entries = Object.entries(env).filter( + (entry): entry is [string, string] => + entry[1] !== undefined && + !known.has(entry[0]) && + !HARNESS_ENV_PREFIXES.some((prefix) => entry[0].startsWith(prefix)) + ); + return Object.fromEntries(entries); +} diff --git a/packages/tests-next-suite/src/prepare-app.spec.ts b/packages/tests-next-suite/src/prepare-app.spec.ts new file mode 100644 index 00000000..a15cfba2 --- /dev/null +++ b/packages/tests-next-suite/src/prepare-app.spec.ts @@ -0,0 +1,109 @@ +import fs from "node:fs"; +import os from "node:os"; +import path from "node:path"; + +import { beforeEach, describe, expect, test } from "vitest"; +import { parse } from "yaml"; + +import { prepareApp } from "./prepare-app.js"; +import type { Target } from "./targets.js"; + +const target: Target = { + name: "cloudflare", + packages: ["@opennextjs/cloudflare", "@opennextjs/core"], + extraDependencies: { wrangler: "^4.110.0" }, + templateFiles: ["open-next.config.ts", "wrangler.jsonc"], + buildCommand: [], + startCommand: () => [], +}; + +let appDir: string; +let tarballsDir: string; + +function readPackageJson(): Record { + return JSON.parse(fs.readFileSync(path.join(appDir, "package.json"), "utf8")); +} + +function readWorkspace(): Record { + return parse(fs.readFileSync(path.join(appDir, "pnpm-workspace.yaml"), "utf8")); +} + +beforeEach(() => { + appDir = fs.mkdtempSync(path.join(os.tmpdir(), "next-suite-app-")); + tarballsDir = fs.mkdtempSync(path.join(os.tmpdir(), "next-suite-tarballs-")); + fs.writeFileSync( + path.join(appDir, "package.json"), + JSON.stringify({ + dependencies: { next: "16.2.1" }, + scripts: { build: "next build && pnpm post-build" }, + }) + ); + for (const name of ["opennextjs-cloudflare.tgz", "opennextjs-core.tgz"]) { + fs.writeFileSync(path.join(tarballsDir, name), ""); + } +}); + +function prepare(): void { + prepareApp({ appDir, target, tarballsDir, packageManager: "pnpm@11.25.0" }); +} + +describe("prepareApp", () => { + test("adds tarball dependencies and pins transitive OpenNext packages through overrides", () => { + prepare(); + + const pkg = readPackageJson(); + expect(pkg.dependencies["@opennextjs/cloudflare"]).toBe( + `file:${path.join(tarballsDir, "opennextjs-cloudflare.tgz")}` + ); + expect(pkg.dependencies.wrangler).toBe("^4.110.0"); + expect(readWorkspace().overrides["@opennextjs/core"]).toBe( + `file:${path.join(tarballsDir, "opennextjs-core.tgz")}` + ); + }); + + test("keeps the harness scripts and next version", () => { + prepare(); + + const pkg = readPackageJson(); + expect(pkg.scripts.build).toBe("next build && pnpm post-build"); + expect(pkg.dependencies.next).toBe("16.2.1"); + }); + + test("sets packageManager and install policy", () => { + prepare(); + + expect(readPackageJson().packageManager).toBe("pnpm@11.25.0"); + const workspace = readWorkspace(); + expect(workspace.strictDepBuilds).toBe(false); + expect(workspace.minimumReleaseAge).toBe(0); + expect(workspace.allowBuilds).toMatchObject({ esbuild: true, sharp: true, workerd: true }); + }); + + test("merges into a pnpm-workspace.yaml shipped by the test app", () => { + fs.writeFileSync( + path.join(appDir, "pnpm-workspace.yaml"), + "packages:\n - app\noverrides:\n foo: 1.0.0\n" + ); + + prepare(); + + const workspace = readWorkspace(); + expect(workspace.packages).toEqual(["app"]); + expect(workspace.overrides.foo).toBe("1.0.0"); + expect(workspace.overrides["@opennextjs/core"]).toBeDefined(); + }); + + test("overwrites template files shipped by the test app", () => { + fs.writeFileSync(path.join(appDir, "wrangler.jsonc"), "{}"); + + prepare(); + + expect(fs.readFileSync(path.join(appDir, "wrangler.jsonc"), "utf8")).toContain('"name": "next-suite"'); + }); + + test("fails naming the tarball when it is missing", () => { + fs.rmSync(path.join(tarballsDir, "opennextjs-core.tgz")); + + expect(prepare).toThrow(/@opennextjs\/core/); + }); +}); diff --git a/packages/tests-next-suite/src/prepare-app.ts b/packages/tests-next-suite/src/prepare-app.ts new file mode 100644 index 00000000..56d4fb74 --- /dev/null +++ b/packages/tests-next-suite/src/prepare-app.ts @@ -0,0 +1,64 @@ +import fs from "node:fs"; +import path from "node:path"; + +import { parse, stringify } from "yaml"; + +import { PACKAGE_DIR, type Target } from "./targets.js"; + +export type PrepareAppOptions = { + appDir: string; + target: Target; + tarballsDir: string; + packageManager: string; +}; + +/** Returns the file name of a packed package, `@opennextjs/core` is packed to `opennextjs-core.tgz`. */ +export function tarballName(packageName: string): string { + return `${packageName.replace("@", "").replace("/", "-")}.tgz`; +} + +function resolveTarballs(target: Target, tarballsDir: string): Record { + const entries = target.packages.map((name) => { + const tarball = path.join(tarballsDir, tarballName(name)); + if (!fs.existsSync(tarball)) { + throw new Error(`Missing tarball for ${name}: ${tarball}`); + } + return [name, `file:${tarball}`]; + }); + return Object.fromEntries(entries); +} + +/** + * Turns the app created by the harness into a project using the packed OpenNext packages. + * + * Packing replaces `workspace:*` with versions which are not published, so the tarballs are also set as + * overrides for the dependencies between OpenNext packages to resolve. + * + * @param options The app, its target and how to install it. + */ +export function prepareApp({ appDir, target, tarballsDir, packageManager }: PrepareAppOptions): void { + const tarballs = resolveTarballs(target, tarballsDir); + + const packageJsonPath = path.join(appDir, "package.json"); + const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, "utf8")); + packageJson.packageManager = packageManager; + packageJson.dependencies = { ...packageJson.dependencies, ...tarballs, ...target.extraDependencies }; + fs.writeFileSync(packageJsonPath, JSON.stringify(packageJson, null, 2)); + + const workspacePath = path.join(appDir, "pnpm-workspace.yaml"); + const workspace = fs.existsSync(workspacePath) ? parse(fs.readFileSync(workspacePath, "utf8")) : {}; + fs.writeFileSync( + workspacePath, + stringify({ + ...workspace, + strictDepBuilds: false, + minimumReleaseAge: 0, + allowBuilds: { ...workspace.allowBuilds, esbuild: true, sharp: true, workerd: true }, + overrides: { ...workspace.overrides, ...tarballs }, + }) + ); + + for (const file of target.templateFiles) { + fs.copyFileSync(path.join(PACKAGE_DIR, "templates", target.name, file), path.join(appDir, file)); + } +} diff --git a/packages/tests-next-suite/src/targets.spec.ts b/packages/tests-next-suite/src/targets.spec.ts new file mode 100644 index 00000000..55d9b6fc --- /dev/null +++ b/packages/tests-next-suite/src/targets.spec.ts @@ -0,0 +1,53 @@ +import fs from "node:fs"; +import os from "node:os"; +import path from "node:path"; + +import { describe, expect, test } from "vitest"; + +import { TARGETS, getTarget } from "./targets.js"; + +describe("TARGETS", () => { + test("core builds with the open-next CLI and serves the bundled server", () => { + expect(TARGETS.core.packages).toEqual(["@opennextjs/aws", "@opennextjs/core"]); + expect(TARGETS.core.buildCommand).toEqual(["pnpm", "exec", "open-next", "build"]); + expect(TARGETS.core.startCommand({ port: 4000, inspectorPort: 4001 })).toEqual([ + "node", + ".open-next/server-functions/default/index.mjs", + ]); + }); + + test("cloudflare previews through wrangler on the given ports", () => { + expect(TARGETS.cloudflare.packages).toEqual(["@opennextjs/cloudflare", "@opennextjs/core"]); + expect(TARGETS.cloudflare.startCommand({ port: 4000, inspectorPort: 4001 })).toEqual([ + "pnpm", + "exec", + "opennextjs-cloudflare", + "preview", + "--port", + "4000", + "--inspector-port", + "4001", + ]); + }); + + test("cloudflare writes test-only env to .dev.vars with values quoted", () => { + const appDir = fs.mkdtempSync(path.join(os.tmpdir(), "next-suite-targets-")); + + TARGETS.cloudflare.prepareRuntimeEnv!(appDir, { PLAIN: "value", TRICKY: 'line one\nsay "hi"' }); + + expect(fs.readFileSync(path.join(appDir, ".dev.vars"), "utf8")).toBe( + 'PLAIN="value"\nTRICKY="line one\\nsay \\"hi\\""\n' + ); + }); +}); + +describe("getTarget", () => { + test("returns a known target", () => { + expect(getTarget("core").name).toBe("core"); + }); + + test("rejects unknown and missing names", () => { + expect(() => getTarget("aws")).toThrow(/core, cloudflare/); + expect(() => getTarget(undefined)).toThrow(/core, cloudflare/); + }); +}); diff --git a/packages/tests-next-suite/src/targets.ts b/packages/tests-next-suite/src/targets.ts new file mode 100644 index 00000000..0c589fac --- /dev/null +++ b/packages/tests-next-suite/src/targets.ts @@ -0,0 +1,78 @@ +import fs from "node:fs"; +import path from "node:path"; +import { fileURLToPath } from "node:url"; + +import { parse } from "yaml"; + +export const PACKAGE_DIR = path.dirname(path.dirname(fileURLToPath(import.meta.url))); +export const REPO_ROOT = path.dirname(path.dirname(PACKAGE_DIR)); + +export type TargetName = "core" | "cloudflare"; + +export type Target = { + name: TargetName; + /** Workspace packages installed in the app from their packed tarballs. */ + packages: string[]; + extraDependencies: Record; + /** Files copied from `templates//` to the app. */ + templateFiles: string[]; + buildCommand: string[]; + startCommand: (ports: { port: number; inspectorPort: number }) => string[]; + /** Makes the test-only variables visible to a runtime that does not inherit the process env. */ + prepareRuntimeEnv?: (appDir: string, testEnv: Record) => void; +}; + +function readCatalogVersion(name: string): string { + const workspace = parse(fs.readFileSync(path.join(REPO_ROOT, "pnpm-workspace.yaml"), "utf8")); + return workspace.catalog[name]; +} + +function quoteDevVar(value: string): string { + return `"${value.replaceAll("\\", "\\\\").replaceAll('"', '\\"').replaceAll("\n", "\\n")}"`; +} + +export const TARGETS: Record = { + core: { + name: "core", + packages: ["@opennextjs/aws", "@opennextjs/core"], + extraDependencies: {}, + templateFiles: ["open-next.config.ts"], + buildCommand: ["pnpm", "exec", "open-next", "build"], + startCommand: () => ["node", ".open-next/server-functions/default/index.mjs"], + }, + cloudflare: { + name: "cloudflare", + packages: ["@opennextjs/cloudflare", "@opennextjs/core"], + extraDependencies: { wrangler: readCatalogVersion("wrangler") }, + templateFiles: ["open-next.config.ts", "wrangler.jsonc"], + buildCommand: ["pnpm", "exec", "opennextjs-cloudflare", "build"], + startCommand: ({ port, inspectorPort }) => [ + "pnpm", + "exec", + "opennextjs-cloudflare", + "preview", + "--port", + String(port), + "--inspector-port", + String(inspectorPort), + ], + prepareRuntimeEnv: (appDir, testEnv) => { + const lines = Object.entries(testEnv).map(([key, value]) => `${key}=${quoteDevVar(value)}\n`); + fs.writeFileSync(path.join(appDir, ".dev.vars"), lines.join("")); + }, + }, +}; + +/** + * Resolves a target from its name. + * + * @param name The target name. + * @returns The target. + * @throws When the name is not a known target. + */ +export function getTarget(name: string | undefined): Target { + if (name === undefined || !(name in TARGETS)) { + throw new Error(`Unknown target "${name}", expected one of: ${Object.keys(TARGETS).join(", ")}`); + } + return TARGETS[name as TargetName]; +} diff --git a/packages/tests-next-suite/templates/cloudflare/open-next.config.ts b/packages/tests-next-suite/templates/cloudflare/open-next.config.ts new file mode 100644 index 00000000..ab45f409 --- /dev/null +++ b/packages/tests-next-suite/templates/cloudflare/open-next.config.ts @@ -0,0 +1,25 @@ +import { defineCloudflareConfig } from "@opennextjs/cloudflare"; +import r2IncrementalCache from "@opennextjs/cloudflare/overrides/incremental-cache/r2-incremental-cache"; +import doQueue from "@opennextjs/cloudflare/overrides/queue/do-queue"; +import queueCache from "@opennextjs/cloudflare/overrides/queue/queue-cache"; +import shardedTagCache from "@opennextjs/cloudflare/overrides/tag-cache/do-sharded-tag-cache"; + +const baseConfig = defineCloudflareConfig({ + incrementalCache: r2IncrementalCache, + // With such a configuration, we could have up to 12 * (8 + 2) = 120 Durable Objects instances + tagCache: shardedTagCache({ + baseShardSize: 12, + regionalCache: true, + regionalCacheDangerouslyPersistMissingTags: true, + shardReplication: { + numberOfSoftReplicas: 8, + numberOfHardReplicas: 2, + regionalReplication: { + defaultRegion: "enam", + }, + }, + }), + queue: queueCache(doQueue), +}); + +export default baseConfig; diff --git a/packages/tests-next-suite/templates/cloudflare/wrangler.jsonc b/packages/tests-next-suite/templates/cloudflare/wrangler.jsonc new file mode 100644 index 00000000..322c6169 --- /dev/null +++ b/packages/tests-next-suite/templates/cloudflare/wrangler.jsonc @@ -0,0 +1,50 @@ +{ + "$schema": "node_modules/wrangler/config-schema.json", + "main": ".open-next/worker.js", + "name": "next-suite", + "compatibility_date": "2024-12-30", + "compatibility_flags": ["nodejs_compat", "global_fetch_strictly_public"], + "assets": { + "directory": ".open-next/assets", + "binding": "ASSETS" + }, + "durable_objects": { + "bindings": [ + { + "name": "NEXT_CACHE_DO_QUEUE", + "class_name": "DOQueueHandler" + }, + { + "name": "NEXT_TAG_CACHE_DO_SHARDED", + "class_name": "DOShardedTagCache" + }, + { + "name": "NEXT_CACHE_DO_PURGE", + "class_name": "BucketCachePurge" + } + ] + }, + "migrations": [ + { + "tag": "v1", + "new_sqlite_classes": ["DOQueueHandler", "DOShardedTagCache", "BucketCachePurge"] + } + ], + "r2_buckets": [ + { + "binding": "NEXT_INC_CACHE_R2_BUCKET", + "bucket_name": "cache" + } + ], + "services": [ + { + "binding": "WORKER_SELF_REFERENCE", + "service": "next-suite" + }, + { + "binding": "NEXT_CACHE_SERVICE", + "service": "next-suite", + "entrypoint": "OpenNextCache" + } + ] +} diff --git a/packages/tests-next-suite/templates/core/open-next.config.ts b/packages/tests-next-suite/templates/core/open-next.config.ts new file mode 100644 index 00000000..99dd0ea8 --- /dev/null +++ b/packages/tests-next-suite/templates/core/open-next.config.ts @@ -0,0 +1,27 @@ +export default { + default: { + override: { + wrapper: "express-dev", + converter: "node", + cache: "local", + queue: "direct", + }, + }, + + imageOptimization: { + override: { + wrapper: "dummy", + converter: "dummy", + }, + loader: "fs-dev", + }, + + cacheHandler: { + override: { + wrapper: "dummy", + converter: "dummy", + }, + incrementalCache: "fs-dev", + tagCache: "fs-dev-nextMode", + }, +}; diff --git a/packages/tests-next-suite/tsconfig.json b/packages/tests-next-suite/tsconfig.json new file mode 100644 index 00000000..db513d88 --- /dev/null +++ b/packages/tests-next-suite/tsconfig.json @@ -0,0 +1,16 @@ +{ + "$schema": "https://json.schemastore.org/tsconfig", + "extends": "@tsconfig/strictest/tsconfig.json", + "compilerOptions": { + "exactOptionalPropertyTypes": false, + "lib": ["ESNext"], + "module": "NodeNext", + "moduleResolution": "nodenext", + "noEmit": true, + "noPropertyAccessFromIndexSignature": false, + "resolveJsonModule": true, + "target": "ES2022", + "types": ["node"] + }, + "include": ["src/**/*.ts"] +} diff --git a/packages/tests-next-suite/vitest.config.ts b/packages/tests-next-suite/vitest.config.ts new file mode 100644 index 00000000..6d123d84 --- /dev/null +++ b/packages/tests-next-suite/vitest.config.ts @@ -0,0 +1,8 @@ +import { defineConfig } from "vitest/config"; + +export default defineConfig({ + test: { + include: ["src/**/*.spec.ts"], + environment: "node", + }, +}); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9ec9225e..6fbd2cf7 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -70,6 +70,9 @@ catalogs: rimraf: specifier: ^6.0.1 version: 6.1.2 + tsx: + specifier: ^4.19.2 + version: 4.20.5 typescript: specifier: ^6.0.3 version: 6.0.3 @@ -147,7 +150,7 @@ importers: version: link:../../../packages/cloudflare next: specifier: catalog:e2e - version: 16.2.1(@opentelemetry/api@1.9.0)(@playwright/test@1.61.1)(react-dom@19.0.3(react@19.0.3))(react@19.0.3) + version: 16.2.1(@babel/core@7.25.9(supports-color@10.2.2))(@opentelemetry/api@1.9.0)(@playwright/test@1.61.1)(react-dom@19.0.3(react@19.0.3))(react@19.0.3) react: specifier: catalog:e2e version: 19.0.3 @@ -193,7 +196,7 @@ importers: version: link:../../../packages/cloudflare next: specifier: catalog:e2e - version: 16.2.1(@opentelemetry/api@1.9.0)(@playwright/test@1.61.1)(react-dom@19.0.3(react@19.0.3))(react@19.0.3) + version: 16.2.1(@babel/core@7.25.9(supports-color@10.2.2))(@opentelemetry/api@1.9.0)(@playwright/test@1.61.1)(react-dom@19.0.3(react@19.0.3))(react@19.0.3) react: specifier: catalog:e2e version: 19.0.3 @@ -236,7 +239,7 @@ importers: version: link:../../../packages/cloudflare next: specifier: catalog:e2e - version: 16.2.1(@opentelemetry/api@1.9.0)(@playwright/test@1.61.1)(react-dom@19.0.3(react@19.0.3))(react@19.0.3) + version: 16.2.1(@babel/core@7.25.9(supports-color@10.2.2))(@opentelemetry/api@1.9.0)(@playwright/test@1.61.1)(react-dom@19.0.3(react@19.0.3))(react@19.0.3) react: specifier: catalog:e2e version: 19.0.3 @@ -273,7 +276,7 @@ importers: version: link:../../../packages/cloudflare next: specifier: catalog:e2e - version: 16.2.1(@opentelemetry/api@1.9.0)(@playwright/test@1.61.1)(react-dom@19.0.3(react@19.0.3))(react@19.0.3) + version: 16.2.1(@babel/core@7.25.9(supports-color@10.2.2))(@opentelemetry/api@1.9.0)(@playwright/test@1.61.1)(react-dom@19.0.3(react@19.0.3))(react@19.0.3) react: specifier: catalog:e2e version: 19.0.3 @@ -313,7 +316,7 @@ importers: dependencies: next: specifier: catalog:e2e - version: 16.2.1(@opentelemetry/api@1.9.0)(@playwright/test@1.61.1)(react-dom@19.0.3(react@19.0.3))(react@19.0.3) + version: 16.2.1(@babel/core@7.25.9(supports-color@10.2.2))(@opentelemetry/api@1.9.0)(@playwright/test@1.61.1)(react-dom@19.0.3(react@19.0.3))(react@19.0.3) react: specifier: catalog:e2e version: 19.0.3 @@ -332,7 +335,7 @@ importers: dependencies: next: specifier: catalog:e2e - version: 16.2.1(@opentelemetry/api@1.9.0)(@playwright/test@1.61.1)(react-dom@19.0.3(react@19.0.3))(react@19.0.3) + version: 16.2.1(@babel/core@7.25.9(supports-color@10.2.2))(@opentelemetry/api@1.9.0)(@playwright/test@1.61.1)(react-dom@19.0.3(react@19.0.3))(react@19.0.3) react: specifier: catalog:e2e version: 19.0.3 @@ -366,7 +369,7 @@ importers: dependencies: next: specifier: catalog:e2e - version: 16.2.1(@opentelemetry/api@1.9.0)(@playwright/test@1.61.1)(react-dom@19.0.3(react@19.0.3))(react@19.0.3) + version: 16.2.1(@babel/core@7.25.9(supports-color@10.2.2))(@opentelemetry/api@1.9.0)(@playwright/test@1.61.1)(react-dom@19.0.3(react@19.0.3))(react@19.0.3) react: specifier: catalog:e2e version: 19.0.3 @@ -400,7 +403,7 @@ importers: dependencies: next: specifier: catalog:e2e - version: 16.2.1(@opentelemetry/api@1.9.0)(@playwright/test@1.61.1)(react-dom@19.0.3(react@19.0.3))(react@19.0.3) + version: 16.2.1(@babel/core@7.25.9(supports-color@10.2.2))(@opentelemetry/api@1.9.0)(@playwright/test@1.61.1)(react-dom@19.0.3(react@19.0.3))(react@19.0.3) react: specifier: catalog:e2e version: 19.0.3 @@ -434,7 +437,7 @@ importers: dependencies: next: specifier: catalog:e2e - version: 16.2.1(@opentelemetry/api@1.9.0)(@playwright/test@1.61.1)(react-dom@19.0.3(react@19.0.3))(react@19.0.3) + version: 16.2.1(@babel/core@7.25.9(supports-color@10.2.2))(@opentelemetry/api@1.9.0)(@playwright/test@1.61.1)(react-dom@19.0.3(react@19.0.3))(react@19.0.3) react: specifier: catalog:e2e version: 19.0.3 @@ -468,7 +471,7 @@ importers: dependencies: next: specifier: catalog:e2e - version: 16.2.1(@opentelemetry/api@1.9.0)(@playwright/test@1.61.1)(react-dom@19.0.3(react@19.0.3))(react@19.0.3) + version: 16.2.1(@babel/core@7.25.9(supports-color@10.2.2))(@opentelemetry/api@1.9.0)(@playwright/test@1.61.1)(react-dom@19.0.3(react@19.0.3))(react@19.0.3) react: specifier: catalog:e2e version: 19.0.3 @@ -502,7 +505,7 @@ importers: dependencies: next: specifier: 16.2.1 - version: 16.2.1(@opentelemetry/api@1.9.0)(@playwright/test@1.61.1)(react-dom@19.2.3(react@19.2.3))(react@19.2.3) + version: 16.2.1(@babel/core@7.25.9(supports-color@10.2.2))(@opentelemetry/api@1.9.0)(@playwright/test@1.61.1)(react-dom@19.2.3(react@19.2.3))(react@19.2.3) react: specifier: 19.2.3 version: 19.2.3 @@ -545,10 +548,10 @@ importers: version: 6.7.0 '@prisma/client': specifier: 6.7.0 - version: 6.7.0(prisma@6.7.0(typescript@6.0.3))(typescript@6.0.3) + version: 6.7.0(prisma@6.7.0(supports-color@10.2.2)(typescript@6.0.3))(typescript@6.0.3) next: specifier: catalog:e2e - version: 16.2.1(@opentelemetry/api@1.9.0)(@playwright/test@1.61.1)(react-dom@19.0.3(react@19.0.3))(react@19.0.3) + version: 16.2.1(@babel/core@7.25.9(supports-color@10.2.2))(@opentelemetry/api@1.9.0)(@playwright/test@1.61.1)(react-dom@19.0.3(react@19.0.3))(react@19.0.3) react: specifier: catalog:e2e version: 19.0.3 @@ -567,7 +570,7 @@ importers: version: 19.0.3(@types/react@19.0.3) prisma: specifier: 6.7.0 - version: 6.7.0(typescript@6.0.3) + version: 6.7.0(supports-color@10.2.2)(typescript@6.0.3) typescript: specifier: 'catalog:' version: 6.0.3 @@ -585,13 +588,13 @@ importers: version: link:../../packages/aws express: specifier: ^5.2.1 - version: 5.2.1 + version: 5.2.1(supports-color@10.2.2) express-http-proxy: specifier: 2.1.1 - version: 2.1.1 + version: 2.1.1(supports-color@10.2.2) next: specifier: catalog:aws - version: 16.2.1(@opentelemetry/api@1.9.0)(@playwright/test@1.61.1)(react-dom@19.2.3(react@19.2.3))(react@19.2.3) + version: 16.2.1(@babel/core@7.25.9(supports-color@10.2.2))(@opentelemetry/api@1.9.0)(@playwright/test@1.61.1)(react-dom@19.2.3(react@19.2.3))(react@19.2.3) react: specifier: catalog:aws version: 19.2.3 @@ -640,7 +643,7 @@ importers: version: link:../shared next: specifier: catalog:aws - version: 16.2.1(@opentelemetry/api@1.9.0)(@playwright/test@1.61.1)(react-dom@19.2.3(react@19.2.3))(react@19.2.3) + version: 16.2.1(@babel/core@7.25.9(supports-color@10.2.2))(@opentelemetry/api@1.9.0)(@playwright/test@1.61.1)(react-dom@19.2.3(react@19.2.3))(react@19.2.3) react: specifier: catalog:aws version: 19.2.3 @@ -680,7 +683,7 @@ importers: dependencies: next: specifier: 16.2.0-canary.45 - version: 16.2.0-canary.45(@opentelemetry/api@1.9.0)(@playwright/test@1.61.1)(react-dom@19.2.4(react@19.2.4))(react@19.2.4) + version: 16.2.0-canary.45(@babel/core@7.25.9(supports-color@10.2.2))(@opentelemetry/api@1.9.0)(@playwright/test@1.61.1)(react-dom@19.2.4(react@19.2.4))(react@19.2.4) react: specifier: 19.2.4 version: 19.2.4 @@ -714,7 +717,7 @@ importers: version: link:../shared next: specifier: catalog:aws - version: 16.2.1(@opentelemetry/api@1.9.0)(@playwright/test@1.61.1)(react-dom@19.2.3(react@19.2.3))(react@19.2.3) + version: 16.2.1(@babel/core@7.25.9(supports-color@10.2.2))(@opentelemetry/api@1.9.0)(@playwright/test@1.61.1)(react-dom@19.2.3(react@19.2.3))(react@19.2.3) react: specifier: catalog:aws version: 19.2.3 @@ -748,7 +751,7 @@ importers: dependencies: next: specifier: catalog:aws - version: 16.2.1(@opentelemetry/api@1.9.0)(@playwright/test@1.61.1)(react-dom@19.2.3(react@19.2.3))(react@19.2.3) + version: 16.2.1(@babel/core@7.25.9(supports-color@10.2.2))(@opentelemetry/api@1.9.0)(@playwright/test@1.61.1)(react-dom@19.2.3(react@19.2.3))(react@19.2.3) react: specifier: catalog:aws version: 19.2.3 @@ -773,7 +776,7 @@ importers: version: 10.3.0 sst: specifier: ^2.43.6 - version: 2.44.0(@aws-sdk/client-sso-oidc@3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0))(aws-crt@1.23.0))(@types/react@19.2.9)(aws-crt@1.23.0)(better-sqlite3@11.10.0) + version: 2.44.0(@aws-sdk/client-sso-oidc@3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(@types/react@19.2.9)(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2))(better-sqlite3@11.10.0)(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2) packages/aws: dependencies: @@ -782,19 +785,19 @@ importers: version: 0.40.5 '@aws-sdk/client-cloudfront': specifier: 3.984.0 - version: 3.984.0(aws-crt@1.23.0) + version: 3.984.0(aws-crt@1.23.0(supports-color@10.2.2)) '@aws-sdk/client-dynamodb': specifier: 3.984.0 - version: 3.984.0(aws-crt@1.23.0) + version: 3.984.0(aws-crt@1.23.0(supports-color@10.2.2)) '@aws-sdk/client-lambda': specifier: 3.984.0 - version: 3.984.0(aws-crt@1.23.0) + version: 3.984.0(aws-crt@1.23.0(supports-color@10.2.2)) '@aws-sdk/client-s3': specifier: 3.984.0 - version: 3.984.0(aws-crt@1.23.0) + version: 3.984.0(aws-crt@1.23.0(supports-color@10.2.2)) '@aws-sdk/client-sqs': specifier: 3.984.0 - version: 3.984.0(aws-crt@1.23.0) + version: 3.984.0(aws-crt@1.23.0(supports-color@10.2.2)) '@node-minify/core': specifier: ^8.0.6 version: 8.0.6 @@ -821,10 +824,10 @@ importers: version: 0.27.0 express: specifier: ^5.2.1 - version: 5.2.1 + version: 5.2.1(supports-color@10.2.2) next: specifier: 16.2.1 - version: 16.2.1(@opentelemetry/api@1.9.0)(@playwright/test@1.61.1)(react-dom@19.2.4(react@19.2.4))(react@19.2.4) + version: 16.2.1(@babel/core@7.25.9(supports-color@10.2.2))(@opentelemetry/api@1.9.0)(@playwright/test@1.61.1)(react-dom@19.2.4(react@19.2.4))(react@19.2.4) path-to-regexp: specifier: ^6.3.0 version: 6.3.0 @@ -925,7 +928,7 @@ importers: version: 5.5.0 next: specifier: catalog:aws - version: 16.2.1(@opentelemetry/api@1.9.0)(@playwright/test@1.61.1)(react-dom@19.2.4(react@19.2.4))(react@19.2.4) + version: 16.2.1(@babel/core@7.25.9(supports-color@10.2.2))(@opentelemetry/api@1.9.0)(@playwright/test@1.61.1)(react-dom@19.2.4(react@19.2.4))(react@19.2.4) picomatch: specifier: ^4.0.2 version: 4.0.3 @@ -937,7 +940,7 @@ importers: version: 6.0.3 vitest: specifier: 'catalog:' - version: 2.1.3(@edge-runtime/vm@3.2.0)(@types/node@24.13.2)(jsdom@22.1.0)(lightningcss@1.30.2)(terser@5.16.9) + version: 2.1.3(@edge-runtime/vm@3.2.0)(@types/node@24.13.2)(jsdom@22.1.0(supports-color@10.2.2))(lightningcss@1.30.2)(supports-color@10.2.2)(terser@5.16.9) packages/core: dependencies: @@ -967,10 +970,10 @@ importers: version: 0.27.0 express: specifier: ^5.2.1 - version: 5.2.1 + version: 5.2.1(supports-color@10.2.2) next: specifier: 16.2.1 - version: 16.2.1(@opentelemetry/api@1.9.0)(@playwright/test@1.61.1)(react-dom@19.2.4(react@19.2.4))(react@19.2.4) + version: 16.2.1(@babel/core@7.25.9(supports-color@10.2.2))(@opentelemetry/api@1.9.0)(@playwright/test@1.61.1)(react-dom@19.2.4(react@19.2.4))(react@19.2.4) path-to-regexp: specifier: ^6.3.0 version: 6.3.0 @@ -1001,7 +1004,7 @@ importers: version: 6.0.3 vitest: specifier: 'catalog:' - version: 2.1.3(@edge-runtime/vm@3.2.0)(@types/node@24.13.2)(jsdom@22.1.0)(lightningcss@1.30.2)(terser@5.16.9) + version: 2.1.3(@edge-runtime/vm@3.2.0)(@types/node@24.13.2)(jsdom@22.1.0(supports-color@10.2.2))(lightningcss@1.30.2)(supports-color@10.2.2)(terser@5.16.9) packages/tests-e2e: devDependencies: @@ -1010,11 +1013,36 @@ importers: version: 1.61.1 start-server-and-test: specifier: 2.0.0 - version: 2.0.0 + version: 2.0.0(supports-color@10.2.2) ts-node: specifier: 10.9.1 version: 10.9.1(@types/node@24.13.2)(typescript@6.0.3) + packages/tests-next-suite: + dependencies: + fast-xml-parser: + specifier: ^5.2.5 + version: 5.5.8 + tsx: + specifier: 'catalog:' + version: 4.20.5 + yaml: + specifier: ^2.8.1 + version: 2.9.0 + devDependencies: + '@tsconfig/strictest': + specifier: 'catalog:' + version: 2.0.8 + '@types/node': + specifier: 'catalog:' + version: 24.13.2 + typescript: + specifier: 'catalog:' + version: 6.0.3 + vitest: + specifier: 'catalog:' + version: 2.1.3(@edge-runtime/vm@3.2.0)(@types/node@24.13.2)(jsdom@22.1.0(supports-color@10.2.2))(lightningcss@1.30.2)(supports-color@10.2.2)(terser@5.16.9) + packages/tests-unit: dependencies: '@opennextjs/aws': @@ -1029,22 +1057,22 @@ importers: version: 5.14.9 '@vitest/coverage-v8': specifier: ^2.1.3 - version: 2.1.3(vitest@2.1.3(@edge-runtime/vm@3.2.0)(@types/node@24.13.2)(jsdom@22.1.0)(lightningcss@1.30.2)(terser@5.16.9)) + version: 2.1.3(supports-color@10.2.2)(vitest@2.1.3(@edge-runtime/vm@3.2.0)(@types/node@24.13.2)(jsdom@22.1.0(supports-color@10.2.2))(lightningcss@1.30.2)(supports-color@10.2.2)(terser@5.16.9)) diff: specifier: ^8.0.2 version: 8.0.2 jsdom: specifier: ^22.1.0 - version: 22.1.0 + version: 22.1.0(supports-color@10.2.2) vite: specifier: 5.4.9 version: 5.4.9(@types/node@24.13.2)(lightningcss@1.30.2)(terser@5.16.9) vite-tsconfig-paths: specifier: ^5.0.1 - version: 5.0.1(typescript@5.9.3)(vite@5.4.9(@types/node@24.13.2)(lightningcss@1.30.2)(terser@5.16.9)) + version: 5.0.1(supports-color@10.2.2)(typescript@5.9.3)(vite@5.4.9(@types/node@24.13.2)(lightningcss@1.30.2)(terser@5.16.9)) vitest: specifier: ^2.1.3 - version: 2.1.3(@edge-runtime/vm@3.2.0)(@types/node@24.13.2)(jsdom@22.1.0)(lightningcss@1.30.2)(terser@5.16.9) + version: 2.1.3(@edge-runtime/vm@3.2.0)(@types/node@24.13.2)(jsdom@22.1.0(supports-color@10.2.2))(lightningcss@1.30.2)(supports-color@10.2.2)(terser@5.16.9) packages: @@ -1077,24 +1105,28 @@ packages: engines: {node: '>= 10'} cpu: [arm64] os: [linux] + libc: [glibc] '@ast-grep/napi-linux-arm64-musl@0.40.5': resolution: {integrity: sha512-/qKsmds5FMoaEj6FdNzepbmLMtlFuBLdrAn9GIWCqOIcVcYvM1Nka8+mncfeXB/MFZKOrzQsQdPTWqrrQzXLrA==} engines: {node: '>= 10'} cpu: [arm64] os: [linux] + libc: [musl] '@ast-grep/napi-linux-x64-gnu@0.40.5': resolution: {integrity: sha512-DP4oDbq7f/1A2hRTFLhJfDFR6aI5mRWdEfKfHzRItmlKsR9WlcEl1qDJs/zX9R2EEtIDsSKRzuJNfJllY3/W8Q==} engines: {node: '>= 10'} cpu: [x64] os: [linux] + libc: [glibc] '@ast-grep/napi-linux-x64-musl@0.40.5': resolution: {integrity: sha512-BRZUvVBPUNpWPo6Ns8chXVzxHPY+k9gpsubGTHy92Q26ecZULd/dTkWWdnvfhRqttsSQ9Pe/XQdi5+hDQ6RYcg==} engines: {node: '>= 10'} cpu: [x64] os: [linux] + libc: [musl] '@ast-grep/napi-win32-arm64-msvc@0.40.5': resolution: {integrity: sha512-y95zSEwc7vhxmcrcH0GnK4ZHEBQrmrszRBNQovzaciF9GUqEcCACNLoBesn4V47IaOp4fYgD2/EhGRTIBFb2Ug==} @@ -1866,23 +1898,10 @@ packages: '@cloudflare/containers@0.3.7': resolution: {integrity: sha512-DM9dm3FnIBSyiSJ1FLavKwl/lk3oAmTaynCzZQ9pZR0ncRPquSxkxd8Nu2MFILxmDDsPkxKsSNEh9mHHMty4Fw==} - '@cloudflare/kv-asset-handler@0.4.2': - resolution: {integrity: sha512-SIOD2DxrRRwQ+jgzlXCqoEFiKOFqaPjhnNTGKXSRLvp1HiOvapLaFG2kEr9dYQTYe8rKrd9uvDUzmAITeNyaHQ==} - engines: {node: '>=18.0.0'} - '@cloudflare/kv-asset-handler@0.5.0': resolution: {integrity: sha512-jxQYkj8dSIzc0cD6cMMNdOc1UVjqSqu8BZdor5s8cGjW2I8BjODt/kWPVdY+u9zj3ms75Q5qaZgnxUad83+eAg==} engines: {node: '>=22.0.0'} - '@cloudflare/unenv-preset@2.11.0': - resolution: {integrity: sha512-z3hxFajL765VniNPGV0JRStZolNz63gU3B3AktwoGdDlnQvz5nP+Ah4RL04PONlZQjwmDdGHowEStJ94+RsaJg==} - peerDependencies: - unenv: 2.0.0-rc.24 - workerd: ^1.20260115.0 - peerDependenciesMeta: - workerd: - optional: true - '@cloudflare/unenv-preset@2.16.1': resolution: {integrity: sha512-ECxObrMfyTl5bhQf/lZCXwo5G6xX9IAUo+nDMKK4SZ8m4Jvvxp52vilxyySSWh2YTZz8+HQ07qGH/2rEom1vDw==} peerDependencies: @@ -1892,60 +1911,30 @@ packages: workerd: optional: true - '@cloudflare/workerd-darwin-64@1.20260120.0': - resolution: {integrity: sha512-JLHx3p5dpwz4wjVSis45YNReftttnI3ndhdMh5BUbbpdreN/g0jgxNt5Qp9tDFqEKl++N63qv+hxJiIIvSLR+Q==} - engines: {node: '>=16'} - cpu: [x64] - os: [darwin] - '@cloudflare/workerd-darwin-64@1.20260710.1': resolution: {integrity: sha512-OqJl2eWF5+y9jarMm3YqqCTUe7Hd4ihogX5jyRU8iaAgOVyDr/Bk6aXpPCVUi1/MHzO93a18R/TmSTtzmB0sQw==} engines: {node: '>=16'} cpu: [x64] os: [darwin] - '@cloudflare/workerd-darwin-arm64@1.20260120.0': - resolution: {integrity: sha512-1Md2tCRhZjwajsZNOiBeOVGiS3zbpLPzUDjHr4+XGTXWOA6FzzwScJwQZLa0Doc28Cp4Nr1n7xGL0Dwiz1XuOA==} - engines: {node: '>=16'} - cpu: [arm64] - os: [darwin] - '@cloudflare/workerd-darwin-arm64@1.20260710.1': resolution: {integrity: sha512-MYBqWgUblO+VlGvO73zYsH3hB9tdRj+yLyt5IHDFWryipb2l1efmNiWtAOkIhSRfypqLYGFrfpaDm2Hg00XVKw==} engines: {node: '>=16'} cpu: [arm64] os: [darwin] - '@cloudflare/workerd-linux-64@1.20260120.0': - resolution: {integrity: sha512-O0mIfJfvU7F8N5siCoRDaVDuI12wkz2xlG4zK6/Ct7U9c9FiE0ViXNFWXFQm5PPj+qbkNRyhjUwhP+GCKTk5EQ==} - engines: {node: '>=16'} - cpu: [x64] - os: [linux] - '@cloudflare/workerd-linux-64@1.20260710.1': resolution: {integrity: sha512-lVWUgqI8qrkqvaCBGElu1kdaUFdAvaS2RD8K4qkCFP9hI3f5TCXumEs5qWSeZkvKum0+X/uJZ5hBFWsYI5SmoQ==} engines: {node: '>=16'} cpu: [x64] os: [linux] - '@cloudflare/workerd-linux-arm64@1.20260120.0': - resolution: {integrity: sha512-aRHO/7bjxVpjZEmVVcpmhbzpN6ITbFCxuLLZSW0H9O0C0w40cDCClWSi19T87Ax/PQcYjFNT22pTewKsupkckA==} - engines: {node: '>=16'} - cpu: [arm64] - os: [linux] - '@cloudflare/workerd-linux-arm64@1.20260710.1': resolution: {integrity: sha512-kDwDPItBjAI4JL0df9Fma2N+Qggbm77IB/DnroAkEGQ79fpR80sYMyuB/ZQKyjEk9f48Ocq7HCCLq59qVSyNqA==} engines: {node: '>=16'} cpu: [arm64] os: [linux] - '@cloudflare/workerd-windows-64@1.20260120.0': - resolution: {integrity: sha512-ASZIz1E8sqZQqQCgcfY1PJbBpUDrxPt8NZ+lqNil0qxnO4qX38hbCsdDF2/TDAuq0Txh7nu8ztgTelfNDlb4EA==} - engines: {node: '>=16'} - cpu: [x64] - os: [win32] - '@cloudflare/workerd-windows-64@1.20260710.1': resolution: {integrity: sha512-GcLHy1oN1dfK6g1Z7UDV9f5xMGyTfPwcjWQ0sfWKH31IsoEVCRapnj3IC0PoIrDbnoo6irGPP0CwVs3WzdTajw==} engines: {node: '>=16'} @@ -2804,89 +2793,105 @@ packages: resolution: {integrity: sha512-excjX8DfsIcJ10x1Kzr4RcWe1edC9PquDRRPx3YVCvQv+U5p7Yin2s32ftzikXojb1PIFc/9Mt28/y+iRklkrw==} cpu: [arm64] os: [linux] + libc: [glibc] '@img/sharp-libvips-linux-arm@1.2.4': resolution: {integrity: sha512-bFI7xcKFELdiNCVov8e44Ia4u2byA+l3XtsAj+Q8tfCwO6BQ8iDojYdvoPMqsKDkuoOo+X6HZA0s0q11ANMQ8A==} cpu: [arm] os: [linux] + libc: [glibc] '@img/sharp-libvips-linux-ppc64@1.2.4': resolution: {integrity: sha512-FMuvGijLDYG6lW+b/UvyilUWu5Ayu+3r2d1S8notiGCIyYU/76eig1UfMmkZ7vwgOrzKzlQbFSuQfgm7GYUPpA==} cpu: [ppc64] os: [linux] + libc: [glibc] '@img/sharp-libvips-linux-riscv64@1.2.4': resolution: {integrity: sha512-oVDbcR4zUC0ce82teubSm+x6ETixtKZBh/qbREIOcI3cULzDyb18Sr/Wcyx7NRQeQzOiHTNbZFF1UwPS2scyGA==} cpu: [riscv64] os: [linux] + libc: [glibc] '@img/sharp-libvips-linux-s390x@1.2.4': resolution: {integrity: sha512-qmp9VrzgPgMoGZyPvrQHqk02uyjA0/QrTO26Tqk6l4ZV0MPWIW6LTkqOIov+J1yEu7MbFQaDpwdwJKhbJvuRxQ==} cpu: [s390x] os: [linux] + libc: [glibc] '@img/sharp-libvips-linux-x64@1.2.4': resolution: {integrity: sha512-tJxiiLsmHc9Ax1bz3oaOYBURTXGIRDODBqhveVHonrHJ9/+k89qbLl0bcJns+e4t4rvaNBxaEZsFtSfAdquPrw==} cpu: [x64] os: [linux] + libc: [glibc] '@img/sharp-libvips-linuxmusl-arm64@1.2.4': resolution: {integrity: sha512-FVQHuwx1IIuNow9QAbYUzJ+En8KcVm9Lk5+uGUQJHaZmMECZmOlix9HnH7n1TRkXMS0pGxIJokIVB9SuqZGGXw==} cpu: [arm64] os: [linux] + libc: [musl] '@img/sharp-libvips-linuxmusl-x64@1.2.4': resolution: {integrity: sha512-+LpyBk7L44ZIXwz/VYfglaX/okxezESc6UxDSoyo2Ks6Jxc4Y7sGjpgU9s4PMgqgjj1gZCylTieNamqA1MF7Dg==} cpu: [x64] os: [linux] + libc: [musl] '@img/sharp-linux-arm64@0.34.5': resolution: {integrity: sha512-bKQzaJRY/bkPOXyKx5EVup7qkaojECG6NLYswgktOZjaXecSAeCWiZwwiFf3/Y+O1HrauiE3FVsGxFg8c24rZg==} engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} cpu: [arm64] os: [linux] + libc: [glibc] '@img/sharp-linux-arm@0.34.5': resolution: {integrity: sha512-9dLqsvwtg1uuXBGZKsxem9595+ujv0sJ6Vi8wcTANSFpwV/GONat5eCkzQo/1O6zRIkh0m/8+5BjrRr7jDUSZw==} engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} cpu: [arm] os: [linux] + libc: [glibc] '@img/sharp-linux-ppc64@0.34.5': resolution: {integrity: sha512-7zznwNaqW6YtsfrGGDA6BRkISKAAE1Jo0QdpNYXNMHu2+0dTrPflTLNkpc8l7MUP5M16ZJcUvysVWWrMefZquA==} engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} cpu: [ppc64] os: [linux] + libc: [glibc] '@img/sharp-linux-riscv64@0.34.5': resolution: {integrity: sha512-51gJuLPTKa7piYPaVs8GmByo7/U7/7TZOq+cnXJIHZKavIRHAP77e3N2HEl3dgiqdD/w0yUfiJnII77PuDDFdw==} engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} cpu: [riscv64] os: [linux] + libc: [glibc] '@img/sharp-linux-s390x@0.34.5': resolution: {integrity: sha512-nQtCk0PdKfho3eC5MrbQoigJ2gd1CgddUMkabUj+rBevs8tZ2cULOx46E7oyX+04WGfABgIwmMC0VqieTiR4jg==} engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} cpu: [s390x] os: [linux] + libc: [glibc] '@img/sharp-linux-x64@0.34.5': resolution: {integrity: sha512-MEzd8HPKxVxVenwAa+JRPwEC7QFjoPWuS5NZnBt6B3pu7EG2Ge0id1oLHZpPJdn3OQK+BQDiw9zStiHBTJQQQQ==} engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} cpu: [x64] os: [linux] + libc: [glibc] '@img/sharp-linuxmusl-arm64@0.34.5': resolution: {integrity: sha512-fprJR6GtRsMt6Kyfq44IsChVZeGN97gTD331weR1ex1c1rypDEABN6Tm2xa1wE6lYb5DdEnk03NZPqA7Id21yg==} engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} cpu: [arm64] os: [linux] + libc: [musl] '@img/sharp-linuxmusl-x64@0.34.5': resolution: {integrity: sha512-Jg8wNT1MUzIvhBFxViqrEhWDGzqymo3sV7z7ZsaWbZNDLXRJZoRGrjulp60YYtV4wfY8VIKcWidjojlLcWrd8Q==} engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} cpu: [x64] os: [linux] + libc: [musl] '@img/sharp-wasm32@0.34.5': resolution: {integrity: sha512-OdWTEiVkY2PHwqkbBI8frFxQQFekHaSSkUIJkwzclWZe64O1X4UlUjqqqLaPbUpMOQk6FBu/HtlGXNblIs0huw==} @@ -3023,48 +3028,56 @@ packages: engines: {node: '>= 10'} cpu: [arm64] os: [linux] + libc: [glibc] '@next/swc-linux-arm64-gnu@16.2.1': resolution: {integrity: sha512-uLn+0BK+C31LTVbQ/QU+UaVrV0rRSJQ8RfniQAHPghDdgE+SlroYqcmFnO5iNjNfVWCyKZHYrs3Nl0mUzWxbBw==} engines: {node: '>= 10'} cpu: [arm64] os: [linux] + libc: [glibc] '@next/swc-linux-arm64-musl@16.2.0-canary.45': resolution: {integrity: sha512-Wl1QdWPfmahXTKOrUcNQya/4BxpgjaQggwPNwWz0IREa8avntIJy6Anilg3CU/dUmA22WTDgm2S5Hs0eV4C+BQ==} engines: {node: '>= 10'} cpu: [arm64] os: [linux] + libc: [musl] '@next/swc-linux-arm64-musl@16.2.1': resolution: {integrity: sha512-ssKq6iMRnHdnycGp9hCuGnXJZ0YPr4/wNwrfE5DbmvEcgl9+yv97/Kq3TPVDfYome1SW5geciLB9aiEqKXQjlQ==} engines: {node: '>= 10'} cpu: [arm64] os: [linux] + libc: [musl] '@next/swc-linux-x64-gnu@16.2.0-canary.45': resolution: {integrity: sha512-69z0oDA2O/PnPRv/kBRD6oRK/AW5t+Cqkp5/8dBO+WZaEo+shcf9EZFD8uPCqrsu7ITiVcDKgUtJzxvouEqm/A==} engines: {node: '>= 10'} cpu: [x64] os: [linux] + libc: [glibc] '@next/swc-linux-x64-gnu@16.2.1': resolution: {integrity: sha512-HQm7SrHRELJ30T1TSmT706IWovFFSRGxfgUkyWJZF/RKBMdbdRWJuFrcpDdE5vy9UXjFOx6L3mRdqH04Mmx0hg==} engines: {node: '>= 10'} cpu: [x64] os: [linux] + libc: [glibc] '@next/swc-linux-x64-musl@16.2.0-canary.45': resolution: {integrity: sha512-9f6p3JP+bUNuG0RWPF2cBBdAuSJo8VuWak9vxGJfLKA9Qqss/EdcNz0z3U+AoAfZ5DhpAxxKliKIuUWxHvUaeQ==} engines: {node: '>= 10'} cpu: [x64] os: [linux] + libc: [musl] '@next/swc-linux-x64-musl@16.2.1': resolution: {integrity: sha512-aV2iUaC/5HGEpbBkE+4B8aHIudoOy5DYekAKOMSHoIYQ66y/wIVeaRx8MS2ZMdxe/HIXlMho4ubdZs/J8441Tg==} engines: {node: '>= 10'} cpu: [x64] os: [linux] + libc: [musl] '@next/swc-win32-arm64-msvc@16.2.0-canary.45': resolution: {integrity: sha512-8ecF4wvdnaxdk7I3pjhb7q7s/UeM8ZjzeL79igcfJpPKjfrajFCg7ss+pmyHaIAH8R8PD47Z11jdTWeffkiWRQ==} @@ -3144,21 +3157,25 @@ packages: resolution: {integrity: sha512-aql/LLYriX/5Ar7o5Qivnp/qMTUPNiOCr7cFLvmvzYZa3XL0H8XtbKUfIVm+9ILR0urXQzcml+L8pLe1p8sgEg==} cpu: [arm64] os: [linux] + libc: [glibc] '@oxfmt/linux-arm64-musl@0.27.0': resolution: {integrity: sha512-6u/kNb7hubthg4u/pn3MK/GJLwPgjDvDDnjjr7TC0/OK/xztef8ToXmycxIQ9OeDNIJJf7Z0Ss/rHnKvQOWzRw==} cpu: [arm64] os: [linux] + libc: [musl] '@oxfmt/linux-x64-gnu@0.27.0': resolution: {integrity: sha512-EhvDfFHO1yrK/Cu75eU1U828lBsW2cV0JITOrka5AjR3PlmnQQ03Mr9ROkWkbPmzAMklXI4Q16eO+4n+7FhS1w==} cpu: [x64] os: [linux] + libc: [glibc] '@oxfmt/linux-x64-musl@0.27.0': resolution: {integrity: sha512-1pgjuwMT5sCekuteYZ7LkDsto7DJouaccwjozHqdWohSj2zJpFeSP2rMaC+6JJ1KD5r9HG9sWRuHZGEaoX9uOw==} cpu: [x64] os: [linux] + libc: [musl] '@oxfmt/win32-arm64@0.27.0': resolution: {integrity: sha512-mmuEhXZEhAYAeyjVTWwGKIA3RSb2b/He9wrXkDJPhmqp8qISUzkVg1dQmLEt4hD+wI5rzR+6vchPt521tzuRDA==} @@ -3184,21 +3201,25 @@ packages: resolution: {integrity: sha512-j4QzfCM8ks+OyM+KKYWDiBEQsm5RCW50H1Wz16wUyoFsobJ+X5qqcJxq6HvkE07m8euYmZelyB0WqsiDoz1v8g==} cpu: [arm64] os: [linux] + libc: [glibc] '@oxlint/linux-arm64-musl@1.42.0': resolution: {integrity: sha512-g5b1Uw7zo6yw4Ymzyd1etKzAY7xAaGA3scwB8tAp3QzuY7CYdfTwlhiLKSAKbd7T/JBgxOXAGNcLDorJyVTXcg==} cpu: [arm64] os: [linux] + libc: [musl] '@oxlint/linux-x64-gnu@1.42.0': resolution: {integrity: sha512-HnD99GD9qAbpV4q9iQil7mXZUJFpoBdDavfcC2CgGLPlawfcV5COzQPNwOgvPVkr7C0cBx6uNCq3S6r9IIiEIg==} cpu: [x64] os: [linux] + libc: [glibc] '@oxlint/linux-x64-musl@1.42.0': resolution: {integrity: sha512-8NTe8A78HHFn+nBi+8qMwIjgv9oIBh+9zqCPNLH56ah4vKOPvbePLI6NIv9qSkmzrBuu8SB+FJ2TH/G05UzbNA==} cpu: [x64] os: [linux] + libc: [musl] '@oxlint/win32-arm64@1.42.0': resolution: {integrity: sha512-lAPS2YAuu+qFqoTNPFcNsxXjwSV0M+dOgAzzVTAN7Yo2ifj+oLOx0GsntWoM78PvQWI7Q827ZxqtU2ImBmDapA==} @@ -3309,46 +3330,55 @@ packages: resolution: {integrity: sha512-0KXvIJQMOImLCVCz9uvvdPgfyWo93aHHp8ui3FrtOP57svqrF/roSSR5pjqL2hcMp0ljeGlU4q9o/rQaAQ3AYA==} cpu: [arm] os: [linux] + libc: [glibc] '@rollup/rollup-linux-arm-musleabihf@4.24.0': resolution: {integrity: sha512-it2BW6kKFVh8xk/BnHfakEeoLPv8STIISekpoF+nBgWM4d55CZKc7T4Dx1pEbTnYm/xEKMgy1MNtYuoA8RFIWw==} cpu: [arm] os: [linux] + libc: [musl] '@rollup/rollup-linux-arm64-gnu@4.24.0': resolution: {integrity: sha512-i0xTLXjqap2eRfulFVlSnM5dEbTVque/3Pi4g2y7cxrs7+a9De42z4XxKLYJ7+OhE3IgxvfQM7vQc43bwTgPwA==} cpu: [arm64] os: [linux] + libc: [glibc] '@rollup/rollup-linux-arm64-musl@4.24.0': resolution: {integrity: sha512-9E6MKUJhDuDh604Qco5yP/3qn3y7SLXYuiC0Rpr89aMScS2UAmK1wHP2b7KAa1nSjWJc/f/Lc0Wl1L47qjiyQw==} cpu: [arm64] os: [linux] + libc: [musl] '@rollup/rollup-linux-powerpc64le-gnu@4.24.0': resolution: {integrity: sha512-2XFFPJ2XMEiF5Zi2EBf4h73oR1V/lycirxZxHZNc93SqDN/IWhYYSYj8I9381ikUFXZrz2v7r2tOVk2NBwxrWw==} cpu: [ppc64] os: [linux] + libc: [glibc] '@rollup/rollup-linux-riscv64-gnu@4.24.0': resolution: {integrity: sha512-M3Dg4hlwuntUCdzU7KjYqbbd+BLq3JMAOhCKdBE3TcMGMZbKkDdJ5ivNdehOssMCIokNHFOsv7DO4rlEOfyKpg==} cpu: [riscv64] os: [linux] + libc: [glibc] '@rollup/rollup-linux-s390x-gnu@4.24.0': resolution: {integrity: sha512-mjBaoo4ocxJppTorZVKWFpy1bfFj9FeCMJqzlMQGjpNPY9JwQi7OuS1axzNIk0nMX6jSgy6ZURDZ2w0QW6D56g==} cpu: [s390x] os: [linux] + libc: [glibc] '@rollup/rollup-linux-x64-gnu@4.24.0': resolution: {integrity: sha512-ZXFk7M72R0YYFN5q13niV0B7G8/5dcQ9JDp8keJSfr3GoZeXEoMHP/HlvqROA3OMbMdfr19IjCeNAnPUG93b6A==} cpu: [x64] os: [linux] + libc: [glibc] '@rollup/rollup-linux-x64-musl@4.24.0': resolution: {integrity: sha512-w1i+L7kAXZNdYl+vFvzSZy8Y1arS7vMgIy8wusXJzRrPyof5LAb02KGr1PD2EkRcl73kHulIID0M501lN+vobQ==} cpu: [x64] os: [linux] + libc: [musl] '@rollup/rollup-win32-arm64-msvc@4.24.0': resolution: {integrity: sha512-VXBrnPWgBpVDCVY6XF3LEW0pOU51KbaHhccHw6AS6vBWIC60eqsH19DAeeObl+g8nKAz04QFdl/Cefta0xQtUQ==} @@ -3763,10 +3793,12 @@ packages: '@smithy/smithy-client@4.10.12': resolution: {integrity: sha512-VKO/HKoQ5OrSHW6AJUmEnUKeXI1/5LfCwO9cwyao7CmLvGnZeM1i36Lyful3LK1XU7HwTVieTqO1y2C/6t3qtA==} engines: {node: '>=18.0.0'} + deprecated: Deprecated due to a bug in custom logger data redaction. See https://github.com/aws/aws-sdk-js-v3/issues/8393. '@smithy/smithy-client@4.12.7': resolution: {integrity: sha512-q3gqnwml60G44FECaEEsdQMplYhDMZYCtYhMCzadCnRnnHIobZJjegmdoUo6ieLQlPUzvrMdIJUpx6DoPmzANQ==} engines: {node: '>=18.0.0'} + deprecated: Deprecated due to a bug in custom logger data redaction. See https://github.com/aws/aws-sdk-js-v3/issues/8393. '@smithy/types@1.2.0': resolution: {integrity: sha512-z1r00TvBqF3dh4aHhya7nz1HhvCg4TRmw51fjMrh5do3h+ngSstt/yKlNbHeb9QxJmFbmN8KEVSWgb1bRvfEoA==} @@ -4082,24 +4114,28 @@ packages: engines: {node: '>= 10'} cpu: [arm64] os: [linux] + libc: [glibc] '@tailwindcss/oxide-linux-arm64-musl@4.1.18': resolution: {integrity: sha512-1px92582HkPQlaaCkdRcio71p8bc8i/ap5807tPRDK/uw953cauQBT8c5tVGkOwrHMfc2Yh6UuxaH4vtTjGvHg==} engines: {node: '>= 10'} cpu: [arm64] os: [linux] + libc: [musl] '@tailwindcss/oxide-linux-x64-gnu@4.1.18': resolution: {integrity: sha512-v3gyT0ivkfBLoZGF9LyHmts0Isc8jHZyVcbzio6Wpzifg/+5ZJpDiRiUhDLkcr7f/r38SWNe7ucxmGW3j3Kb/g==} engines: {node: '>= 10'} cpu: [x64] os: [linux] + libc: [glibc] '@tailwindcss/oxide-linux-x64-musl@4.1.18': resolution: {integrity: sha512-bhJ2y2OQNlcRwwgOAGMY0xTFStt4/wyU6pvI6LSuZpRgKQwxTec0/3Scu91O8ir7qCR3AuepQKLU/kX99FouqQ==} engines: {node: '>= 10'} cpu: [x64] os: [linux] + libc: [musl] '@tailwindcss/oxide-wasm32-wasi@4.1.18': resolution: {integrity: sha512-LffYTvPjODiP6PT16oNeUQJzNVyJl1cjIebq/rWWBF+3eDst5JGEFSc5cWxyRCJ0Mxl+KyIkqRxk1XPEs9x8TA==} @@ -4508,6 +4544,7 @@ packages: aws-sdk@2.1691.0: resolution: {integrity: sha512-/F2YC+DlsY3UBM2Bdnh5RLHOPNibS/+IcjUuhP8XuctyrN+MlL+fWDAiela32LTDk7hMy4rx8MTgvbJ+0blO5g==} engines: {node: '>= 10.0.0'} + deprecated: The AWS SDK for JavaScript (v2) has reached end-of-support, and no longer receives updates. Please migrate your code to use AWS SDK for JavaScript (v3). More info https://a.co/cUPnyil aws4fetch@1.0.20: resolution: {integrity: sha512-/djoAN709iY65ETD6LKCtyyEI04XIBP5xVvfmNxsEP0uJB5tyaGBztSryRr4HqMStr9R06PisQE7m9zDTXKu6g==} @@ -4853,6 +4890,7 @@ packages: crypto-js@4.2.0: resolution: {integrity: sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q==} + deprecated: Active development of CryptoJS has been discontinued. This library is no longer maintained. cssesc@3.0.0: resolution: {integrity: sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==} @@ -5867,24 +5905,28 @@ packages: engines: {node: '>= 12.0.0'} cpu: [arm64] os: [linux] + libc: [glibc] lightningcss-linux-arm64-musl@1.30.2: resolution: {integrity: sha512-5Vh9dGeblpTxWHpOx8iauV02popZDsCYMPIgiuw97OJ5uaDsL86cnqSFs5LZkG3ghHoX5isLgWzMs+eD1YzrnA==} engines: {node: '>= 12.0.0'} cpu: [arm64] os: [linux] + libc: [musl] lightningcss-linux-x64-gnu@1.30.2: resolution: {integrity: sha512-Cfd46gdmj1vQ+lR6VRTTadNHu6ALuw2pKR9lYq4FnhvgBc4zWY1EtZcAc6EffShbb1MFrIPfLDXD6Xprbnni4w==} engines: {node: '>= 12.0.0'} cpu: [x64] os: [linux] + libc: [glibc] lightningcss-linux-x64-musl@1.30.2: resolution: {integrity: sha512-XJaLUUFXb6/QG2lGIW6aIk6jKdtjtcffUT0NKvIqhSBY3hh9Ch+1LCeH80dR9q9LBjG3ewbDjnumefsLsP6aiA==} engines: {node: '>= 12.0.0'} cpu: [x64] os: [linux] + libc: [musl] lightningcss-win32-arm64-msvc@1.30.2: resolution: {integrity: sha512-FZn+vaj7zLv//D/192WFFVA0RgHawIcHqLX9xuWiQt7P0PtdFEVaxgF9rjM/IRYHQXNnk61/H/gb2Ei+kUQ4xQ==} @@ -6058,11 +6100,6 @@ packages: resolution: {integrity: sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==} engines: {node: '>=10'} - miniflare@4.20260120.0: - resolution: {integrity: sha512-XXZyE2pDKMtP5OLuv0LPHEAzIYhov4jrYjcqrhhqtxGGtXneWOHvXIPo+eV8sqwqWd3R7j4DlEKcyb+87BR49Q==} - engines: {node: '>=18.0.0'} - hasBin: true - miniflare@4.20260710.0: resolution: {integrity: sha512-x1LLRkU6o1p7hiKrB0TRnL0MJn6xFOT+/vrlEQINz5cRDKLP8ru4hBqWTIvXAetzr1acKAnmAaG84pQ4W/K14g==} engines: {node: '>=22.0.0'} @@ -6985,9 +7022,6 @@ packages: strnum@1.0.5: resolution: {integrity: sha512-J8bbNyKKXl5qYcR36TIO8W3mVGVHrmmxsd5PAItGkmyzwJvybiw2IVq5nqd0i4LSNSkB/sx9VHllbfFdr9k1JA==} - strnum@2.1.2: - resolution: {integrity: sha512-l63NF9y/cLROq/yqKXSLtcMeeyOfnSQlfMSlzFt/K73oIaD8DGaQWd7Z34X9GPiKqP5rbSh84Hl4bOlLcjiSrQ==} - strnum@2.2.2: resolution: {integrity: sha512-DnR90I+jtXNSTXWdwrEy9FakW7UX+qUZg28gj5fk2vxxl7uS/3bpI4fjFYVmdK9etptYBPNkpahuQnEwhwECqA==} @@ -7155,6 +7189,7 @@ packages: tsconfck@3.1.4: resolution: {integrity: sha512-kdqWFGVJqe+KGYvlSO9NIaWn9jT1Ny4oKVzAJsKii5eoE9snzTJzL4+MMVOMn+fikWGFmKEylcXL710V/kIPJQ==} engines: {node: ^18 || >=20} + deprecated: unmaintained hasBin: true peerDependencies: typescript: ^5.0.0 @@ -7248,10 +7283,6 @@ packages: resolution: {integrity: sha512-72RFADWFqKmUb2hmmvNODKL3p9hcB6Gt2DOQMis1SEBaV6a4MH8soBvzg+95CYhCKPFedut2JY9bMfrDl9D23g==} engines: {node: '>=14.0'} - undici@7.18.2: - resolution: {integrity: sha512-y+8YjDFzWdQlSE9N5nzKMT3g4a5UBX1HKowfdXh0uvAnTaqqwqB92Jt4UXBAeKekDs5IaDKyJFR4X1gYVCgXcw==} - engines: {node: '>=20.18.1'} - undici@7.28.0: resolution: {integrity: sha512-cRZYrTDwWznlnRiPjggAGxZXanty6M8RV1ff8Wm4LWXBp7/IG8v5DnOm74DtUBp9OONpK75YlPnIjQqX0dBDtA==} engines: {node: '>=20.18.1'} @@ -7301,14 +7332,17 @@ packages: uuid@8.0.0: resolution: {integrity: sha512-jOXGuXZAWdsTH7eZLtyXMqUb9EcWMGZNbL9YcGBJl4MH4nrxHmZJhEHvyLFrkxo+28uLb/NYRcStH48fnD0Vzw==} + deprecated: uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028). hasBin: true uuid@8.3.2: resolution: {integrity: sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==} + deprecated: uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028). hasBin: true uuid@9.0.1: resolution: {integrity: sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==} + deprecated: uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028). hasBin: true v8-compile-cache-lib@3.0.1: @@ -7469,11 +7503,6 @@ packages: worker-timers@7.1.8: resolution: {integrity: sha512-R54psRKYVLuzff7c1OTFcq/4Hue5Vlz4bFtNEIarpSiCYhpifHU3aIQI29S84o1j87ePCYqbmEJPqwBTf+3sfw==} - workerd@1.20260120.0: - resolution: {integrity: sha512-R6X/VQOkwLTBGLp4VRUwLQZZVxZ9T9J8pGiJ6GQUMaRkY7TVWrCSkVfoNMM1/YyFsY5UYhhPoQe5IehnhZ3Pdw==} - engines: {node: '>=16'} - hasBin: true - workerd@1.20260710.1: resolution: {integrity: sha512-U2sBPPrb9U97sBKnnMN6Kv8p65903P35nwMkPE9vSH/bRuRqkZ3a1EjUw3jV28RhiyXpkLF77Evzw8XimFxyTw==} engines: {node: '>=16'} @@ -7489,16 +7518,6 @@ packages: '@cloudflare/workers-types': optional: true - wrangler@4.60.0: - resolution: {integrity: sha512-n4kibm/xY0Qd5G2K/CbAQeVeOIlwPNVglmFjlDRCCYk3hZh8IggO/rg8AXt/vByK2Sxsugl5Z7yvgWxrUbmS6g==} - engines: {node: '>=20.0.0'} - hasBin: true - peerDependencies: - '@cloudflare/workers-types': ^4.20260120.0 - peerDependenciesMeta: - '@cloudflare/workers-types': - optional: true - wrap-ansi@7.0.0: resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==} engines: {node: '>=10'} @@ -7756,35 +7775,35 @@ snapshots: '@aws-crypto/sha256-js': 5.2.0 '@aws-crypto/supports-web-crypto': 5.2.0 '@aws-crypto/util': 5.2.0 - '@aws-sdk/types': 3.973.0 + '@aws-sdk/types': 3.973.6 '@aws-sdk/util-locate-window': 3.568.0 '@smithy/util-utf8': 2.3.0 - tslib: 2.8.0 + tslib: 2.8.1 '@aws-crypto/sha256-js@5.2.0': dependencies: '@aws-crypto/util': 5.2.0 - '@aws-sdk/types': 3.973.0 - tslib: 2.8.0 + '@aws-sdk/types': 3.973.6 + tslib: 2.8.1 '@aws-crypto/supports-web-crypto@5.2.0': dependencies: - tslib: 2.8.0 + tslib: 2.8.1 '@aws-crypto/util@5.2.0': dependencies: - '@aws-sdk/types': 3.973.0 + '@aws-sdk/types': 3.973.6 '@smithy/util-utf8': 2.3.0 - tslib: 2.8.0 + tslib: 2.8.1 - '@aws-sdk/client-cloudformation@3.678.0(aws-crt@1.23.0)': + '@aws-sdk/client-cloudformation@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2))': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/client-sso-oidc': 3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0))(aws-crt@1.23.0) - '@aws-sdk/client-sts': 3.678.0(aws-crt@1.23.0) + '@aws-sdk/client-sso-oidc': 3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) + '@aws-sdk/client-sts': 3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) '@aws-sdk/core': 3.678.0 - '@aws-sdk/credential-provider-node': 3.678.0(@aws-sdk/client-sso-oidc@3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0))(aws-crt@1.23.0))(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0))(aws-crt@1.23.0) + '@aws-sdk/credential-provider-node': 3.678.0(@aws-sdk/client-sso-oidc@3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) '@aws-sdk/middleware-host-header': 3.667.0 '@aws-sdk/middleware-logger': 3.667.0 '@aws-sdk/middleware-recursion-detection': 3.667.0 @@ -7793,7 +7812,7 @@ snapshots: '@aws-sdk/types': 3.667.0 '@aws-sdk/util-endpoints': 3.667.0 '@aws-sdk/util-user-agent-browser': 3.675.0 - '@aws-sdk/util-user-agent-node': 3.678.0(aws-crt@1.23.0) + '@aws-sdk/util-user-agent-node': 3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) '@smithy/config-resolver': 3.0.10 '@smithy/core': 2.5.1 '@smithy/fetch-http-handler': 3.2.9 @@ -7826,12 +7845,12 @@ snapshots: transitivePeerDependencies: - aws-crt - '@aws-sdk/client-cloudfront@3.984.0(aws-crt@1.23.0)': + '@aws-sdk/client-cloudfront@3.984.0(aws-crt@1.23.0(supports-color@10.2.2))': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 '@aws-sdk/core': 3.973.25 - '@aws-sdk/credential-provider-node': 3.972.27(aws-crt@1.23.0) + '@aws-sdk/credential-provider-node': 3.972.27(aws-crt@1.23.0(supports-color@10.2.2)) '@aws-sdk/middleware-host-header': 3.972.8 '@aws-sdk/middleware-logger': 3.972.8 '@aws-sdk/middleware-recursion-detection': 3.972.9 @@ -7840,7 +7859,7 @@ snapshots: '@aws-sdk/types': 3.973.6 '@aws-sdk/util-endpoints': 3.984.0 '@aws-sdk/util-user-agent-browser': 3.972.8 - '@aws-sdk/util-user-agent-node': 3.973.12(aws-crt@1.23.0) + '@aws-sdk/util-user-agent-node': 3.973.12(aws-crt@1.23.0(supports-color@10.2.2)) '@smithy/config-resolver': 4.4.13 '@smithy/core': 3.23.12 '@smithy/fetch-http-handler': 5.3.15 @@ -7872,14 +7891,14 @@ snapshots: transitivePeerDependencies: - aws-crt - '@aws-sdk/client-cognito-identity@3.678.0(aws-crt@1.23.0)': + '@aws-sdk/client-cognito-identity@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2))': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/client-sso-oidc': 3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0))(aws-crt@1.23.0) - '@aws-sdk/client-sts': 3.678.0(aws-crt@1.23.0) + '@aws-sdk/client-sso-oidc': 3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) + '@aws-sdk/client-sts': 3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) '@aws-sdk/core': 3.678.0 - '@aws-sdk/credential-provider-node': 3.678.0(@aws-sdk/client-sso-oidc@3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0))(aws-crt@1.23.0))(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0))(aws-crt@1.23.0) + '@aws-sdk/credential-provider-node': 3.678.0(@aws-sdk/client-sso-oidc@3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) '@aws-sdk/middleware-host-header': 3.667.0 '@aws-sdk/middleware-logger': 3.667.0 '@aws-sdk/middleware-recursion-detection': 3.667.0 @@ -7888,7 +7907,7 @@ snapshots: '@aws-sdk/types': 3.667.0 '@aws-sdk/util-endpoints': 3.667.0 '@aws-sdk/util-user-agent-browser': 3.675.0 - '@aws-sdk/util-user-agent-node': 3.678.0(aws-crt@1.23.0) + '@aws-sdk/util-user-agent-node': 3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) '@smithy/config-resolver': 3.0.10 '@smithy/core': 2.5.1 '@smithy/fetch-http-handler': 3.2.9 @@ -7918,12 +7937,12 @@ snapshots: transitivePeerDependencies: - aws-crt - '@aws-sdk/client-dynamodb@3.984.0(aws-crt@1.23.0)': + '@aws-sdk/client-dynamodb@3.984.0(aws-crt@1.23.0(supports-color@10.2.2))': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 '@aws-sdk/core': 3.973.25 - '@aws-sdk/credential-provider-node': 3.972.27(aws-crt@1.23.0) + '@aws-sdk/credential-provider-node': 3.972.27(aws-crt@1.23.0(supports-color@10.2.2)) '@aws-sdk/dynamodb-codec': 3.972.26 '@aws-sdk/middleware-endpoint-discovery': 3.972.9 '@aws-sdk/middleware-host-header': 3.972.8 @@ -7934,7 +7953,7 @@ snapshots: '@aws-sdk/types': 3.973.6 '@aws-sdk/util-endpoints': 3.984.0 '@aws-sdk/util-user-agent-browser': 3.972.8 - '@aws-sdk/util-user-agent-node': 3.973.12(aws-crt@1.23.0) + '@aws-sdk/util-user-agent-node': 3.973.12(aws-crt@1.23.0(supports-color@10.2.2)) '@smithy/config-resolver': 4.4.13 '@smithy/core': 3.23.12 '@smithy/fetch-http-handler': 5.3.15 @@ -7965,14 +7984,14 @@ snapshots: transitivePeerDependencies: - aws-crt - '@aws-sdk/client-ecs@3.678.0(aws-crt@1.23.0)': + '@aws-sdk/client-ecs@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2))': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/client-sso-oidc': 3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0))(aws-crt@1.23.0) - '@aws-sdk/client-sts': 3.678.0(aws-crt@1.23.0) + '@aws-sdk/client-sso-oidc': 3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) + '@aws-sdk/client-sts': 3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) '@aws-sdk/core': 3.678.0 - '@aws-sdk/credential-provider-node': 3.678.0(@aws-sdk/client-sso-oidc@3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0))(aws-crt@1.23.0))(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0))(aws-crt@1.23.0) + '@aws-sdk/credential-provider-node': 3.678.0(@aws-sdk/client-sso-oidc@3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) '@aws-sdk/middleware-host-header': 3.667.0 '@aws-sdk/middleware-logger': 3.667.0 '@aws-sdk/middleware-recursion-detection': 3.667.0 @@ -7981,7 +8000,7 @@ snapshots: '@aws-sdk/types': 3.667.0 '@aws-sdk/util-endpoints': 3.667.0 '@aws-sdk/util-user-agent-browser': 3.675.0 - '@aws-sdk/util-user-agent-node': 3.678.0(aws-crt@1.23.0) + '@aws-sdk/util-user-agent-node': 3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) '@smithy/config-resolver': 3.0.10 '@smithy/core': 2.5.1 '@smithy/fetch-http-handler': 3.2.9 @@ -8014,14 +8033,14 @@ snapshots: transitivePeerDependencies: - aws-crt - '@aws-sdk/client-eventbridge@3.678.0(aws-crt@1.23.0)': + '@aws-sdk/client-eventbridge@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2))': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/client-sso-oidc': 3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0))(aws-crt@1.23.0) - '@aws-sdk/client-sts': 3.678.0(aws-crt@1.23.0) + '@aws-sdk/client-sso-oidc': 3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) + '@aws-sdk/client-sts': 3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) '@aws-sdk/core': 3.678.0 - '@aws-sdk/credential-provider-node': 3.678.0(@aws-sdk/client-sso-oidc@3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0))(aws-crt@1.23.0))(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0))(aws-crt@1.23.0) + '@aws-sdk/credential-provider-node': 3.678.0(@aws-sdk/client-sso-oidc@3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) '@aws-sdk/middleware-host-header': 3.667.0 '@aws-sdk/middleware-logger': 3.667.0 '@aws-sdk/middleware-recursion-detection': 3.667.0 @@ -8031,7 +8050,7 @@ snapshots: '@aws-sdk/types': 3.667.0 '@aws-sdk/util-endpoints': 3.667.0 '@aws-sdk/util-user-agent-browser': 3.675.0 - '@aws-sdk/util-user-agent-node': 3.678.0(aws-crt@1.23.0) + '@aws-sdk/util-user-agent-node': 3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) '@smithy/config-resolver': 3.0.10 '@smithy/core': 2.5.1 '@smithy/fetch-http-handler': 3.2.9 @@ -8061,14 +8080,14 @@ snapshots: transitivePeerDependencies: - aws-crt - '@aws-sdk/client-iam@3.678.0(aws-crt@1.23.0)': + '@aws-sdk/client-iam@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2))': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/client-sso-oidc': 3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0))(aws-crt@1.23.0) - '@aws-sdk/client-sts': 3.678.0(aws-crt@1.23.0) + '@aws-sdk/client-sso-oidc': 3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) + '@aws-sdk/client-sts': 3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) '@aws-sdk/core': 3.678.0 - '@aws-sdk/credential-provider-node': 3.678.0(@aws-sdk/client-sso-oidc@3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0))(aws-crt@1.23.0))(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0))(aws-crt@1.23.0) + '@aws-sdk/credential-provider-node': 3.678.0(@aws-sdk/client-sso-oidc@3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) '@aws-sdk/middleware-host-header': 3.667.0 '@aws-sdk/middleware-logger': 3.667.0 '@aws-sdk/middleware-recursion-detection': 3.667.0 @@ -8077,7 +8096,7 @@ snapshots: '@aws-sdk/types': 3.667.0 '@aws-sdk/util-endpoints': 3.667.0 '@aws-sdk/util-user-agent-browser': 3.675.0 - '@aws-sdk/util-user-agent-node': 3.678.0(aws-crt@1.23.0) + '@aws-sdk/util-user-agent-node': 3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) '@smithy/config-resolver': 3.0.10 '@smithy/core': 2.5.1 '@smithy/fetch-http-handler': 3.2.9 @@ -8108,14 +8127,14 @@ snapshots: transitivePeerDependencies: - aws-crt - '@aws-sdk/client-iot-data-plane@3.678.0(aws-crt@1.23.0)': + '@aws-sdk/client-iot-data-plane@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2))': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/client-sso-oidc': 3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0))(aws-crt@1.23.0) - '@aws-sdk/client-sts': 3.678.0(aws-crt@1.23.0) + '@aws-sdk/client-sso-oidc': 3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) + '@aws-sdk/client-sts': 3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) '@aws-sdk/core': 3.678.0 - '@aws-sdk/credential-provider-node': 3.678.0(@aws-sdk/client-sso-oidc@3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0))(aws-crt@1.23.0))(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0))(aws-crt@1.23.0) + '@aws-sdk/credential-provider-node': 3.678.0(@aws-sdk/client-sso-oidc@3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) '@aws-sdk/middleware-host-header': 3.667.0 '@aws-sdk/middleware-logger': 3.667.0 '@aws-sdk/middleware-recursion-detection': 3.667.0 @@ -8124,7 +8143,7 @@ snapshots: '@aws-sdk/types': 3.667.0 '@aws-sdk/util-endpoints': 3.667.0 '@aws-sdk/util-user-agent-browser': 3.675.0 - '@aws-sdk/util-user-agent-node': 3.678.0(aws-crt@1.23.0) + '@aws-sdk/util-user-agent-node': 3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) '@smithy/config-resolver': 3.0.10 '@smithy/core': 2.5.1 '@smithy/fetch-http-handler': 3.2.9 @@ -8155,14 +8174,14 @@ snapshots: transitivePeerDependencies: - aws-crt - '@aws-sdk/client-iot@3.678.0(aws-crt@1.23.0)': + '@aws-sdk/client-iot@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2))': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/client-sso-oidc': 3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0))(aws-crt@1.23.0) - '@aws-sdk/client-sts': 3.678.0(aws-crt@1.23.0) + '@aws-sdk/client-sso-oidc': 3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) + '@aws-sdk/client-sts': 3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) '@aws-sdk/core': 3.678.0 - '@aws-sdk/credential-provider-node': 3.678.0(@aws-sdk/client-sso-oidc@3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0))(aws-crt@1.23.0))(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0))(aws-crt@1.23.0) + '@aws-sdk/credential-provider-node': 3.678.0(@aws-sdk/client-sso-oidc@3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) '@aws-sdk/middleware-host-header': 3.667.0 '@aws-sdk/middleware-logger': 3.667.0 '@aws-sdk/middleware-recursion-detection': 3.667.0 @@ -8171,7 +8190,7 @@ snapshots: '@aws-sdk/types': 3.667.0 '@aws-sdk/util-endpoints': 3.667.0 '@aws-sdk/util-user-agent-browser': 3.675.0 - '@aws-sdk/util-user-agent-node': 3.678.0(aws-crt@1.23.0) + '@aws-sdk/util-user-agent-node': 3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) '@smithy/config-resolver': 3.0.10 '@smithy/core': 2.5.1 '@smithy/fetch-http-handler': 3.2.9 @@ -8203,14 +8222,14 @@ snapshots: transitivePeerDependencies: - aws-crt - '@aws-sdk/client-lambda@3.678.0(aws-crt@1.23.0)': + '@aws-sdk/client-lambda@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2))': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/client-sso-oidc': 3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0))(aws-crt@1.23.0) - '@aws-sdk/client-sts': 3.678.0(aws-crt@1.23.0) + '@aws-sdk/client-sso-oidc': 3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) + '@aws-sdk/client-sts': 3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) '@aws-sdk/core': 3.678.0 - '@aws-sdk/credential-provider-node': 3.678.0(@aws-sdk/client-sso-oidc@3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0))(aws-crt@1.23.0))(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0))(aws-crt@1.23.0) + '@aws-sdk/credential-provider-node': 3.678.0(@aws-sdk/client-sso-oidc@3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) '@aws-sdk/middleware-host-header': 3.667.0 '@aws-sdk/middleware-logger': 3.667.0 '@aws-sdk/middleware-recursion-detection': 3.667.0 @@ -8219,7 +8238,7 @@ snapshots: '@aws-sdk/types': 3.667.0 '@aws-sdk/util-endpoints': 3.667.0 '@aws-sdk/util-user-agent-browser': 3.675.0 - '@aws-sdk/util-user-agent-node': 3.678.0(aws-crt@1.23.0) + '@aws-sdk/util-user-agent-node': 3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) '@smithy/config-resolver': 3.0.10 '@smithy/core': 2.5.1 '@smithy/eventstream-serde-browser': 3.0.11 @@ -8254,12 +8273,12 @@ snapshots: transitivePeerDependencies: - aws-crt - '@aws-sdk/client-lambda@3.984.0(aws-crt@1.23.0)': + '@aws-sdk/client-lambda@3.984.0(aws-crt@1.23.0(supports-color@10.2.2))': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 '@aws-sdk/core': 3.973.25 - '@aws-sdk/credential-provider-node': 3.972.27(aws-crt@1.23.0) + '@aws-sdk/credential-provider-node': 3.972.27(aws-crt@1.23.0(supports-color@10.2.2)) '@aws-sdk/middleware-host-header': 3.972.8 '@aws-sdk/middleware-logger': 3.972.8 '@aws-sdk/middleware-recursion-detection': 3.972.9 @@ -8268,7 +8287,7 @@ snapshots: '@aws-sdk/types': 3.973.6 '@aws-sdk/util-endpoints': 3.984.0 '@aws-sdk/util-user-agent-browser': 3.972.8 - '@aws-sdk/util-user-agent-node': 3.973.12(aws-crt@1.23.0) + '@aws-sdk/util-user-agent-node': 3.973.12(aws-crt@1.23.0(supports-color@10.2.2)) '@smithy/config-resolver': 4.4.13 '@smithy/core': 3.23.12 '@smithy/eventstream-serde-browser': 4.2.8 @@ -8303,14 +8322,14 @@ snapshots: transitivePeerDependencies: - aws-crt - '@aws-sdk/client-rds-data@3.678.0(aws-crt@1.23.0)': + '@aws-sdk/client-rds-data@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2))': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/client-sso-oidc': 3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0))(aws-crt@1.23.0) - '@aws-sdk/client-sts': 3.678.0(aws-crt@1.23.0) + '@aws-sdk/client-sso-oidc': 3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) + '@aws-sdk/client-sts': 3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) '@aws-sdk/core': 3.678.0 - '@aws-sdk/credential-provider-node': 3.678.0(@aws-sdk/client-sso-oidc@3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0))(aws-crt@1.23.0))(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0))(aws-crt@1.23.0) + '@aws-sdk/credential-provider-node': 3.678.0(@aws-sdk/client-sso-oidc@3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) '@aws-sdk/middleware-host-header': 3.667.0 '@aws-sdk/middleware-logger': 3.667.0 '@aws-sdk/middleware-recursion-detection': 3.667.0 @@ -8319,7 +8338,7 @@ snapshots: '@aws-sdk/types': 3.667.0 '@aws-sdk/util-endpoints': 3.667.0 '@aws-sdk/util-user-agent-browser': 3.675.0 - '@aws-sdk/util-user-agent-node': 3.678.0(aws-crt@1.23.0) + '@aws-sdk/util-user-agent-node': 3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) '@smithy/config-resolver': 3.0.10 '@smithy/core': 2.5.1 '@smithy/fetch-http-handler': 3.2.9 @@ -8349,13 +8368,13 @@ snapshots: transitivePeerDependencies: - aws-crt - '@aws-sdk/client-s3@3.974.0(aws-crt@1.23.0)': + '@aws-sdk/client-s3@3.974.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2))': dependencies: '@aws-crypto/sha1-browser': 5.2.0 '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 '@aws-sdk/core': 3.973.0 - '@aws-sdk/credential-provider-node': 3.972.1(aws-crt@1.23.0) + '@aws-sdk/credential-provider-node': 3.972.1(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) '@aws-sdk/middleware-bucket-endpoint': 3.972.1 '@aws-sdk/middleware-expect-continue': 3.972.1 '@aws-sdk/middleware-flexible-checksums': 3.972.1 @@ -8371,7 +8390,7 @@ snapshots: '@aws-sdk/types': 3.973.0 '@aws-sdk/util-endpoints': 3.972.0 '@aws-sdk/util-user-agent-browser': 3.972.1 - '@aws-sdk/util-user-agent-node': 3.972.1(aws-crt@1.23.0) + '@aws-sdk/util-user-agent-node': 3.972.1(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) '@smithy/config-resolver': 4.4.6 '@smithy/core': 3.21.1 '@smithy/eventstream-serde-browser': 4.2.8 @@ -8409,13 +8428,13 @@ snapshots: transitivePeerDependencies: - aws-crt - '@aws-sdk/client-s3@3.984.0(aws-crt@1.23.0)': + '@aws-sdk/client-s3@3.984.0(aws-crt@1.23.0(supports-color@10.2.2))': dependencies: '@aws-crypto/sha1-browser': 5.2.0 '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 '@aws-sdk/core': 3.973.25 - '@aws-sdk/credential-provider-node': 3.972.27(aws-crt@1.23.0) + '@aws-sdk/credential-provider-node': 3.972.27(aws-crt@1.23.0(supports-color@10.2.2)) '@aws-sdk/middleware-bucket-endpoint': 3.972.8 '@aws-sdk/middleware-expect-continue': 3.972.8 '@aws-sdk/middleware-flexible-checksums': 3.974.5 @@ -8431,7 +8450,7 @@ snapshots: '@aws-sdk/types': 3.973.6 '@aws-sdk/util-endpoints': 3.984.0 '@aws-sdk/util-user-agent-browser': 3.972.8 - '@aws-sdk/util-user-agent-node': 3.973.12(aws-crt@1.23.0) + '@aws-sdk/util-user-agent-node': 3.973.12(aws-crt@1.23.0(supports-color@10.2.2)) '@smithy/config-resolver': 4.4.13 '@smithy/core': 3.23.12 '@smithy/eventstream-serde-browser': 4.2.8 @@ -8469,12 +8488,12 @@ snapshots: transitivePeerDependencies: - aws-crt - '@aws-sdk/client-sqs@3.984.0(aws-crt@1.23.0)': + '@aws-sdk/client-sqs@3.984.0(aws-crt@1.23.0(supports-color@10.2.2))': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 '@aws-sdk/core': 3.973.25 - '@aws-sdk/credential-provider-node': 3.972.27(aws-crt@1.23.0) + '@aws-sdk/credential-provider-node': 3.972.27(aws-crt@1.23.0(supports-color@10.2.2)) '@aws-sdk/middleware-host-header': 3.972.8 '@aws-sdk/middleware-logger': 3.972.8 '@aws-sdk/middleware-recursion-detection': 3.972.9 @@ -8484,7 +8503,7 @@ snapshots: '@aws-sdk/types': 3.973.6 '@aws-sdk/util-endpoints': 3.984.0 '@aws-sdk/util-user-agent-browser': 3.972.8 - '@aws-sdk/util-user-agent-node': 3.973.12(aws-crt@1.23.0) + '@aws-sdk/util-user-agent-node': 3.973.12(aws-crt@1.23.0(supports-color@10.2.2)) '@smithy/config-resolver': 4.4.13 '@smithy/core': 3.23.12 '@smithy/fetch-http-handler': 5.3.15 @@ -8515,14 +8534,14 @@ snapshots: transitivePeerDependencies: - aws-crt - '@aws-sdk/client-ssm@3.678.0(aws-crt@1.23.0)': + '@aws-sdk/client-ssm@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2))': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/client-sso-oidc': 3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0))(aws-crt@1.23.0) - '@aws-sdk/client-sts': 3.678.0(aws-crt@1.23.0) + '@aws-sdk/client-sso-oidc': 3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) + '@aws-sdk/client-sts': 3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) '@aws-sdk/core': 3.678.0 - '@aws-sdk/credential-provider-node': 3.678.0(@aws-sdk/client-sso-oidc@3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0))(aws-crt@1.23.0))(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0))(aws-crt@1.23.0) + '@aws-sdk/credential-provider-node': 3.678.0(@aws-sdk/client-sso-oidc@3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) '@aws-sdk/middleware-host-header': 3.667.0 '@aws-sdk/middleware-logger': 3.667.0 '@aws-sdk/middleware-recursion-detection': 3.667.0 @@ -8531,7 +8550,7 @@ snapshots: '@aws-sdk/types': 3.667.0 '@aws-sdk/util-endpoints': 3.667.0 '@aws-sdk/util-user-agent-browser': 3.675.0 - '@aws-sdk/util-user-agent-node': 3.678.0(aws-crt@1.23.0) + '@aws-sdk/util-user-agent-node': 3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) '@smithy/config-resolver': 3.0.10 '@smithy/core': 2.5.1 '@smithy/fetch-http-handler': 3.2.9 @@ -8564,13 +8583,13 @@ snapshots: transitivePeerDependencies: - aws-crt - '@aws-sdk/client-sso-oidc@3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0))(aws-crt@1.23.0)': + '@aws-sdk/client-sso-oidc@3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2))': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/client-sts': 3.678.0(aws-crt@1.23.0) + '@aws-sdk/client-sts': 3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) '@aws-sdk/core': 3.678.0 - '@aws-sdk/credential-provider-node': 3.678.0(@aws-sdk/client-sso-oidc@3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0))(aws-crt@1.23.0))(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0))(aws-crt@1.23.0) + '@aws-sdk/credential-provider-node': 3.678.0(@aws-sdk/client-sso-oidc@3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) '@aws-sdk/middleware-host-header': 3.667.0 '@aws-sdk/middleware-logger': 3.667.0 '@aws-sdk/middleware-recursion-detection': 3.667.0 @@ -8579,7 +8598,7 @@ snapshots: '@aws-sdk/types': 3.667.0 '@aws-sdk/util-endpoints': 3.667.0 '@aws-sdk/util-user-agent-browser': 3.675.0 - '@aws-sdk/util-user-agent-node': 3.678.0(aws-crt@1.23.0) + '@aws-sdk/util-user-agent-node': 3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) '@smithy/config-resolver': 3.0.10 '@smithy/core': 2.5.1 '@smithy/fetch-http-handler': 3.2.9 @@ -8605,11 +8624,11 @@ snapshots: '@smithy/util-middleware': 3.0.8 '@smithy/util-retry': 3.0.8 '@smithy/util-utf8': 3.0.0 - tslib: 2.8.0 + tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-sso@3.678.0(aws-crt@1.23.0)': + '@aws-sdk/client-sso@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2))': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 @@ -8622,7 +8641,7 @@ snapshots: '@aws-sdk/types': 3.667.0 '@aws-sdk/util-endpoints': 3.667.0 '@aws-sdk/util-user-agent-browser': 3.675.0 - '@aws-sdk/util-user-agent-node': 3.678.0(aws-crt@1.23.0) + '@aws-sdk/util-user-agent-node': 3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) '@smithy/config-resolver': 3.0.10 '@smithy/core': 2.5.1 '@smithy/fetch-http-handler': 3.2.9 @@ -8652,7 +8671,7 @@ snapshots: transitivePeerDependencies: - aws-crt - '@aws-sdk/client-sso@3.974.0(aws-crt@1.23.0)': + '@aws-sdk/client-sso@3.974.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2))': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 @@ -8665,7 +8684,7 @@ snapshots: '@aws-sdk/types': 3.973.0 '@aws-sdk/util-endpoints': 3.972.0 '@aws-sdk/util-user-agent-browser': 3.972.1 - '@aws-sdk/util-user-agent-node': 3.972.1(aws-crt@1.23.0) + '@aws-sdk/util-user-agent-node': 3.972.1(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) '@smithy/config-resolver': 4.4.6 '@smithy/core': 3.21.1 '@smithy/fetch-http-handler': 5.3.9 @@ -8695,13 +8714,13 @@ snapshots: transitivePeerDependencies: - aws-crt - '@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0)': + '@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2))': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/client-sso-oidc': 3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0))(aws-crt@1.23.0) + '@aws-sdk/client-sso-oidc': 3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) '@aws-sdk/core': 3.678.0 - '@aws-sdk/credential-provider-node': 3.678.0(@aws-sdk/client-sso-oidc@3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0))(aws-crt@1.23.0))(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0))(aws-crt@1.23.0) + '@aws-sdk/credential-provider-node': 3.678.0(@aws-sdk/client-sso-oidc@3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) '@aws-sdk/middleware-host-header': 3.667.0 '@aws-sdk/middleware-logger': 3.667.0 '@aws-sdk/middleware-recursion-detection': 3.667.0 @@ -8710,7 +8729,7 @@ snapshots: '@aws-sdk/types': 3.667.0 '@aws-sdk/util-endpoints': 3.667.0 '@aws-sdk/util-user-agent-browser': 3.675.0 - '@aws-sdk/util-user-agent-node': 3.678.0(aws-crt@1.23.0) + '@aws-sdk/util-user-agent-node': 3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) '@smithy/config-resolver': 3.0.10 '@smithy/core': 2.5.1 '@smithy/fetch-http-handler': 3.2.9 @@ -8736,7 +8755,7 @@ snapshots: '@smithy/util-middleware': 3.0.8 '@smithy/util-retry': 3.0.8 '@smithy/util-utf8': 3.0.0 - tslib: 2.8.0 + tslib: 2.8.1 transitivePeerDependencies: - aws-crt @@ -8757,7 +8776,7 @@ snapshots: '@smithy/types': 3.6.0 '@smithy/util-middleware': 3.0.8 fast-xml-parser: 4.4.1 - tslib: 2.8.0 + tslib: 2.8.1 '@aws-sdk/core@3.972.0': dependencies: @@ -8817,9 +8836,9 @@ snapshots: '@smithy/types': 4.13.1 tslib: 2.8.1 - '@aws-sdk/credential-provider-cognito-identity@3.678.0(aws-crt@1.23.0)': + '@aws-sdk/credential-provider-cognito-identity@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2))': dependencies: - '@aws-sdk/client-cognito-identity': 3.678.0(aws-crt@1.23.0) + '@aws-sdk/client-cognito-identity': 3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) '@aws-sdk/types': 3.667.0 '@smithy/property-provider': 3.1.8 '@smithy/types': 3.6.0 @@ -8890,15 +8909,15 @@ snapshots: '@smithy/util-stream': 4.5.20 tslib: 2.8.1 - '@aws-sdk/credential-provider-ini@3.678.0(@aws-sdk/client-sso-oidc@3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0))(aws-crt@1.23.0))(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0))(aws-crt@1.23.0)': + '@aws-sdk/credential-provider-ini@3.678.0(@aws-sdk/client-sso-oidc@3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2))': dependencies: - '@aws-sdk/client-sts': 3.678.0(aws-crt@1.23.0) + '@aws-sdk/client-sts': 3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) '@aws-sdk/core': 3.678.0 '@aws-sdk/credential-provider-env': 3.678.0 '@aws-sdk/credential-provider-http': 3.678.0 '@aws-sdk/credential-provider-process': 3.678.0 - '@aws-sdk/credential-provider-sso': 3.678.0(@aws-sdk/client-sso-oidc@3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0))(aws-crt@1.23.0))(aws-crt@1.23.0) - '@aws-sdk/credential-provider-web-identity': 3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0)) + '@aws-sdk/credential-provider-sso': 3.678.0(@aws-sdk/client-sso-oidc@3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) + '@aws-sdk/credential-provider-web-identity': 3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2))) '@aws-sdk/types': 3.667.0 '@smithy/credential-provider-imds': 3.2.5 '@smithy/property-provider': 3.1.8 @@ -8909,16 +8928,16 @@ snapshots: - '@aws-sdk/client-sso-oidc' - aws-crt - '@aws-sdk/credential-provider-ini@3.972.1(aws-crt@1.23.0)': + '@aws-sdk/credential-provider-ini@3.972.1(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2))': dependencies: '@aws-sdk/core': 3.973.0 '@aws-sdk/credential-provider-env': 3.972.1 '@aws-sdk/credential-provider-http': 3.972.1 - '@aws-sdk/credential-provider-login': 3.972.1(aws-crt@1.23.0) + '@aws-sdk/credential-provider-login': 3.972.1(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) '@aws-sdk/credential-provider-process': 3.972.1 - '@aws-sdk/credential-provider-sso': 3.972.1(aws-crt@1.23.0) - '@aws-sdk/credential-provider-web-identity': 3.972.1(aws-crt@1.23.0) - '@aws-sdk/nested-clients': 3.974.0(aws-crt@1.23.0) + '@aws-sdk/credential-provider-sso': 3.972.1(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) + '@aws-sdk/credential-provider-web-identity': 3.972.1(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) + '@aws-sdk/nested-clients': 3.974.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) '@aws-sdk/types': 3.973.0 '@smithy/credential-provider-imds': 4.2.8 '@smithy/property-provider': 4.2.8 @@ -8928,16 +8947,16 @@ snapshots: transitivePeerDependencies: - aws-crt - '@aws-sdk/credential-provider-ini@3.972.26(aws-crt@1.23.0)': + '@aws-sdk/credential-provider-ini@3.972.26(aws-crt@1.23.0(supports-color@10.2.2))': dependencies: '@aws-sdk/core': 3.973.25 '@aws-sdk/credential-provider-env': 3.972.23 '@aws-sdk/credential-provider-http': 3.972.25 - '@aws-sdk/credential-provider-login': 3.972.26(aws-crt@1.23.0) + '@aws-sdk/credential-provider-login': 3.972.26(aws-crt@1.23.0(supports-color@10.2.2)) '@aws-sdk/credential-provider-process': 3.972.23 - '@aws-sdk/credential-provider-sso': 3.972.26(aws-crt@1.23.0) - '@aws-sdk/credential-provider-web-identity': 3.972.26(aws-crt@1.23.0) - '@aws-sdk/nested-clients': 3.996.16(aws-crt@1.23.0) + '@aws-sdk/credential-provider-sso': 3.972.26(aws-crt@1.23.0(supports-color@10.2.2)) + '@aws-sdk/credential-provider-web-identity': 3.972.26(aws-crt@1.23.0(supports-color@10.2.2)) + '@aws-sdk/nested-clients': 3.996.16(aws-crt@1.23.0(supports-color@10.2.2)) '@aws-sdk/types': 3.973.6 '@smithy/credential-provider-imds': 4.2.12 '@smithy/property-provider': 4.2.12 @@ -8947,10 +8966,10 @@ snapshots: transitivePeerDependencies: - aws-crt - '@aws-sdk/credential-provider-login@3.972.1(aws-crt@1.23.0)': + '@aws-sdk/credential-provider-login@3.972.1(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2))': dependencies: '@aws-sdk/core': 3.973.0 - '@aws-sdk/nested-clients': 3.974.0(aws-crt@1.23.0) + '@aws-sdk/nested-clients': 3.974.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) '@aws-sdk/types': 3.973.0 '@smithy/property-provider': 4.2.8 '@smithy/protocol-http': 5.3.8 @@ -8960,10 +8979,10 @@ snapshots: transitivePeerDependencies: - aws-crt - '@aws-sdk/credential-provider-login@3.972.26(aws-crt@1.23.0)': + '@aws-sdk/credential-provider-login@3.972.26(aws-crt@1.23.0(supports-color@10.2.2))': dependencies: '@aws-sdk/core': 3.973.25 - '@aws-sdk/nested-clients': 3.996.16(aws-crt@1.23.0) + '@aws-sdk/nested-clients': 3.996.16(aws-crt@1.23.0(supports-color@10.2.2)) '@aws-sdk/types': 3.973.6 '@smithy/property-provider': 4.2.12 '@smithy/protocol-http': 5.3.12 @@ -8973,33 +8992,33 @@ snapshots: transitivePeerDependencies: - aws-crt - '@aws-sdk/credential-provider-node@3.678.0(@aws-sdk/client-sso-oidc@3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0))(aws-crt@1.23.0))(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0))(aws-crt@1.23.0)': + '@aws-sdk/credential-provider-node@3.678.0(@aws-sdk/client-sso-oidc@3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2))': dependencies: '@aws-sdk/credential-provider-env': 3.678.0 '@aws-sdk/credential-provider-http': 3.678.0 - '@aws-sdk/credential-provider-ini': 3.678.0(@aws-sdk/client-sso-oidc@3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0))(aws-crt@1.23.0))(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0))(aws-crt@1.23.0) + '@aws-sdk/credential-provider-ini': 3.678.0(@aws-sdk/client-sso-oidc@3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) '@aws-sdk/credential-provider-process': 3.678.0 - '@aws-sdk/credential-provider-sso': 3.678.0(@aws-sdk/client-sso-oidc@3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0))(aws-crt@1.23.0))(aws-crt@1.23.0) - '@aws-sdk/credential-provider-web-identity': 3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0)) + '@aws-sdk/credential-provider-sso': 3.678.0(@aws-sdk/client-sso-oidc@3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) + '@aws-sdk/credential-provider-web-identity': 3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2))) '@aws-sdk/types': 3.667.0 '@smithy/credential-provider-imds': 3.2.5 '@smithy/property-provider': 3.1.8 '@smithy/shared-ini-file-loader': 3.1.9 '@smithy/types': 3.6.0 - tslib: 2.8.0 + tslib: 2.8.1 transitivePeerDependencies: - '@aws-sdk/client-sso-oidc' - '@aws-sdk/client-sts' - aws-crt - '@aws-sdk/credential-provider-node@3.972.1(aws-crt@1.23.0)': + '@aws-sdk/credential-provider-node@3.972.1(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2))': dependencies: '@aws-sdk/credential-provider-env': 3.972.1 '@aws-sdk/credential-provider-http': 3.972.1 - '@aws-sdk/credential-provider-ini': 3.972.1(aws-crt@1.23.0) + '@aws-sdk/credential-provider-ini': 3.972.1(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) '@aws-sdk/credential-provider-process': 3.972.1 - '@aws-sdk/credential-provider-sso': 3.972.1(aws-crt@1.23.0) - '@aws-sdk/credential-provider-web-identity': 3.972.1(aws-crt@1.23.0) + '@aws-sdk/credential-provider-sso': 3.972.1(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) + '@aws-sdk/credential-provider-web-identity': 3.972.1(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) '@aws-sdk/types': 3.973.0 '@smithy/credential-provider-imds': 4.2.8 '@smithy/property-provider': 4.2.8 @@ -9009,14 +9028,14 @@ snapshots: transitivePeerDependencies: - aws-crt - '@aws-sdk/credential-provider-node@3.972.27(aws-crt@1.23.0)': + '@aws-sdk/credential-provider-node@3.972.27(aws-crt@1.23.0(supports-color@10.2.2))': dependencies: '@aws-sdk/credential-provider-env': 3.972.23 '@aws-sdk/credential-provider-http': 3.972.25 - '@aws-sdk/credential-provider-ini': 3.972.26(aws-crt@1.23.0) + '@aws-sdk/credential-provider-ini': 3.972.26(aws-crt@1.23.0(supports-color@10.2.2)) '@aws-sdk/credential-provider-process': 3.972.23 - '@aws-sdk/credential-provider-sso': 3.972.26(aws-crt@1.23.0) - '@aws-sdk/credential-provider-web-identity': 3.972.26(aws-crt@1.23.0) + '@aws-sdk/credential-provider-sso': 3.972.26(aws-crt@1.23.0(supports-color@10.2.2)) + '@aws-sdk/credential-provider-web-identity': 3.972.26(aws-crt@1.23.0(supports-color@10.2.2)) '@aws-sdk/types': 3.973.6 '@smithy/credential-provider-imds': 4.2.12 '@smithy/property-provider': 4.2.12 @@ -9053,11 +9072,11 @@ snapshots: '@smithy/types': 4.13.1 tslib: 2.8.1 - '@aws-sdk/credential-provider-sso@3.678.0(@aws-sdk/client-sso-oidc@3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0))(aws-crt@1.23.0))(aws-crt@1.23.0)': + '@aws-sdk/credential-provider-sso@3.678.0(@aws-sdk/client-sso-oidc@3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2))': dependencies: - '@aws-sdk/client-sso': 3.678.0(aws-crt@1.23.0) + '@aws-sdk/client-sso': 3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) '@aws-sdk/core': 3.678.0 - '@aws-sdk/token-providers': 3.667.0(@aws-sdk/client-sso-oidc@3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0))(aws-crt@1.23.0)) + '@aws-sdk/token-providers': 3.667.0(@aws-sdk/client-sso-oidc@3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2))) '@aws-sdk/types': 3.667.0 '@smithy/property-provider': 3.1.8 '@smithy/shared-ini-file-loader': 3.1.9 @@ -9067,11 +9086,11 @@ snapshots: - '@aws-sdk/client-sso-oidc' - aws-crt - '@aws-sdk/credential-provider-sso@3.972.1(aws-crt@1.23.0)': + '@aws-sdk/credential-provider-sso@3.972.1(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2))': dependencies: - '@aws-sdk/client-sso': 3.974.0(aws-crt@1.23.0) + '@aws-sdk/client-sso': 3.974.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) '@aws-sdk/core': 3.973.0 - '@aws-sdk/token-providers': 3.974.0(aws-crt@1.23.0) + '@aws-sdk/token-providers': 3.974.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) '@aws-sdk/types': 3.973.0 '@smithy/property-provider': 4.2.8 '@smithy/shared-ini-file-loader': 4.4.3 @@ -9080,11 +9099,11 @@ snapshots: transitivePeerDependencies: - aws-crt - '@aws-sdk/credential-provider-sso@3.972.26(aws-crt@1.23.0)': + '@aws-sdk/credential-provider-sso@3.972.26(aws-crt@1.23.0(supports-color@10.2.2))': dependencies: '@aws-sdk/core': 3.973.25 - '@aws-sdk/nested-clients': 3.996.16(aws-crt@1.23.0) - '@aws-sdk/token-providers': 3.1019.0(aws-crt@1.23.0) + '@aws-sdk/nested-clients': 3.996.16(aws-crt@1.23.0(supports-color@10.2.2)) + '@aws-sdk/token-providers': 3.1019.0(aws-crt@1.23.0(supports-color@10.2.2)) '@aws-sdk/types': 3.973.6 '@smithy/property-provider': 4.2.12 '@smithy/shared-ini-file-loader': 4.4.7 @@ -9093,19 +9112,19 @@ snapshots: transitivePeerDependencies: - aws-crt - '@aws-sdk/credential-provider-web-identity@3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0))': + '@aws-sdk/credential-provider-web-identity@3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))': dependencies: - '@aws-sdk/client-sts': 3.678.0(aws-crt@1.23.0) + '@aws-sdk/client-sts': 3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) '@aws-sdk/core': 3.678.0 '@aws-sdk/types': 3.667.0 '@smithy/property-provider': 3.1.8 '@smithy/types': 3.6.0 tslib: 2.8.1 - '@aws-sdk/credential-provider-web-identity@3.972.1(aws-crt@1.23.0)': + '@aws-sdk/credential-provider-web-identity@3.972.1(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2))': dependencies: '@aws-sdk/core': 3.973.0 - '@aws-sdk/nested-clients': 3.974.0(aws-crt@1.23.0) + '@aws-sdk/nested-clients': 3.974.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) '@aws-sdk/types': 3.973.0 '@smithy/property-provider': 4.2.8 '@smithy/shared-ini-file-loader': 4.4.3 @@ -9114,10 +9133,10 @@ snapshots: transitivePeerDependencies: - aws-crt - '@aws-sdk/credential-provider-web-identity@3.972.26(aws-crt@1.23.0)': + '@aws-sdk/credential-provider-web-identity@3.972.26(aws-crt@1.23.0(supports-color@10.2.2))': dependencies: '@aws-sdk/core': 3.973.25 - '@aws-sdk/nested-clients': 3.996.16(aws-crt@1.23.0) + '@aws-sdk/nested-clients': 3.996.16(aws-crt@1.23.0(supports-color@10.2.2)) '@aws-sdk/types': 3.973.6 '@smithy/property-provider': 4.2.12 '@smithy/shared-ini-file-loader': 4.4.7 @@ -9126,20 +9145,20 @@ snapshots: transitivePeerDependencies: - aws-crt - '@aws-sdk/credential-providers@3.678.0(@aws-sdk/client-sso-oidc@3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0))(aws-crt@1.23.0))(aws-crt@1.23.0)': + '@aws-sdk/credential-providers@3.678.0(@aws-sdk/client-sso-oidc@3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2))': dependencies: - '@aws-sdk/client-cognito-identity': 3.678.0(aws-crt@1.23.0) - '@aws-sdk/client-sso': 3.678.0(aws-crt@1.23.0) - '@aws-sdk/client-sts': 3.678.0(aws-crt@1.23.0) + '@aws-sdk/client-cognito-identity': 3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) + '@aws-sdk/client-sso': 3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) + '@aws-sdk/client-sts': 3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) '@aws-sdk/core': 3.678.0 - '@aws-sdk/credential-provider-cognito-identity': 3.678.0(aws-crt@1.23.0) + '@aws-sdk/credential-provider-cognito-identity': 3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) '@aws-sdk/credential-provider-env': 3.678.0 '@aws-sdk/credential-provider-http': 3.678.0 - '@aws-sdk/credential-provider-ini': 3.678.0(@aws-sdk/client-sso-oidc@3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0))(aws-crt@1.23.0))(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0))(aws-crt@1.23.0) - '@aws-sdk/credential-provider-node': 3.678.0(@aws-sdk/client-sso-oidc@3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0))(aws-crt@1.23.0))(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0))(aws-crt@1.23.0) + '@aws-sdk/credential-provider-ini': 3.678.0(@aws-sdk/client-sso-oidc@3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) + '@aws-sdk/credential-provider-node': 3.678.0(@aws-sdk/client-sso-oidc@3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) '@aws-sdk/credential-provider-process': 3.678.0 - '@aws-sdk/credential-provider-sso': 3.678.0(@aws-sdk/client-sso-oidc@3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0))(aws-crt@1.23.0))(aws-crt@1.23.0) - '@aws-sdk/credential-provider-web-identity': 3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0)) + '@aws-sdk/credential-provider-sso': 3.678.0(@aws-sdk/client-sso-oidc@3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) + '@aws-sdk/credential-provider-web-identity': 3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2))) '@aws-sdk/types': 3.667.0 '@smithy/credential-provider-imds': 3.2.5 '@smithy/property-provider': 3.1.8 @@ -9245,7 +9264,7 @@ snapshots: '@aws-sdk/types': 3.667.0 '@smithy/protocol-http': 4.1.5 '@smithy/types': 3.6.0 - tslib: 2.8.0 + tslib: 2.8.1 '@aws-sdk/middleware-host-header@3.972.1': dependencies: @@ -9277,7 +9296,7 @@ snapshots: dependencies: '@aws-sdk/types': 3.667.0 '@smithy/types': 3.6.0 - tslib: 2.8.0 + tslib: 2.8.1 '@aws-sdk/middleware-logger@3.972.1': dependencies: @@ -9296,7 +9315,7 @@ snapshots: '@aws-sdk/types': 3.667.0 '@smithy/protocol-http': 4.1.5 '@smithy/types': 3.6.0 - tslib: 2.8.0 + tslib: 2.8.1 '@aws-sdk/middleware-recursion-detection@3.972.1': dependencies: @@ -9427,7 +9446,7 @@ snapshots: '@smithy/core': 2.5.1 '@smithy/protocol-http': 4.1.5 '@smithy/types': 3.6.0 - tslib: 2.8.0 + tslib: 2.8.1 '@aws-sdk/middleware-user-agent@3.972.1': dependencies: @@ -9450,7 +9469,7 @@ snapshots: '@smithy/util-retry': 4.2.12 tslib: 2.8.1 - '@aws-sdk/nested-clients@3.974.0(aws-crt@1.23.0)': + '@aws-sdk/nested-clients@3.974.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2))': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 @@ -9463,7 +9482,7 @@ snapshots: '@aws-sdk/types': 3.973.0 '@aws-sdk/util-endpoints': 3.972.0 '@aws-sdk/util-user-agent-browser': 3.972.1 - '@aws-sdk/util-user-agent-node': 3.972.1(aws-crt@1.23.0) + '@aws-sdk/util-user-agent-node': 3.972.1(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) '@smithy/config-resolver': 4.4.6 '@smithy/core': 3.21.1 '@smithy/fetch-http-handler': 5.3.9 @@ -9493,7 +9512,7 @@ snapshots: transitivePeerDependencies: - aws-crt - '@aws-sdk/nested-clients@3.996.16(aws-crt@1.23.0)': + '@aws-sdk/nested-clients@3.996.16(aws-crt@1.23.0(supports-color@10.2.2))': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 @@ -9506,7 +9525,7 @@ snapshots: '@aws-sdk/types': 3.973.6 '@aws-sdk/util-endpoints': 3.996.5 '@aws-sdk/util-user-agent-browser': 3.972.8 - '@aws-sdk/util-user-agent-node': 3.973.12(aws-crt@1.23.0) + '@aws-sdk/util-user-agent-node': 3.973.12(aws-crt@1.23.0(supports-color@10.2.2)) '@smithy/config-resolver': 4.4.13 '@smithy/core': 3.23.12 '@smithy/fetch-http-handler': 5.3.15 @@ -9543,7 +9562,7 @@ snapshots: '@smithy/types': 3.6.0 '@smithy/util-config-provider': 3.0.0 '@smithy/util-middleware': 3.0.8 - tslib: 2.8.0 + tslib: 2.8.1 '@aws-sdk/region-config-resolver@3.972.1': dependencies: @@ -9561,16 +9580,16 @@ snapshots: '@smithy/types': 4.13.1 tslib: 2.8.1 - '@aws-sdk/signature-v4-crt@3.678.0': + '@aws-sdk/signature-v4-crt@3.678.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)': dependencies: '@aws-sdk/signature-v4-multi-region': 3.678.0 '@aws-sdk/types': 3.667.0 - '@aws-sdk/util-user-agent-node': 3.678.0(aws-crt@1.23.0) + '@aws-sdk/util-user-agent-node': 3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) '@smithy/querystring-parser': 3.0.8 '@smithy/signature-v4': 4.2.1 '@smithy/types': 3.6.0 '@smithy/util-middleware': 3.0.8 - aws-crt: 1.23.0 + aws-crt: 1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2) tslib: 2.8.0 transitivePeerDependencies: - bufferutil @@ -9610,10 +9629,10 @@ snapshots: '@smithy/smithy-client': 1.1.0 tslib: 2.8.0 - '@aws-sdk/token-providers@3.1019.0(aws-crt@1.23.0)': + '@aws-sdk/token-providers@3.1019.0(aws-crt@1.23.0(supports-color@10.2.2))': dependencies: '@aws-sdk/core': 3.973.25 - '@aws-sdk/nested-clients': 3.996.16(aws-crt@1.23.0) + '@aws-sdk/nested-clients': 3.996.16(aws-crt@1.23.0(supports-color@10.2.2)) '@aws-sdk/types': 3.973.6 '@smithy/property-provider': 4.2.12 '@smithy/shared-ini-file-loader': 4.4.7 @@ -9622,19 +9641,19 @@ snapshots: transitivePeerDependencies: - aws-crt - '@aws-sdk/token-providers@3.667.0(@aws-sdk/client-sso-oidc@3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0))(aws-crt@1.23.0))': + '@aws-sdk/token-providers@3.667.0(@aws-sdk/client-sso-oidc@3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))': dependencies: - '@aws-sdk/client-sso-oidc': 3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0))(aws-crt@1.23.0) + '@aws-sdk/client-sso-oidc': 3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) '@aws-sdk/types': 3.667.0 '@smithy/property-provider': 3.1.8 '@smithy/shared-ini-file-loader': 3.1.9 '@smithy/types': 3.6.0 tslib: 2.8.1 - '@aws-sdk/token-providers@3.974.0(aws-crt@1.23.0)': + '@aws-sdk/token-providers@3.974.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2))': dependencies: '@aws-sdk/core': 3.973.0 - '@aws-sdk/nested-clients': 3.974.0(aws-crt@1.23.0) + '@aws-sdk/nested-clients': 3.974.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) '@aws-sdk/types': 3.973.0 '@smithy/property-provider': 4.2.8 '@smithy/shared-ini-file-loader': 4.4.3 @@ -9651,7 +9670,7 @@ snapshots: '@aws-sdk/types@3.667.0': dependencies: '@smithy/types': 3.6.0 - tslib: 2.8.0 + tslib: 2.8.1 '@aws-sdk/types@3.972.0': dependencies: @@ -9689,7 +9708,7 @@ snapshots: '@aws-sdk/types': 3.667.0 '@smithy/types': 3.6.0 '@smithy/util-endpoints': 2.1.4 - tslib: 2.8.0 + tslib: 2.8.1 '@aws-sdk/util-endpoints@3.972.0': dependencies: @@ -9717,14 +9736,14 @@ snapshots: '@aws-sdk/util-locate-window@3.568.0': dependencies: - tslib: 2.8.0 + tslib: 2.8.1 '@aws-sdk/util-user-agent-browser@3.675.0': dependencies: '@aws-sdk/types': 3.667.0 '@smithy/types': 3.6.0 bowser: 2.11.0 - tslib: 2.8.0 + tslib: 2.8.1 '@aws-sdk/util-user-agent-browser@3.972.1': dependencies: @@ -9740,17 +9759,17 @@ snapshots: bowser: 2.11.0 tslib: 2.8.1 - '@aws-sdk/util-user-agent-node@3.678.0(aws-crt@1.23.0)': + '@aws-sdk/util-user-agent-node@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2))': dependencies: '@aws-sdk/middleware-user-agent': 3.678.0 '@aws-sdk/types': 3.667.0 '@smithy/node-config-provider': 3.1.9 '@smithy/types': 3.6.0 - tslib: 2.8.0 + tslib: 2.8.1 optionalDependencies: - aws-crt: 1.23.0 + aws-crt: 1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2) - '@aws-sdk/util-user-agent-node@3.972.1(aws-crt@1.23.0)': + '@aws-sdk/util-user-agent-node@3.972.1(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2))': dependencies: '@aws-sdk/middleware-user-agent': 3.972.1 '@aws-sdk/types': 3.973.0 @@ -9758,9 +9777,9 @@ snapshots: '@smithy/types': 4.12.0 tslib: 2.8.0 optionalDependencies: - aws-crt: 1.23.0 + aws-crt: 1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2) - '@aws-sdk/util-user-agent-node@3.973.12(aws-crt@1.23.0)': + '@aws-sdk/util-user-agent-node@3.973.12(aws-crt@1.23.0(supports-color@10.2.2))': dependencies: '@aws-sdk/middleware-user-agent': 3.972.26 '@aws-sdk/types': 3.973.6 @@ -9769,7 +9788,7 @@ snapshots: '@smithy/util-config-provider': 4.2.2 tslib: 2.8.1 optionalDependencies: - aws-crt: 1.23.0 + aws-crt: 1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2) '@aws-sdk/util-utf8-browser@3.259.0': dependencies: @@ -9802,20 +9821,20 @@ snapshots: '@babel/compat-data@7.25.9': {} - '@babel/core@7.25.9': + '@babel/core@7.25.9(supports-color@10.2.2)': dependencies: '@ampproject/remapping': 2.3.0 '@babel/code-frame': 7.25.9 '@babel/generator': 7.25.9 '@babel/helper-compilation-targets': 7.25.9 - '@babel/helper-module-transforms': 7.25.9(@babel/core@7.25.9) + '@babel/helper-module-transforms': 7.25.9(@babel/core@7.25.9(supports-color@10.2.2))(supports-color@10.2.2) '@babel/helpers': 7.25.9 '@babel/parser': 7.25.9 '@babel/template': 7.25.9 - '@babel/traverse': 7.25.9 + '@babel/traverse': 7.25.9(supports-color@10.2.2) '@babel/types': 7.25.9 convert-source-map: 2.0.0 - debug: 4.4.3 + debug: 4.4.3(supports-color@10.2.2) gensync: 1.0.0-beta.2 json5: 2.2.3 semver: 6.3.1 @@ -9837,28 +9856,28 @@ snapshots: lru-cache: 5.1.1 semver: 6.3.1 - '@babel/helper-module-imports@7.25.9': + '@babel/helper-module-imports@7.25.9(supports-color@10.2.2)': dependencies: - '@babel/traverse': 7.25.9 + '@babel/traverse': 7.25.9(supports-color@10.2.2) '@babel/types': 7.25.9 transitivePeerDependencies: - supports-color - '@babel/helper-module-transforms@7.25.9(@babel/core@7.25.9)': + '@babel/helper-module-transforms@7.25.9(@babel/core@7.25.9(supports-color@10.2.2))(supports-color@10.2.2)': dependencies: - '@babel/core': 7.25.9 - '@babel/helper-module-imports': 7.25.9 - '@babel/helper-simple-access': 7.25.9 + '@babel/core': 7.25.9(supports-color@10.2.2) + '@babel/helper-module-imports': 7.25.9(supports-color@10.2.2) + '@babel/helper-simple-access': 7.25.9(supports-color@10.2.2) '@babel/helper-validator-identifier': 7.25.9 - '@babel/traverse': 7.25.9 + '@babel/traverse': 7.25.9(supports-color@10.2.2) transitivePeerDependencies: - supports-color '@babel/helper-plugin-utils@7.25.9': {} - '@babel/helper-simple-access@7.25.9': + '@babel/helper-simple-access@7.25.9(supports-color@10.2.2)': dependencies: - '@babel/traverse': 7.25.9 + '@babel/traverse': 7.25.9(supports-color@10.2.2) '@babel/types': 7.25.9 transitivePeerDependencies: - supports-color @@ -9885,9 +9904,9 @@ snapshots: dependencies: '@babel/types': 7.25.9 - '@babel/plugin-syntax-typescript@7.25.9(@babel/core@7.25.9)': + '@babel/plugin-syntax-typescript@7.25.9(@babel/core@7.25.9(supports-color@10.2.2))': dependencies: - '@babel/core': 7.25.9 + '@babel/core': 7.25.9(supports-color@10.2.2) '@babel/helper-plugin-utils': 7.25.9 '@babel/runtime@7.25.9': @@ -9900,14 +9919,14 @@ snapshots: '@babel/parser': 7.25.9 '@babel/types': 7.25.9 - '@babel/traverse@7.25.9': + '@babel/traverse@7.25.9(supports-color@10.2.2)': dependencies: '@babel/code-frame': 7.25.9 '@babel/generator': 7.25.9 '@babel/parser': 7.25.9 '@babel/template': 7.25.9 '@babel/types': 7.25.9 - debug: 4.4.3 + debug: 4.4.3(supports-color@10.2.2) globals: 11.12.0 transitivePeerDependencies: - supports-color @@ -10056,49 +10075,26 @@ snapshots: '@cloudflare/containers@0.3.7': {} - '@cloudflare/kv-asset-handler@0.4.2': {} - '@cloudflare/kv-asset-handler@0.5.0': {} - '@cloudflare/unenv-preset@2.11.0(unenv@2.0.0-rc.24)(workerd@1.20260120.0)': - dependencies: - unenv: 2.0.0-rc.24 - optionalDependencies: - workerd: 1.20260120.0 - '@cloudflare/unenv-preset@2.16.1(unenv@2.0.0-rc.24)(workerd@1.20260710.1)': dependencies: unenv: 2.0.0-rc.24 optionalDependencies: workerd: 1.20260710.1 - '@cloudflare/workerd-darwin-64@1.20260120.0': - optional: true - '@cloudflare/workerd-darwin-64@1.20260710.1': optional: true - '@cloudflare/workerd-darwin-arm64@1.20260120.0': - optional: true - '@cloudflare/workerd-darwin-arm64@1.20260710.1': optional: true - '@cloudflare/workerd-linux-64@1.20260120.0': - optional: true - '@cloudflare/workerd-linux-64@1.20260710.1': optional: true - '@cloudflare/workerd-linux-arm64@1.20260120.0': - optional: true - '@cloudflare/workerd-linux-arm64@1.20260710.1': optional: true - '@cloudflare/workerd-windows-64@1.20260120.0': - optional: true - '@cloudflare/workerd-windows-64@1.20260710.1': optional: true @@ -10584,10 +10580,10 @@ snapshots: '@types/ws': 8.5.12 duplexify: 3.7.1 inherits: 2.0.4 - isomorphic-ws: 4.0.1(ws@8.18.0) + isomorphic-ws: 4.0.1(ws@8.21.0) readable-stream: 2.3.8 safe-buffer: 5.2.1 - ws: 8.18.0 + ws: 8.21.0 xtend: 4.0.2 transitivePeerDependencies: - bufferutil @@ -10750,12 +10746,12 @@ snapshots: '@jridgewell/trace-mapping@0.3.25': dependencies: '@jridgewell/resolve-uri': 3.1.2 - '@jridgewell/sourcemap-codec': 1.5.0 + '@jridgewell/sourcemap-codec': 1.5.5 '@jridgewell/trace-mapping@0.3.9': dependencies: '@jridgewell/resolve-uri': 3.1.2 - '@jridgewell/sourcemap-codec': 1.5.0 + '@jridgewell/sourcemap-codec': 1.5.5 '@lukeed/ms@2.0.2': {} @@ -10959,15 +10955,15 @@ snapshots: '@prisma/driver-adapter-utils': 6.7.0 ky: 1.7.5 - '@prisma/client@6.7.0(prisma@6.7.0(typescript@6.0.3))(typescript@6.0.3)': + '@prisma/client@6.7.0(prisma@6.7.0(supports-color@10.2.2)(typescript@6.0.3))(typescript@6.0.3)': optionalDependencies: - prisma: 6.7.0(typescript@6.0.3) + prisma: 6.7.0(supports-color@10.2.2)(typescript@6.0.3) typescript: 6.0.3 - '@prisma/config@6.7.0': + '@prisma/config@6.7.0(supports-color@10.2.2)': dependencies: esbuild: 0.27.0 - esbuild-register: 3.6.0(esbuild@0.27.0) + esbuild-register: 3.6.0(esbuild@0.27.0)(supports-color@10.2.2) transitivePeerDependencies: - supports-color @@ -11102,7 +11098,7 @@ snapshots: '@smithy/types': 3.6.0 '@smithy/util-config-provider': 3.0.0 '@smithy/util-middleware': 3.0.8 - tslib: 2.8.0 + tslib: 2.8.1 '@smithy/config-resolver@4.4.13': dependencies: @@ -11131,7 +11127,7 @@ snapshots: '@smithy/util-middleware': 3.0.8 '@smithy/util-stream': 3.2.1 '@smithy/util-utf8': 3.0.0 - tslib: 2.8.0 + tslib: 2.8.1 '@smithy/core@3.21.1': dependencies: @@ -11257,7 +11253,7 @@ snapshots: '@smithy/querystring-builder': 3.0.8 '@smithy/types': 3.6.0 '@smithy/util-base64': 3.0.0 - tslib: 2.8.0 + tslib: 2.8.1 '@smithy/fetch-http-handler@4.0.0': dependencies: @@ -11295,7 +11291,7 @@ snapshots: '@smithy/types': 3.6.0 '@smithy/util-buffer-from': 3.0.0 '@smithy/util-utf8': 3.0.0 - tslib: 2.8.0 + tslib: 2.8.1 '@smithy/hash-node@4.2.12': dependencies: @@ -11320,7 +11316,7 @@ snapshots: '@smithy/invalid-dependency@3.0.8': dependencies: '@smithy/types': 3.6.0 - tslib: 2.8.0 + tslib: 2.8.1 '@smithy/invalid-dependency@4.2.12': dependencies: @@ -11362,7 +11358,7 @@ snapshots: dependencies: '@smithy/protocol-http': 4.1.5 '@smithy/types': 3.6.0 - tslib: 2.8.0 + tslib: 2.8.1 '@smithy/middleware-content-length@4.2.12': dependencies: @@ -11385,7 +11381,7 @@ snapshots: '@smithy/types': 3.6.0 '@smithy/url-parser': 3.0.8 '@smithy/util-middleware': 3.0.8 - tslib: 2.8.0 + tslib: 2.8.1 '@smithy/middleware-endpoint@4.4.11': dependencies: @@ -11428,7 +11424,7 @@ snapshots: '@smithy/types': 3.6.0 '@smithy/util-middleware': 3.0.8 '@smithy/util-retry': 3.0.8 - tslib: 2.8.0 + tslib: 2.8.1 uuid: 9.0.1 '@smithy/middleware-retry@4.4.27': @@ -11458,7 +11454,7 @@ snapshots: '@smithy/middleware-serde@3.0.8': dependencies: '@smithy/types': 3.6.0 - tslib: 2.8.0 + tslib: 2.8.1 '@smithy/middleware-serde@4.2.15': dependencies: @@ -11480,7 +11476,7 @@ snapshots: '@smithy/middleware-stack@3.0.8': dependencies: '@smithy/types': 3.6.0 - tslib: 2.8.0 + tslib: 2.8.1 '@smithy/middleware-stack@4.2.12': dependencies: @@ -11497,7 +11493,7 @@ snapshots: '@smithy/property-provider': 3.1.8 '@smithy/shared-ini-file-loader': 3.1.9 '@smithy/types': 3.6.0 - tslib: 2.8.0 + tslib: 2.8.1 '@smithy/node-config-provider@4.3.12': dependencies: @@ -11527,7 +11523,7 @@ snapshots: '@smithy/protocol-http': 4.1.5 '@smithy/querystring-builder': 3.0.8 '@smithy/types': 3.6.0 - tslib: 2.8.0 + tslib: 2.8.1 '@smithy/node-http-handler@4.4.8': dependencies: @@ -11568,7 +11564,7 @@ snapshots: '@smithy/protocol-http@4.1.5': dependencies: '@smithy/types': 3.6.0 - tslib: 2.8.0 + tslib: 2.8.1 '@smithy/protocol-http@5.3.12': dependencies: @@ -11706,7 +11702,7 @@ snapshots: '@smithy/protocol-http': 4.1.5 '@smithy/types': 3.6.0 '@smithy/util-stream': 3.2.1 - tslib: 2.8.0 + tslib: 2.8.1 '@smithy/smithy-client@4.10.12': dependencies: @@ -11738,7 +11734,7 @@ snapshots: '@smithy/types@3.6.0': dependencies: - tslib: 2.8.0 + tslib: 2.8.1 '@smithy/types@4.12.0': dependencies: @@ -11752,7 +11748,7 @@ snapshots: dependencies: '@smithy/querystring-parser': 3.0.8 '@smithy/types': 3.6.0 - tslib: 2.8.0 + tslib: 2.8.1 '@smithy/url-parser@4.2.12': dependencies: @@ -11775,7 +11771,7 @@ snapshots: dependencies: '@smithy/util-buffer-from': 3.0.0 '@smithy/util-utf8': 3.0.0 - tslib: 2.8.0 + tslib: 2.8.1 '@smithy/util-base64@4.3.0': dependencies: @@ -11791,7 +11787,7 @@ snapshots: '@smithy/util-body-length-browser@3.0.0': dependencies: - tslib: 2.8.0 + tslib: 2.8.1 '@smithy/util-body-length-browser@4.2.0': dependencies: @@ -11803,7 +11799,7 @@ snapshots: '@smithy/util-body-length-node@3.0.0': dependencies: - tslib: 2.8.0 + tslib: 2.8.1 '@smithy/util-body-length-node@4.2.1': dependencies: @@ -11860,7 +11856,7 @@ snapshots: '@smithy/smithy-client': 3.4.2 '@smithy/types': 3.6.0 bowser: 2.11.0 - tslib: 2.8.0 + tslib: 2.8.1 '@smithy/util-defaults-mode-browser@4.3.26': dependencies: @@ -11884,7 +11880,7 @@ snapshots: '@smithy/property-provider': 3.1.8 '@smithy/smithy-client': 3.4.2 '@smithy/types': 3.6.0 - tslib: 2.8.0 + tslib: 2.8.1 '@smithy/util-defaults-mode-node@4.2.29': dependencies: @@ -11910,7 +11906,7 @@ snapshots: dependencies: '@smithy/node-config-provider': 3.1.9 '@smithy/types': 3.6.0 - tslib: 2.8.0 + tslib: 2.8.1 '@smithy/util-endpoints@3.2.8': dependencies: @@ -11956,7 +11952,7 @@ snapshots: '@smithy/util-middleware@3.0.8': dependencies: '@smithy/types': 3.6.0 - tslib: 2.8.0 + tslib: 2.8.1 '@smithy/util-middleware@4.2.12': dependencies: @@ -11977,7 +11973,7 @@ snapshots: dependencies: '@smithy/service-error-classification': 3.0.8 '@smithy/types': 3.6.0 - tslib: 2.8.0 + tslib: 2.8.1 '@smithy/util-retry@4.2.12': dependencies: @@ -12011,7 +12007,7 @@ snapshots: '@smithy/util-buffer-from': 3.0.0 '@smithy/util-hex-encoding': 3.0.0 '@smithy/util-utf8': 3.0.0 - tslib: 2.8.0 + tslib: 2.8.1 '@smithy/util-stream@4.5.10': dependencies: @@ -12063,12 +12059,12 @@ snapshots: '@smithy/util-utf8@2.3.0': dependencies: '@smithy/util-buffer-from': 2.2.0 - tslib: 2.8.0 + tslib: 2.8.1 '@smithy/util-utf8@3.0.0': dependencies: '@smithy/util-buffer-from': 3.0.0 - tslib: 2.8.0 + tslib: 2.8.1 '@smithy/util-utf8@4.2.0': dependencies: @@ -12322,21 +12318,21 @@ snapshots: dependencies: '@types/yargs-parser': 21.0.3 - '@vitest/coverage-v8@2.1.3(vitest@2.1.3(@edge-runtime/vm@3.2.0)(@types/node@24.13.2)(jsdom@22.1.0)(lightningcss@1.30.2)(terser@5.16.9))': + '@vitest/coverage-v8@2.1.3(supports-color@10.2.2)(vitest@2.1.3(@edge-runtime/vm@3.2.0)(@types/node@24.13.2)(jsdom@22.1.0(supports-color@10.2.2))(lightningcss@1.30.2)(supports-color@10.2.2)(terser@5.16.9))': dependencies: '@ampproject/remapping': 2.3.0 '@bcoe/v8-coverage': 0.2.3 - debug: 4.3.7 + debug: 4.3.7(supports-color@10.2.2) istanbul-lib-coverage: 3.2.2 istanbul-lib-report: 3.0.1 - istanbul-lib-source-maps: 5.0.6 + istanbul-lib-source-maps: 5.0.6(supports-color@10.2.2) istanbul-reports: 3.1.7 magic-string: 0.30.12 magicast: 0.3.5 std-env: 3.7.0 test-exclude: 7.0.1 tinyrainbow: 1.2.0 - vitest: 2.1.3(@edge-runtime/vm@3.2.0)(@types/node@24.13.2)(jsdom@22.1.0)(lightningcss@1.30.2)(terser@5.16.9) + vitest: 2.1.3(@edge-runtime/vm@3.2.0)(@types/node@24.13.2)(jsdom@22.1.0(supports-color@10.2.2))(lightningcss@1.30.2)(supports-color@10.2.2)(terser@5.16.9) transitivePeerDependencies: - supports-color @@ -12429,9 +12425,9 @@ snapshots: adm-zip@0.5.16: {} - agent-base@6.0.2: + agent-base@6.0.2(supports-color@10.2.2): dependencies: - debug: 4.4.3 + debug: 4.4.3(supports-color@10.2.2) transitivePeerDependencies: - supports-color @@ -12572,14 +12568,14 @@ snapshots: '@aws-cdk/cloud-assembly-schema': 38.0.1 constructs: 10.3.0 - aws-crt@1.23.0: + aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2): dependencies: '@aws-sdk/util-utf8-browser': 3.259.0 '@httptoolkit/websocket-stream': 6.0.1 - axios: 1.7.7 + axios: 1.7.7(debug@4.4.3(supports-color@10.2.2)) buffer: 6.0.3 crypto-js: 4.2.0 - mqtt: 5.10.1 + mqtt: 5.10.1(supports-color@10.2.2) process: 0.11.10 transitivePeerDependencies: - bufferutil @@ -12587,12 +12583,12 @@ snapshots: - supports-color - utf-8-validate - aws-iot-device-sdk@2.2.15: + aws-iot-device-sdk@2.2.15(supports-color@10.2.2): dependencies: '@httptoolkit/websocket-stream': 6.0.1 crypto-js: 4.2.0 minimist: 1.2.6 - mqtt: 4.2.8 + mqtt: 4.2.8(supports-color@10.2.2) transitivePeerDependencies: - bufferutil - supports-color @@ -12613,17 +12609,17 @@ snapshots: aws4fetch@1.0.20: {} - axios@0.27.2(debug@4.3.4): + axios@0.27.2(debug@4.3.4(supports-color@10.2.2)): dependencies: - follow-redirects: 1.15.9(debug@4.3.4) + follow-redirects: 1.15.9(debug@4.3.4(supports-color@10.2.2)) form-data: 4.0.1 transitivePeerDependencies: - debug - axios@1.7.7: + axios@1.7.7(debug@4.4.3(supports-color@10.2.2)): dependencies: - follow-redirects: 1.15.9(debug@4.3.4) - form-data: 4.0.1 + follow-redirects: 1.15.9(debug@4.4.3(supports-color@10.2.2)) + form-data: 4.0.5 proxy-from-env: 1.1.0 transitivePeerDependencies: - debug @@ -12674,11 +12670,11 @@ snapshots: bn.js@4.12.0: {} - body-parser@1.20.3: + body-parser@1.20.3(supports-color@10.2.2): dependencies: bytes: 3.1.2 content-type: 1.0.5 - debug: 2.6.9 + debug: 2.6.9(supports-color@10.2.2) depd: 2.0.0 destroy: 1.2.0 http-errors: 2.0.0 @@ -12691,11 +12687,11 @@ snapshots: transitivePeerDependencies: - supports-color - body-parser@2.2.2: + body-parser@2.2.2(supports-color@10.2.2): dependencies: bytes: 3.1.2 content-type: 1.0.5 - debug: 4.4.3 + debug: 4.4.3(supports-color@10.2.2) http-errors: 2.0.1 iconv-lite: 0.7.0 on-finished: 2.4.1 @@ -13032,25 +13028,35 @@ snapshots: dependencies: mimic-fn: 3.1.0 - debug@2.6.9: + debug@2.6.9(supports-color@10.2.2): dependencies: ms: 2.0.0 + optionalDependencies: + supports-color: 10.2.2 - debug@3.1.0: + debug@3.1.0(supports-color@10.2.2): dependencies: ms: 2.0.0 + optionalDependencies: + supports-color: 10.2.2 - debug@4.3.4: + debug@4.3.4(supports-color@10.2.2): dependencies: ms: 2.1.2 + optionalDependencies: + supports-color: 10.2.2 - debug@4.3.7: + debug@4.3.7(supports-color@10.2.2): dependencies: ms: 2.1.3 + optionalDependencies: + supports-color: 10.2.2 - debug@4.4.3: + debug@4.4.3(supports-color@10.2.2): dependencies: ms: 2.1.3 + optionalDependencies: + supports-color: 10.2.2 decimal.js@10.4.3: {} @@ -13204,9 +13210,9 @@ snapshots: es6-promise@4.2.8: {} - esbuild-register@3.6.0(esbuild@0.27.0): + esbuild-register@3.6.0(esbuild@0.27.0)(supports-color@10.2.2): dependencies: - debug: 4.4.3 + debug: 4.4.3(supports-color@10.2.2) esbuild: 0.27.0 transitivePeerDependencies: - supports-color @@ -13403,29 +13409,29 @@ snapshots: jest-message-util: 29.7.0 jest-util: 29.7.0 - express-http-proxy@2.1.1: + express-http-proxy@2.1.1(supports-color@10.2.2): dependencies: - debug: 3.1.0 + debug: 3.1.0(supports-color@10.2.2) es6-promise: 4.2.8 raw-body: 2.5.2 transitivePeerDependencies: - supports-color - express@4.21.2: + express@4.21.2(supports-color@10.2.2): dependencies: accepts: 1.3.8 array-flatten: 1.1.1 - body-parser: 1.20.3 + body-parser: 1.20.3(supports-color@10.2.2) content-disposition: 0.5.4 content-type: 1.0.5 cookie: 0.7.1 cookie-signature: 1.0.6 - debug: 2.6.9 + debug: 2.6.9(supports-color@10.2.2) depd: 2.0.0 encodeurl: 2.0.0 escape-html: 1.0.3 etag: 1.8.1 - finalhandler: 1.3.1 + finalhandler: 1.3.1(supports-color@10.2.2) fresh: 0.5.2 http-errors: 2.0.0 merge-descriptors: 1.0.3 @@ -13437,8 +13443,8 @@ snapshots: qs: 6.13.0 range-parser: 1.2.1 safe-buffer: 5.2.1 - send: 0.19.0 - serve-static: 1.16.2 + send: 0.19.0(supports-color@10.2.2) + serve-static: 1.16.2(supports-color@10.2.2) setprototypeof: 1.2.0 statuses: 2.0.1 type-is: 1.6.18 @@ -13447,20 +13453,20 @@ snapshots: transitivePeerDependencies: - supports-color - express@5.2.1: + express@5.2.1(supports-color@10.2.2): dependencies: accepts: 2.0.0 - body-parser: 2.2.2 + body-parser: 2.2.2(supports-color@10.2.2) content-disposition: 1.0.0 content-type: 1.0.5 cookie: 0.7.1 cookie-signature: 1.2.2 - debug: 4.4.3 + debug: 4.4.3(supports-color@10.2.2) depd: 2.0.0 encodeurl: 2.0.0 escape-html: 1.0.3 etag: 1.8.1 - finalhandler: 2.1.0 + finalhandler: 2.1.0(supports-color@10.2.2) fresh: 2.0.0 http-errors: 2.0.1 merge-descriptors: 2.0.0 @@ -13471,9 +13477,9 @@ snapshots: proxy-addr: 2.0.7 qs: 6.14.1 range-parser: 1.2.1 - router: 2.2.0 - send: 1.2.0 - serve-static: 2.2.0 + router: 2.2.0(supports-color@10.2.2) + send: 1.2.0(supports-color@10.2.2) + serve-static: 2.2.0(supports-color@10.2.2) statuses: 2.0.2 type-is: 2.0.1 vary: 1.1.2 @@ -13534,7 +13540,7 @@ snapshots: fast-xml-parser@5.2.5: dependencies: - strnum: 2.1.2 + strnum: 2.2.2 fast-xml-parser@5.5.8: dependencies: @@ -13561,9 +13567,9 @@ snapshots: dependencies: to-regex-range: 5.0.1 - finalhandler@1.3.1: + finalhandler@1.3.1(supports-color@10.2.2): dependencies: - debug: 2.6.9 + debug: 2.6.9(supports-color@10.2.2) encodeurl: 2.0.0 escape-html: 1.0.3 on-finished: 2.4.1 @@ -13573,9 +13579,9 @@ snapshots: transitivePeerDependencies: - supports-color - finalhandler@2.1.0: + finalhandler@2.1.0(supports-color@10.2.2): dependencies: - debug: 4.4.3 + debug: 4.4.3(supports-color@10.2.2) encodeurl: 2.0.0 escape-html: 1.0.3 on-finished: 2.4.1 @@ -13588,9 +13594,13 @@ snapshots: dependencies: locate-path: 3.0.0 - follow-redirects@1.15.9(debug@4.3.4): + follow-redirects@1.15.9(debug@4.3.4(supports-color@10.2.2)): + optionalDependencies: + debug: 4.3.4(supports-color@10.2.2) + + follow-redirects@1.15.9(debug@4.4.3(supports-color@10.2.2)): optionalDependencies: - debug: 4.3.4 + debug: 4.4.3(supports-color@10.2.2) for-each@0.3.3: dependencies: @@ -13833,18 +13843,18 @@ snapshots: statuses: 2.0.2 toidentifier: 1.0.1 - http-proxy-agent@5.0.0: + http-proxy-agent@5.0.0(supports-color@10.2.2): dependencies: '@tootallnate/once': 2.0.0 - agent-base: 6.0.2 - debug: 4.4.3 + agent-base: 6.0.2(supports-color@10.2.2) + debug: 4.4.3(supports-color@10.2.2) transitivePeerDependencies: - supports-color - https-proxy-agent@5.0.1: + https-proxy-agent@5.0.1(supports-color@10.2.2): dependencies: - agent-base: 6.0.2 - debug: 4.4.3 + agent-base: 6.0.2(supports-color@10.2.2) + debug: 4.4.3(supports-color@10.2.2) transitivePeerDependencies: - supports-color @@ -13997,9 +14007,9 @@ snapshots: isexe@3.1.1: {} - isomorphic-ws@4.0.1(ws@8.18.0): + isomorphic-ws@4.0.1(ws@8.21.0): dependencies: - ws: 8.18.0 + ws: 8.21.0 istanbul-lib-coverage@3.2.2: {} @@ -14009,10 +14019,10 @@ snapshots: make-dir: 4.0.0 supports-color: 7.2.0 - istanbul-lib-source-maps@5.0.6: + istanbul-lib-source-maps@5.0.6(supports-color@10.2.2): dependencies: '@jridgewell/trace-mapping': 0.3.25 - debug: 4.4.3 + debug: 4.4.3(supports-color@10.2.2) istanbul-lib-coverage: 3.2.2 transitivePeerDependencies: - supports-color @@ -14091,17 +14101,17 @@ snapshots: js-tokens@4.0.0: {} - jsdom@22.1.0: + jsdom@22.1.0(supports-color@10.2.2): dependencies: abab: 2.0.6 cssstyle: 3.0.0 data-urls: 4.0.0 decimal.js: 10.4.3 domexception: 4.0.0 - form-data: 4.0.1 + form-data: 4.0.5 html-encoding-sniffer: 3.0.0 - http-proxy-agent: 5.0.0 - https-proxy-agent: 5.0.1 + http-proxy-agent: 5.0.0(supports-color@10.2.2) + https-proxy-agent: 5.0.1(supports-color@10.2.2) is-potential-custom-element-name: 1.0.1 nwsapi: 2.2.13 parse5: 7.2.0 @@ -14114,7 +14124,7 @@ snapshots: whatwg-encoding: 2.0.0 whatwg-mimetype: 3.0.0 whatwg-url: 12.0.1 - ws: 8.18.0 + ws: 8.21.0 xml-name-validator: 4.0.0 transitivePeerDependencies: - bufferutil @@ -14151,9 +14161,9 @@ snapshots: optionalDependencies: better-sqlite3: 11.10.0 - kysely-data-api@0.2.1(@aws-sdk/client-rds-data@3.678.0(aws-crt@1.23.0))(kysely@0.25.0): + kysely-data-api@0.2.1(@aws-sdk/client-rds-data@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(kysely@0.25.0): dependencies: - '@aws-sdk/client-rds-data': 3.678.0(aws-crt@1.23.0) + '@aws-sdk/client-rds-data': 3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) kysely: 0.25.0 kysely@0.25.0: {} @@ -14336,19 +14346,6 @@ snapshots: mimic-response@3.1.0: optional: true - miniflare@4.20260120.0: - dependencies: - '@cspotcode/source-map-support': 0.8.1 - sharp: 0.34.5 - undici: 7.18.2 - workerd: 1.20260120.0 - ws: 8.18.0 - youch: 4.1.0-beta.10 - zod: 3.25.76 - transitivePeerDependencies: - - bufferutil - - utf-8-validate - miniflare@4.20260710.0: dependencies: '@cspotcode/source-map-support': 0.8.1 @@ -14410,32 +14407,32 @@ snapshots: mock-fs@5.5.0: {} - mqtt-packet@6.10.0: + mqtt-packet@6.10.0(supports-color@10.2.2): dependencies: bl: 4.1.0 - debug: 4.4.3 + debug: 4.4.3(supports-color@10.2.2) process-nextick-args: 2.0.1 transitivePeerDependencies: - supports-color - mqtt-packet@9.0.0: + mqtt-packet@9.0.0(supports-color@10.2.2): dependencies: bl: 6.0.16 - debug: 4.4.3 + debug: 4.4.3(supports-color@10.2.2) process-nextick-args: 2.0.1 transitivePeerDependencies: - supports-color - mqtt@4.2.8: + mqtt@4.2.8(supports-color@10.2.2): dependencies: commist: 1.1.0 concat-stream: 2.0.0 - debug: 4.4.3 + debug: 4.4.3(supports-color@10.2.2) duplexify: 4.1.3 help-me: 3.0.0 inherits: 2.0.4 minimist: 1.2.8 - mqtt-packet: 6.10.0 + mqtt-packet: 6.10.0(supports-color@10.2.2) pump: 3.0.2 readable-stream: 3.6.2 reinterval: 1.1.0 @@ -14447,24 +14444,24 @@ snapshots: - supports-color - utf-8-validate - mqtt@5.10.1: + mqtt@5.10.1(supports-color@10.2.2): dependencies: '@types/readable-stream': 4.0.16 '@types/ws': 8.5.12 commist: 3.2.0 concat-stream: 2.0.0 - debug: 4.4.3 + debug: 4.4.3(supports-color@10.2.2) help-me: 5.0.0 lru-cache: 10.4.3 minimist: 1.2.8 - mqtt-packet: 9.0.0 - number-allocator: 1.0.14 + mqtt-packet: 9.0.0(supports-color@10.2.2) + number-allocator: 1.0.14(supports-color@10.2.2) readable-stream: 4.5.2 reinterval: 1.1.0 rfdc: 1.4.1 split2: 4.2.0 worker-timers: 7.1.8 - ws: 8.18.0 + ws: 8.21.0 transitivePeerDependencies: - bufferutil - supports-color @@ -14495,7 +14492,7 @@ snapshots: negotiator@1.0.0: {} - next@16.2.0-canary.45(@opentelemetry/api@1.9.0)(@playwright/test@1.61.1)(react-dom@19.2.4(react@19.2.4))(react@19.2.4): + next@16.2.0-canary.45(@babel/core@7.25.9(supports-color@10.2.2))(@opentelemetry/api@1.9.0)(@playwright/test@1.61.1)(react-dom@19.2.4(react@19.2.4))(react@19.2.4): dependencies: '@next/env': 16.2.0-canary.45 '@swc/helpers': 0.5.15 @@ -14504,7 +14501,7 @@ snapshots: postcss: 8.4.31 react: 19.2.4 react-dom: 19.2.4(react@19.2.4) - styled-jsx: 5.1.6(react@19.2.4) + styled-jsx: 5.1.6(@babel/core@7.25.9(supports-color@10.2.2))(react@19.2.4) optionalDependencies: '@next/swc-darwin-arm64': 16.2.0-canary.45 '@next/swc-darwin-x64': 16.2.0-canary.45 @@ -14521,7 +14518,7 @@ snapshots: - '@babel/core' - babel-plugin-macros - next@16.2.1(@opentelemetry/api@1.9.0)(@playwright/test@1.61.1)(react-dom@19.0.3(react@19.0.3))(react@19.0.3): + next@16.2.1(@babel/core@7.25.9(supports-color@10.2.2))(@opentelemetry/api@1.9.0)(@playwright/test@1.61.1)(react-dom@19.0.3(react@19.0.3))(react@19.0.3): dependencies: '@next/env': 16.2.1 '@swc/helpers': 0.5.15 @@ -14530,7 +14527,7 @@ snapshots: postcss: 8.4.31 react: 19.0.3 react-dom: 19.0.3(react@19.0.3) - styled-jsx: 5.1.6(react@19.0.3) + styled-jsx: 5.1.6(@babel/core@7.25.9(supports-color@10.2.2))(react@19.0.3) optionalDependencies: '@next/swc-darwin-arm64': 16.2.1 '@next/swc-darwin-x64': 16.2.1 @@ -14547,7 +14544,7 @@ snapshots: - '@babel/core' - babel-plugin-macros - next@16.2.1(@opentelemetry/api@1.9.0)(@playwright/test@1.61.1)(react-dom@19.2.3(react@19.2.3))(react@19.2.3): + next@16.2.1(@babel/core@7.25.9(supports-color@10.2.2))(@opentelemetry/api@1.9.0)(@playwright/test@1.61.1)(react-dom@19.2.3(react@19.2.3))(react@19.2.3): dependencies: '@next/env': 16.2.1 '@swc/helpers': 0.5.15 @@ -14556,7 +14553,7 @@ snapshots: postcss: 8.4.31 react: 19.2.3 react-dom: 19.2.3(react@19.2.3) - styled-jsx: 5.1.6(react@19.2.3) + styled-jsx: 5.1.6(@babel/core@7.25.9(supports-color@10.2.2))(react@19.2.3) optionalDependencies: '@next/swc-darwin-arm64': 16.2.1 '@next/swc-darwin-x64': 16.2.1 @@ -14573,7 +14570,7 @@ snapshots: - '@babel/core' - babel-plugin-macros - next@16.2.1(@opentelemetry/api@1.9.0)(@playwright/test@1.61.1)(react-dom@19.2.4(react@19.2.4))(react@19.2.4): + next@16.2.1(@babel/core@7.25.9(supports-color@10.2.2))(@opentelemetry/api@1.9.0)(@playwright/test@1.61.1)(react-dom@19.2.4(react@19.2.4))(react@19.2.4): dependencies: '@next/env': 16.2.1 '@swc/helpers': 0.5.15 @@ -14582,7 +14579,7 @@ snapshots: postcss: 8.4.31 react: 19.2.4 react-dom: 19.2.4(react@19.2.4) - styled-jsx: 5.1.6(react@19.2.4) + styled-jsx: 5.1.6(@babel/core@7.25.9(supports-color@10.2.2))(react@19.2.4) optionalDependencies: '@next/swc-darwin-arm64': 16.2.1 '@next/swc-darwin-x64': 16.2.1 @@ -14601,7 +14598,7 @@ snapshots: node-abi@3.87.0: dependencies: - semver: 7.7.3 + semver: 7.8.5 optional: true node-domexception@1.0.0: {} @@ -14620,9 +14617,9 @@ snapshots: dependencies: path-key: 3.1.1 - number-allocator@1.0.14: + number-allocator@1.0.14(supports-color@10.2.2): dependencies: - debug: 4.4.3 + debug: 4.4.3(supports-color@10.2.2) js-sdsl: 4.3.0 transitivePeerDependencies: - supports-color @@ -14809,7 +14806,7 @@ snapshots: postcss-load-config@4.0.2(postcss@8.5.6)(ts-node@10.9.1(@types/node@24.0.0)(typescript@6.0.3)): dependencies: lilconfig: 3.1.3 - yaml: 2.8.1 + yaml: 2.9.0 optionalDependencies: postcss: 8.5.6 ts-node: 10.9.1(@types/node@24.0.0)(typescript@6.0.3) @@ -14817,7 +14814,7 @@ snapshots: postcss-load-config@4.0.2(postcss@8.5.6)(ts-node@10.9.1(@types/node@24.13.2)(typescript@6.0.3)): dependencies: lilconfig: 3.1.3 - yaml: 2.8.1 + yaml: 2.9.0 optionalDependencies: postcss: 8.5.6 ts-node: 10.9.1(@types/node@24.13.2)(typescript@6.0.3) @@ -14874,9 +14871,9 @@ snapshots: ansi-styles: 5.2.0 react-is: 18.3.1 - prisma@6.7.0(typescript@6.0.3): + prisma@6.7.0(supports-color@10.2.2)(typescript@6.0.3): dependencies: - '@prisma/config': 6.7.0 + '@prisma/config': 6.7.0(supports-color@10.2.2) '@prisma/engines': 6.7.0 optionalDependencies: fsevents: 2.3.3 @@ -15091,9 +15088,9 @@ snapshots: '@rollup/rollup-win32-x64-msvc': 4.24.0 fsevents: 2.3.3 - router@2.2.0: + router@2.2.0(supports-color@10.2.2): dependencies: - debug: 4.4.3 + debug: 4.4.3(supports-color@10.2.2) depd: 2.0.0 is-promise: 4.0.0 parseurl: 1.3.3 @@ -15141,9 +15138,9 @@ snapshots: semver@7.8.5: {} - send@0.19.0: + send@0.19.0(supports-color@10.2.2): dependencies: - debug: 2.6.9 + debug: 2.6.9(supports-color@10.2.2) depd: 2.0.0 destroy: 1.2.0 encodeurl: 1.0.2 @@ -15159,9 +15156,9 @@ snapshots: transitivePeerDependencies: - supports-color - send@1.2.0: + send@1.2.0(supports-color@10.2.2): dependencies: - debug: 4.4.3 + debug: 4.4.3(supports-color@10.2.2) encodeurl: 2.0.0 escape-html: 1.0.3 etag: 1.8.1 @@ -15175,21 +15172,21 @@ snapshots: transitivePeerDependencies: - supports-color - serve-static@1.16.2: + serve-static@1.16.2(supports-color@10.2.2): dependencies: encodeurl: 2.0.0 escape-html: 1.0.3 parseurl: 1.3.3 - send: 0.19.0 + send: 0.19.0(supports-color@10.2.2) transitivePeerDependencies: - supports-color - serve-static@2.2.0: + serve-static@2.2.0(supports-color@10.2.2): dependencies: encodeurl: 2.0.0 escape-html: 1.0.3 parseurl: 1.3.3 - send: 1.2.0 + send: 1.2.0(supports-color@10.2.2) transitivePeerDependencies: - supports-color @@ -15346,38 +15343,38 @@ snapshots: optionalDependencies: fsevents: 2.3.2 - sst@2.44.0(@aws-sdk/client-sso-oidc@3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0))(aws-crt@1.23.0))(@types/react@19.2.9)(aws-crt@1.23.0)(better-sqlite3@11.10.0): + sst@2.44.0(@aws-sdk/client-sso-oidc@3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(@types/react@19.2.9)(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2))(better-sqlite3@11.10.0)(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2): dependencies: '@aws-cdk/aws-lambda-python-alpha': 2.161.1-alpha.0(aws-cdk-lib@2.161.1(constructs@10.3.0))(constructs@10.3.0) '@aws-cdk/cloud-assembly-schema': 38.0.1 '@aws-cdk/cloudformation-diff': 2.161.1 '@aws-cdk/cx-api': 2.161.1(@aws-cdk/cloud-assembly-schema@38.0.1) '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/client-cloudformation': 3.678.0(aws-crt@1.23.0) - '@aws-sdk/client-ecs': 3.678.0(aws-crt@1.23.0) - '@aws-sdk/client-eventbridge': 3.678.0(aws-crt@1.23.0) - '@aws-sdk/client-iam': 3.678.0(aws-crt@1.23.0) - '@aws-sdk/client-iot': 3.678.0(aws-crt@1.23.0) - '@aws-sdk/client-iot-data-plane': 3.678.0(aws-crt@1.23.0) - '@aws-sdk/client-lambda': 3.678.0(aws-crt@1.23.0) - '@aws-sdk/client-rds-data': 3.678.0(aws-crt@1.23.0) - '@aws-sdk/client-s3': 3.974.0(aws-crt@1.23.0) - '@aws-sdk/client-ssm': 3.678.0(aws-crt@1.23.0) - '@aws-sdk/client-sts': 3.678.0(aws-crt@1.23.0) + '@aws-sdk/client-cloudformation': 3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) + '@aws-sdk/client-ecs': 3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) + '@aws-sdk/client-eventbridge': 3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) + '@aws-sdk/client-iam': 3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) + '@aws-sdk/client-iot': 3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) + '@aws-sdk/client-iot-data-plane': 3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) + '@aws-sdk/client-lambda': 3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) + '@aws-sdk/client-rds-data': 3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) + '@aws-sdk/client-s3': 3.974.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) + '@aws-sdk/client-ssm': 3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) + '@aws-sdk/client-sts': 3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) '@aws-sdk/config-resolver': 3.374.0 - '@aws-sdk/credential-providers': 3.678.0(@aws-sdk/client-sso-oidc@3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0))(aws-crt@1.23.0))(aws-crt@1.23.0) + '@aws-sdk/credential-providers': 3.678.0(@aws-sdk/client-sso-oidc@3.678.0(@aws-sdk/client-sts@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)) '@aws-sdk/middleware-retry': 3.374.0 '@aws-sdk/middleware-signing': 3.664.0 - '@aws-sdk/signature-v4-crt': 3.678.0 + '@aws-sdk/signature-v4-crt': 3.678.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2) '@aws-sdk/smithy-client': 3.374.0 - '@babel/core': 7.25.9 + '@babel/core': 7.25.9(supports-color@10.2.2) '@babel/generator': 7.25.9 - '@babel/plugin-syntax-typescript': 7.25.9(@babel/core@7.25.9) + '@babel/plugin-syntax-typescript': 7.25.9(@babel/core@7.25.9(supports-color@10.2.2)) '@smithy/signature-v4': 2.3.0 '@trpc/server': 9.16.0 adm-zip: 0.5.16 aws-cdk-lib: 2.161.1(constructs@10.3.0) - aws-iot-device-sdk: 2.2.15 + aws-iot-device-sdk: 2.2.15(supports-color@10.2.2) aws-sdk: 2.1691.0 builtin-modules: 3.2.0 cdk-assets: 2.155.6 @@ -15391,7 +15388,7 @@ snapshots: dendriform-immer-patch-optimiser: 2.1.3(immer@9.0.21) dotenv: 16.4.5 esbuild: 0.18.13 - express: 4.21.2 + express: 4.21.2(supports-color@10.2.2) fast-jwt: 3.3.3 get-port: 6.1.2 glob: 10.4.5 @@ -15402,7 +15399,7 @@ snapshots: ink-spinner: 5.0.0(ink@4.4.1(@types/react@19.2.9)(react@18.3.1))(react@18.3.1) kysely: 0.25.0 kysely-codegen: 0.10.1(better-sqlite3@11.10.0)(kysely@0.25.0) - kysely-data-api: 0.2.1(@aws-sdk/client-rds-data@3.678.0(aws-crt@1.23.0))(kysely@0.25.0) + kysely-data-api: 0.2.1(@aws-sdk/client-rds-data@3.678.0(aws-crt@1.23.0(debug@4.4.3(supports-color@10.2.2))(supports-color@10.2.2)))(kysely@0.25.0) minimatch: 6.2.0 openid-client: 5.7.0 ora: 6.3.1 @@ -15434,16 +15431,16 @@ snapshots: stackback@0.0.2: {} - start-server-and-test@2.0.0: + start-server-and-test@2.0.0(supports-color@10.2.2): dependencies: arg: 5.0.2 bluebird: 3.7.2 check-more-types: 2.24.0 - debug: 4.3.4 + debug: 4.3.4(supports-color@10.2.2) execa: 5.1.1 lazy-ass: 1.6.0 ps-tree: 1.2.0 - wait-on: 7.0.1(debug@4.3.4) + wait-on: 7.0.1(debug@4.3.4(supports-color@10.2.2)) transitivePeerDependencies: - supports-color @@ -15506,24 +15503,28 @@ snapshots: strnum@1.0.5: {} - strnum@2.1.2: {} - strnum@2.2.2: {} - styled-jsx@5.1.6(react@19.0.3): + styled-jsx@5.1.6(@babel/core@7.25.9(supports-color@10.2.2))(react@19.0.3): dependencies: client-only: 0.0.1 react: 19.0.3 + optionalDependencies: + '@babel/core': 7.25.9(supports-color@10.2.2) - styled-jsx@5.1.6(react@19.2.3): + styled-jsx@5.1.6(@babel/core@7.25.9(supports-color@10.2.2))(react@19.2.3): dependencies: client-only: 0.0.1 react: 19.2.3 + optionalDependencies: + '@babel/core': 7.25.9(supports-color@10.2.2) - styled-jsx@5.1.6(react@19.2.4): + styled-jsx@5.1.6(@babel/core@7.25.9(supports-color@10.2.2))(react@19.2.4): dependencies: client-only: 0.0.1 react: 19.2.4 + optionalDependencies: + '@babel/core': 7.25.9(supports-color@10.2.2) sucrase@3.35.0: dependencies: @@ -15826,8 +15827,6 @@ snapshots: dependencies: '@fastify/busboy': 2.1.1 - undici@7.18.2: {} - undici@7.28.0: {} unenv@2.0.0-rc.24: @@ -15884,10 +15883,10 @@ snapshots: vary@1.1.2: {} - vite-node@2.1.3(@types/node@24.13.2)(lightningcss@1.30.2)(terser@5.16.9): + vite-node@2.1.3(@types/node@24.13.2)(lightningcss@1.30.2)(supports-color@10.2.2)(terser@5.16.9): dependencies: cac: 6.7.14 - debug: 4.4.3 + debug: 4.4.3(supports-color@10.2.2) pathe: 1.1.2 vite: 5.4.9(@types/node@24.13.2)(lightningcss@1.30.2)(terser@5.16.9) transitivePeerDependencies: @@ -15901,9 +15900,9 @@ snapshots: - supports-color - terser - vite-tsconfig-paths@5.0.1(typescript@5.9.3)(vite@5.4.9(@types/node@24.13.2)(lightningcss@1.30.2)(terser@5.16.9)): + vite-tsconfig-paths@5.0.1(supports-color@10.2.2)(typescript@5.9.3)(vite@5.4.9(@types/node@24.13.2)(lightningcss@1.30.2)(terser@5.16.9)): dependencies: - debug: 4.3.7 + debug: 4.3.7(supports-color@10.2.2) globrex: 0.1.2 tsconfck: 3.1.4(typescript@5.9.3) optionalDependencies: @@ -15923,7 +15922,7 @@ snapshots: lightningcss: 1.30.2 terser: 5.16.9 - vitest@2.1.3(@edge-runtime/vm@3.2.0)(@types/node@24.13.2)(jsdom@22.1.0)(lightningcss@1.30.2)(terser@5.16.9): + vitest@2.1.3(@edge-runtime/vm@3.2.0)(@types/node@24.13.2)(jsdom@22.1.0(supports-color@10.2.2))(lightningcss@1.30.2)(supports-color@10.2.2)(terser@5.16.9): dependencies: '@vitest/expect': 2.1.3 '@vitest/mocker': 2.1.3(@vitest/spy@2.1.3)(vite@5.4.9(@types/node@24.13.2)(lightningcss@1.30.2)(terser@5.16.9)) @@ -15933,7 +15932,7 @@ snapshots: '@vitest/spy': 2.1.3 '@vitest/utils': 2.1.3 chai: 5.1.2 - debug: 4.4.3 + debug: 4.4.3(supports-color@10.2.2) magic-string: 0.30.12 pathe: 1.1.2 std-env: 3.7.0 @@ -15942,12 +15941,12 @@ snapshots: tinypool: 1.0.1 tinyrainbow: 1.2.0 vite: 5.4.9(@types/node@24.13.2)(lightningcss@1.30.2)(terser@5.16.9) - vite-node: 2.1.3(@types/node@24.13.2)(lightningcss@1.30.2)(terser@5.16.9) + vite-node: 2.1.3(@types/node@24.13.2)(lightningcss@1.30.2)(supports-color@10.2.2)(terser@5.16.9) why-is-node-running: 2.3.0 optionalDependencies: '@edge-runtime/vm': 3.2.0 '@types/node': 24.13.2 - jsdom: 22.1.0 + jsdom: 22.1.0(supports-color@10.2.2) transitivePeerDependencies: - less - lightningcss @@ -15963,9 +15962,9 @@ snapshots: dependencies: xml-name-validator: 4.0.0 - wait-on@7.0.1(debug@4.3.4): + wait-on@7.0.1(debug@4.3.4(supports-color@10.2.2)): dependencies: - axios: 0.27.2(debug@4.3.4) + axios: 0.27.2(debug@4.3.4(supports-color@10.2.2)) joi: 17.13.3 lodash: 4.17.21 minimist: 1.2.8 @@ -16053,14 +16052,6 @@ snapshots: worker-timers-broker: 6.1.8 worker-timers-worker: 7.0.71 - workerd@1.20260120.0: - optionalDependencies: - '@cloudflare/workerd-darwin-64': 1.20260120.0 - '@cloudflare/workerd-darwin-arm64': 1.20260120.0 - '@cloudflare/workerd-linux-64': 1.20260120.0 - '@cloudflare/workerd-linux-arm64': 1.20260120.0 - '@cloudflare/workerd-windows-64': 1.20260120.0 - workerd@1.20260710.1: optionalDependencies: '@cloudflare/workerd-darwin-64': 1.20260710.1 @@ -16086,23 +16077,6 @@ snapshots: - bufferutil - utf-8-validate - wrangler@4.60.0(@cloudflare/workers-types@4.20260123.0): - dependencies: - '@cloudflare/kv-asset-handler': 0.4.2 - '@cloudflare/unenv-preset': 2.11.0(unenv@2.0.0-rc.24)(workerd@1.20260120.0) - blake3-wasm: 2.1.5 - esbuild: 0.27.0 - miniflare: 4.20260120.0 - path-to-regexp: 6.3.0 - unenv: 2.0.0-rc.24 - workerd: 1.20260120.0 - optionalDependencies: - '@cloudflare/workers-types': 4.20260123.0 - fsevents: 2.3.3 - transitivePeerDependencies: - - bufferutil - - utf-8-validate - wrap-ansi@7.0.0: dependencies: ansi-styles: 4.3.0 From 0738b8669b469926c4e64761c76a5e64a287ab92 Mon Sep 17 00:00:00 2001 From: Nicolas Dorseuil Date: Sat, 31 Oct 2026 16:05:39 +0100 Subject: [PATCH 02/21] test: add process management for suite deployments Co-Authored-By: Claude Opus 5.5 (1M context) --- packages/tests-next-suite/src/process.spec.ts | 162 ++++++++++++++++++ packages/tests-next-suite/src/process.ts | 134 +++++++++++++++ 2 files changed, 296 insertions(+) create mode 100644 packages/tests-next-suite/src/process.spec.ts create mode 100644 packages/tests-next-suite/src/process.ts diff --git a/packages/tests-next-suite/src/process.spec.ts b/packages/tests-next-suite/src/process.spec.ts new file mode 100644 index 00000000..16d74b0e --- /dev/null +++ b/packages/tests-next-suite/src/process.spec.ts @@ -0,0 +1,162 @@ +import fs from "node:fs"; +import http from "node:http"; +import type { AddressInfo } from "node:net"; +import os from "node:os"; +import path from "node:path"; +import { setTimeout as sleep } from "node:timers/promises"; + +import { afterEach, beforeEach, describe, expect, test } from "vitest"; + +import { getFreePorts, startDetached, stopProcessGroup, waitForHttp } from "./process.js"; + +let dir: string; +let logFile: string; +let pidFile: string; +const spawned: number[] = []; + +function isAlive(pid: number): boolean { + try { + process.kill(pid, 0); + return true; + } catch { + return false; + } +} + +async function waitForFile(file: string): Promise { + while (!fs.existsSync(file) || fs.readFileSync(file, "utf8") === "") { + await sleep(20); + } + return fs.readFileSync(file, "utf8"); +} + +function start(script: string): number { + const pid = startDetached({ + command: ["node", "-e", script], + cwd: dir, + env: process.env, + logFile, + pidFile, + }); + spawned.push(pid); + return pid; +} + +beforeEach(() => { + dir = fs.mkdtempSync(path.join(os.tmpdir(), "next-suite-process-")); + logFile = path.join(dir, "server.log"); + pidFile = path.join(dir, "server.pid"); +}); + +afterEach(() => { + for (const pid of spawned.splice(0)) { + try { + process.kill(-pid, "SIGKILL"); + } catch { + // Already gone. + } + } +}); + +describe("getFreePorts", () => { + test("returns distinct bindable ports", async () => { + const [first, second] = (await getFreePorts(2)) as [number, number]; + + expect(first).not.toBe(second); + const server = http.createServer(); + await new Promise((resolve) => server.listen(first, resolve)); + expect((server.address() as AddressInfo).port).toBe(first); + server.close(); + }); +}); + +describe("startDetached", () => { + test("sends the output to the log file and records the pid", async () => { + const pid = start("console.log('hello'); console.error('oops')"); + + expect(fs.readFileSync(pidFile, "utf8")).toBe(String(pid)); + await expect.poll(() => fs.readFileSync(logFile, "utf8")).toContain("hello"); + expect(fs.readFileSync(logFile, "utf8")).toContain("oops"); + }); +}); + +describe("waitForHttp", () => { + test("treats any HTTP status as ready", async () => { + const server = http.createServer((_req, res) => res.writeHead(404).end()); + await new Promise((resolve) => server.listen(0, resolve)); + const { port } = server.address() as AddressInfo; + + const result = await waitForHttp({ + url: `http://localhost:${port}`, + pid: process.pid, + timeoutMs: 5000, + }); + + expect(result).toBe("ready"); + server.close(); + }); + + test("reports a process that exits early without waiting for the timeout", async () => { + const [port] = (await getFreePorts(1)) as [number]; + const pid = start("process.exit(1)"); + const startedAt = Date.now(); + + const result = await waitForHttp({ url: `http://localhost:${port}`, pid, timeoutMs: 30_000 }); + + expect(result).toBe("exited"); + expect(Date.now() - startedAt).toBeLessThan(2000); + }); + + test("reports timeout", async () => { + const [port] = (await getFreePorts(1)) as [number]; + const pid = start("setInterval(() => {}, 1000)"); + + const result = await waitForHttp({ url: `http://localhost:${port}`, pid, timeoutMs: 300 }); + + expect(result).toBe("timeout"); + }); +}); + +describe("stopProcessGroup", () => { + test("kills grandchildren", async () => { + const grandchildPidFile = path.join(dir, "grandchild.pid"); + const pid = start(` + const { spawn } = require("node:child_process"); + const child = spawn("node", ["-e", "setInterval(() => {}, 1000)"], { stdio: "ignore" }); + require("node:fs").writeFileSync(${JSON.stringify(grandchildPidFile)}, String(child.pid)); + setInterval(() => {}, 1000); + `); + const grandchild = Number(await waitForFile(grandchildPidFile)); + + await stopProcessGroup(pidFile); + + expect(isAlive(pid)).toBe(false); + expect(isAlive(grandchild)).toBe(false); + }); + + test("escalates to SIGKILL when SIGTERM is ignored", async () => { + const readyFile = path.join(dir, "ready"); + const pid = start(` + process.on("SIGTERM", () => {}); + require("node:fs").writeFileSync(${JSON.stringify(readyFile)}, "ready"); + setInterval(() => {}, 1000); + `); + await waitForFile(readyFile); + + await stopProcessGroup(pidFile, 200); + + expect(isAlive(pid)).toBe(false); + }); + + test("is a no-op with no pid file", async () => { + await expect(stopProcessGroup(pidFile)).resolves.toBeUndefined(); + }); + + test("can run twice", async () => { + start("setInterval(() => {}, 1000)"); + + await stopProcessGroup(pidFile); + + await expect(stopProcessGroup(pidFile)).resolves.toBeUndefined(); + }); +}); diff --git a/packages/tests-next-suite/src/process.ts b/packages/tests-next-suite/src/process.ts new file mode 100644 index 00000000..a3cbc236 --- /dev/null +++ b/packages/tests-next-suite/src/process.ts @@ -0,0 +1,134 @@ +import { spawn } from "node:child_process"; +import fs from "node:fs"; +import net from "node:net"; +import { setTimeout as sleep } from "node:timers/promises"; + +const POLL_INTERVAL_MS = 250; +const STOP_POLL_INTERVAL_MS = 50; +const DEFAULT_GRACE_MS = 5000; +const KILL_WAIT_MS = 2000; + +export type StartDetachedOptions = { + command: string[]; + cwd: string; + env: NodeJS.ProcessEnv; + logFile: string; + pidFile: string; +}; + +export type WaitForHttpOptions = { + url: string; + pid: number; + timeoutMs: number; +}; + +function reservePort(): Promise { + return new Promise((resolve, reject) => { + const server = net.createServer(); + server.on("error", reject); + server.listen(0, () => resolve(server)); + }); +} + +/** + * Finds free ports. + * + * All of them are held until the last one is found, so the same port is never returned twice. + * + * @param count The number of ports. + * @returns The ports. + */ +export async function getFreePorts(count: number): Promise { + const servers = await Promise.all(Array.from({ length: count }, () => reservePort())); + const ports = servers.map((server) => (server.address() as net.AddressInfo).port); + await Promise.all(servers.map((server) => new Promise((resolve) => server.close(resolve)))); + return ports; +} + +/** + * Starts a command which outlives this process, in its own process group. + * + * @param options The command and the files receiving its output and pid. + * @returns The pid, which is also the id of the process group. + */ +export function startDetached({ command, cwd, env, logFile, pidFile }: StartDetachedOptions): number { + const [file, ...args] = command as [string, ...string[]]; + const log = fs.openSync(logFile, "a"); + const child = spawn(file, args, { cwd, env, detached: true, stdio: ["ignore", log, log] }); + fs.closeSync(log); + child.unref(); + fs.writeFileSync(pidFile, String(child.pid)); + return child.pid!; +} + +function isRunning(id: number): boolean { + try { + process.kill(id, 0); + return true; + } catch { + return false; + } +} + +/** + * Waits for a server to answer, any HTTP status counts as apps do not always serve `/`. + * + * @param options The URL to poll, the server's pid and how long to wait. + * @returns How the wait ended. + */ +export async function waitForHttp({ + url, + pid, + timeoutMs, +}: WaitForHttpOptions): Promise<"ready" | "exited" | "timeout"> { + const deadline = Date.now() + timeoutMs; + while (Date.now() < deadline) { + if (!isRunning(pid)) { + return "exited"; + } + try { + await fetch(url, { redirect: "manual", signal: AbortSignal.timeout(POLL_INTERVAL_MS * 4) }); + return "ready"; + } catch { + await sleep(POLL_INTERVAL_MS); + } + } + return "timeout"; +} + +function signalGroup(pid: number, signal: NodeJS.Signals): void { + try { + process.kill(-pid, signal); + } catch (error) { + if ((error as NodeJS.ErrnoException).code !== "ESRCH") { + throw error; + } + } +} + +async function waitForGroupExit(pid: number, timeoutMs: number): Promise { + const deadline = Date.now() + timeoutMs; + while (isRunning(-pid) && Date.now() < deadline) { + await sleep(STOP_POLL_INTERVAL_MS); + } +} + +/** + * Stops the process group recorded in a pid file, it does nothing if there is no such file. + * + * @param pidFile The file written by `startDetached`. + * @param graceMs How long the group has to exit on SIGTERM before it gets SIGKILL. + */ +export async function stopProcessGroup(pidFile: string, graceMs = DEFAULT_GRACE_MS): Promise { + if (!fs.existsSync(pidFile)) { + return; + } + const pid = Number(fs.readFileSync(pidFile, "utf8")); + + signalGroup(pid, "SIGTERM"); + await waitForGroupExit(pid, graceMs); + signalGroup(pid, "SIGKILL"); + await waitForGroupExit(pid, KILL_WAIT_MS); + + fs.rmSync(pidFile); +} From e3ce3f2b992107dc9822538f7659df9c0d90849e Mon Sep 17 00:00:00 2001 From: Nicolas Dorseuil Date: Sat, 31 Oct 2026 16:07:00 +0100 Subject: [PATCH 03/21] test: implement the Next.js harness deploy, logs and cleanup hooks Co-Authored-By: Claude Opus 5.5 (1M context) --- packages/tests-next-suite/bin/e2e-cleanup.sh | 6 + packages/tests-next-suite/bin/e2e-deploy.sh | 6 + packages/tests-next-suite/bin/e2e-logs.sh | 6 + packages/tests-next-suite/src/env.ts | 2 +- packages/tests-next-suite/src/hook-entry.ts | 34 ++++ packages/tests-next-suite/src/hooks.spec.ts | 200 +++++++++++++++++++ packages/tests-next-suite/src/hooks.ts | 159 +++++++++++++++ 7 files changed, 412 insertions(+), 1 deletion(-) create mode 100755 packages/tests-next-suite/bin/e2e-cleanup.sh create mode 100755 packages/tests-next-suite/bin/e2e-deploy.sh create mode 100755 packages/tests-next-suite/bin/e2e-logs.sh create mode 100644 packages/tests-next-suite/src/hook-entry.ts create mode 100644 packages/tests-next-suite/src/hooks.spec.ts create mode 100644 packages/tests-next-suite/src/hooks.ts diff --git a/packages/tests-next-suite/bin/e2e-cleanup.sh b/packages/tests-next-suite/bin/e2e-cleanup.sh new file mode 100755 index 00000000..a3ba6609 --- /dev/null +++ b/packages/tests-next-suite/bin/e2e-cleanup.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash +set -euo pipefail + +PKG_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" +export TSX_TSCONFIG_PATH="$PKG_DIR/tsconfig.json" +exec "$PKG_DIR/node_modules/.bin/tsx" "$PKG_DIR/src/hook-entry.ts" cleanup diff --git a/packages/tests-next-suite/bin/e2e-deploy.sh b/packages/tests-next-suite/bin/e2e-deploy.sh new file mode 100755 index 00000000..5b3f6aad --- /dev/null +++ b/packages/tests-next-suite/bin/e2e-deploy.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash +set -euo pipefail + +PKG_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" +export TSX_TSCONFIG_PATH="$PKG_DIR/tsconfig.json" +exec "$PKG_DIR/node_modules/.bin/tsx" "$PKG_DIR/src/hook-entry.ts" deploy diff --git a/packages/tests-next-suite/bin/e2e-logs.sh b/packages/tests-next-suite/bin/e2e-logs.sh new file mode 100755 index 00000000..c86e6b26 --- /dev/null +++ b/packages/tests-next-suite/bin/e2e-logs.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash +set -euo pipefail + +PKG_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" +export TSX_TSCONFIG_PATH="$PKG_DIR/tsconfig.json" +exec "$PKG_DIR/node_modules/.bin/tsx" "$PKG_DIR/src/hook-entry.ts" logs diff --git a/packages/tests-next-suite/src/env.ts b/packages/tests-next-suite/src/env.ts index c8c751bf..03af7c26 100644 --- a/packages/tests-next-suite/src/env.ts +++ b/packages/tests-next-suite/src/env.ts @@ -5,7 +5,7 @@ export const ENV = { BASE_ENV_FILE: "OPEN_NEXT_SUITE_BASE_ENV_FILE", } as const; -const HARNESS_ENV_PREFIXES = ["NEXT_TEST_", "JEST_", "NODE_", "npm_", "PNPM_"]; +const HARNESS_ENV_PREFIXES = ["OPEN_NEXT_SUITE_", "NEXT_TEST_", "JEST_", "NODE_", "npm_", "PNPM_"]; /** * Returns the environment for commands run by the hooks. diff --git a/packages/tests-next-suite/src/hook-entry.ts b/packages/tests-next-suite/src/hook-entry.ts new file mode 100644 index 00000000..188ff83c --- /dev/null +++ b/packages/tests-next-suite/src/hook-entry.ts @@ -0,0 +1,34 @@ +import { ENV } from "./env.js"; +import { cleanup, deploy, logs } from "./hooks.js"; +import { getTarget } from "./targets.js"; + +const appDir = process.cwd(); + +async function main(hook: string | undefined): Promise { + switch (hook) { + case "deploy": + await deploy({ + appDir, + env: process.env, + target: getTarget(process.env[ENV.TARGET]), + stdout: (line) => console.log(line), + stderr: (line) => console.error(line), + }); + break; + case "logs": + console.log(logs(appDir)); + break; + case "cleanup": + await cleanup(appDir); + break; + default: + throw new Error(`Unknown hook "${hook}"`); + } +} + +try { + await main(process.argv[2]); +} catch (error) { + console.error(error instanceof Error ? error.message : error); + process.exitCode = 1; +} diff --git a/packages/tests-next-suite/src/hooks.spec.ts b/packages/tests-next-suite/src/hooks.spec.ts new file mode 100644 index 00000000..00c655d5 --- /dev/null +++ b/packages/tests-next-suite/src/hooks.spec.ts @@ -0,0 +1,200 @@ +import fs from "node:fs"; +import os from "node:os"; +import path from "node:path"; + +import { afterEach, beforeEach, describe, expect, test } from "vitest"; + +import { ENV } from "./env.js"; +import { BUILD_LOG, PID_FILE, SERVER_LOG, cleanup, deploy, logs } from "./hooks.js"; +import type { Target } from "./targets.js"; + +const NOOP = ["node", "-e", ""]; +/** Prints what the harness' `post-build` script prints. */ +const BUILD_OK = `console.log("BUILD_ID: abc\\nDEPLOYMENT_ID: " + process.env.NEXT_DEPLOYMENT_ID + "\\nIMMUTABLE_ASSET_TOKEN: undefined")`; +const SERVE = `require("node:http").createServer((_, res) => res.end("ok")).listen(process.env.PORT)`; + +let appDir: string; +let tarballsDir: string; +let baseEnvFile: string; +let out: string[]; +let err: string[]; + +function makeTarget(overrides: Partial = {}): Target { + return { + name: "core", + packages: [], + extraDependencies: {}, + templateFiles: [], + buildCommand: ["node", "-e", BUILD_OK], + startCommand: () => ["node", "-e", SERVE], + ...overrides, + }; +} + +function runDeploy(target: Target, env: NodeJS.ProcessEnv = {}, readyTimeoutMs = 5000): Promise { + return deploy({ + appDir, + target, + env: { + ...process.env, + NODE_ENV: undefined, + [ENV.TARBALLS_DIR]: tarballsDir, + [ENV.BASE_ENV_FILE]: baseEnvFile, + ...env, + }, + stdout: (line) => out.push(line), + stderr: (line) => err.push(line), + installCommand: NOOP, + readyTimeoutMs, + }); +} + +function record(name: string, value: string): string { + return `require("node:fs").writeFileSync(${JSON.stringify(path.join(appDir, name))}, String(${value}))`; +} + +function read(name: string): string { + return fs.readFileSync(path.join(appDir, name), "utf8"); +} + +beforeEach(() => { + appDir = fs.mkdtempSync(path.join(os.tmpdir(), "next-suite-hooks-")); + tarballsDir = fs.mkdtempSync(path.join(os.tmpdir(), "next-suite-hooks-tarballs-")); + baseEnvFile = path.join(tarballsDir, "base-env.json"); + fs.writeFileSync(baseEnvFile, JSON.stringify(Object.keys(process.env))); + fs.writeFileSync(path.join(appDir, "package.json"), "{}"); + out = []; + err = []; +}); + +afterEach(async () => { + await cleanup(appDir); +}); + +describe("deploy", () => { + test("prints only the URL on stdout", async () => { + const target = makeTarget({ + buildCommand: ["node", "-e", `console.log("noise"); ${BUILD_OK}`], + }); + + await runDeploy(target); + + expect(out).toHaveLength(1); + expect(out[0]).toMatch(/^http:\/\/localhost:\d+$/); + }); + + test("serves on the printed URL", async () => { + await runDeploy(makeTarget()); + + expect(await (await fetch(out[0]!)).text()).toBe("ok"); + }); + + test("strips NODE_ENV from build and start", async () => { + const target = makeTarget({ + buildCommand: ["node", "-e", `${record("build-env", "process.env.NODE_ENV")}; ${BUILD_OK}`], + startCommand: () => ["node", "-e", `${record("start-env", "process.env.NODE_ENV")}; ${SERVE}`], + }); + + await runDeploy(target, { NODE_ENV: "development" }); + + expect(read("build-env")).toBe("undefined"); + expect(read("start-env")).toBe("production"); + }); + + test("sets a per-app NEXT_DEPLOYMENT_ID for the build", async () => { + await runDeploy(makeTarget()); + + expect(read(BUILD_LOG)).toContain(`DEPLOYMENT_ID: opennext-${path.basename(appDir)}`); + }); + + test("retries on new ports when the server exits during startup", async () => { + const marker = path.join(appDir, "started-once"); + const seenPorts = path.join(appDir, "ports"); + const script = ` + const fs = require("node:fs"); + fs.appendFileSync(${JSON.stringify(seenPorts)}, process.env.PORT + "\\n"); + if (!fs.existsSync(${JSON.stringify(marker)})) { + fs.writeFileSync(${JSON.stringify(marker)}, ""); + process.exit(1); + } + ${SERVE} + `; + + await runDeploy(makeTarget({ startCommand: () => ["node", "-e", script] })); + + const ports = read("ports").trim().split("\n"); + expect(ports).toHaveLength(2); + expect(ports[0]).not.toBe(ports[1]); + expect(out[0]).toBe(`http://localhost:${ports[1]}`); + }); + + test("fails after 3 startup attempts with the server log tail", async () => { + const target = makeTarget({ + startCommand: () => ["node", "-e", `console.error("cannot start"); process.exit(1)`], + }); + + await expect(runDeploy(target)).rejects.toThrow(/after 3 attempts[\s\S]*cannot start/); + + expect(out).toEqual([]); + }); + + test("reports a failed build with the build log tail and starts no server", async () => { + const target = makeTarget({ + buildCommand: ["node", "-e", `console.error("build exploded"); process.exit(1)`], + startCommand: () => ["node", "-e", `${record("started", "1")}; ${SERVE}`], + }); + + await expect(runDeploy(target)).rejects.toThrow(/build exploded/); + + expect(fs.existsSync(path.join(appDir, "started"))).toBe(false); + }); + + test("fails when the build output has no BUILD_ID marker", async () => { + await expect(runDeploy(makeTarget({ buildCommand: NOOP }))).rejects.toThrow(/BUILD_ID/); + }); + + test("stops the server when it never becomes ready", async () => { + const target = makeTarget({ startCommand: () => ["node", "-e", "setInterval(() => {}, 1000)"] }); + + await expect(runDeploy(target, {}, 300)).rejects.toThrow(/did not become ready/); + + expect(fs.existsSync(path.join(appDir, PID_FILE))).toBe(false); + }); + + test("passes test-only env to prepareRuntimeEnv", async () => { + const seen: Record[] = []; + const target = makeTarget({ prepareRuntimeEnv: (_dir, env) => seen.push(env) }); + + await runDeploy(target, { FROM_THE_TEST: "bar" }); + + expect(seen).toEqual([{ FROM_THE_TEST: "bar" }]); + }); +}); + +describe("logs", () => { + test("emits both immutable-asset markers ahead of the replayed logs", () => { + fs.writeFileSync( + path.join(appDir, BUILD_LOG), + "BUILD_ID: abc\nDEPLOYMENT_ID: d\nIMMUTABLE_ASSET_TOKEN: undefined\n" + ); + fs.writeFileSync(path.join(appDir, SERVER_LOG), "listening\n"); + + const output = logs(appDir); + + expect(output).toMatch(/BUILD_ID: abc/); + expect(output).toMatch(/DEPLOYMENT_ID: d/); + expect(output).toMatch(/IMMUTABLE_ASSET_TOKEN: .+/); + expect(output).toMatch(/NEXT_SUPPORTS_IMMUTABLE_ASSETS: 0/); + expect(output).toContain("listening"); + }); + + test("adds IMMUTABLE_ASSET_TOKEN when the build output lacks it", () => { + fs.writeFileSync(path.join(appDir, BUILD_LOG), "BUILD_ID: abc\nDEPLOYMENT_ID: d\n"); + + expect(logs(appDir)).toMatch(/IMMUTABLE_ASSET_TOKEN: undefined/); + }); + + test("does not throw before a build log exists", () => { + expect(() => logs(appDir)).not.toThrow(); + }); +}); diff --git a/packages/tests-next-suite/src/hooks.ts b/packages/tests-next-suite/src/hooks.ts new file mode 100644 index 00000000..51b6dfad --- /dev/null +++ b/packages/tests-next-suite/src/hooks.ts @@ -0,0 +1,159 @@ +import { spawnSync } from "node:child_process"; +import fs from "node:fs"; +import path from "node:path"; + +import { ENV, hookEnv, testOnlyEnv } from "./env.js"; +import { prepareApp } from "./prepare-app.js"; +import { getFreePorts, startDetached, stopProcessGroup, waitForHttp } from "./process.js"; +import { REPO_ROOT, type Target } from "./targets.js"; + +export const BUILD_LOG = ".adapter-build.log"; +export const SERVER_LOG = ".adapter-server.log"; +export const PID_FILE = ".adapter-server.pid"; + +const DEFAULT_READY_TIMEOUT_MS = 120_000; +const START_ATTEMPTS = 3; +const LOG_TAIL_LINES = 40; +const INSTALL_COMMAND = ["pnpm", "install", "--no-frozen-lockfile", "--prefer-offline"]; + +export type HookDeps = { + appDir: string; + env: NodeJS.ProcessEnv; + target: Target; + stdout: (line: string) => void; + stderr: (line: string) => void; + readyTimeoutMs?: number; + installCommand?: string[]; +}; + +function readIfExists(file: string): string { + return fs.existsSync(file) ? fs.readFileSync(file, "utf8") : ""; +} + +function logTail(file: string): string { + return readIfExists(file).trimEnd().split("\n").slice(-LOG_TAIL_LINES).join("\n"); +} + +function requireEnv(env: NodeJS.ProcessEnv, name: string): string { + const value = env[name]; + if (!value) { + throw new Error(`${name} is not set, the hooks must be started through the next-suite CLI`); + } + return value; +} + +/** Runs a command to completion with its output in the build log, as stdout belongs to the deployment URL. */ +function runLogged(command: string[], cwd: string, env: NodeJS.ProcessEnv): void { + const [file, ...args] = command as [string, ...string[]]; + const logFile = path.join(cwd, BUILD_LOG); + const log = fs.openSync(logFile, "a"); + const { status, error } = spawnSync(file, args, { cwd, env, stdio: ["ignore", log, log] }); + fs.closeSync(log); + if (status !== 0) { + throw new Error( + `\`${command.join(" ")}\` failed (${error?.message ?? `exit code ${status}`}):\n${logTail(logFile)}` + ); + } +} + +/** Starts the server on free ports, a port taken in the meantime by a concurrent test only costs a retry. */ +async function startServer( + target: Target, + appDir: string, + env: NodeJS.ProcessEnv, + readyTimeoutMs: number +): Promise { + const logFile = path.join(appDir, SERVER_LOG); + const pidFile = path.join(appDir, PID_FILE); + + for (let attempt = 1; attempt <= START_ATTEMPTS; attempt++) { + const [port, inspectorPort] = (await getFreePorts(2)) as [number, number]; + const url = `http://localhost:${port}`; + const pid = startDetached({ + command: target.startCommand({ port, inspectorPort }), + cwd: appDir, + env: { ...env, PORT: String(port) }, + logFile, + pidFile, + }); + + const result = await waitForHttp({ url, pid, timeoutMs: readyTimeoutMs }); + if (result === "ready") { + return url; + } + await stopProcessGroup(pidFile); + if (result === "timeout") { + throw new Error(`The server did not become ready in ${readyTimeoutMs}ms:\n${logTail(logFile)}`); + } + } + + throw new Error(`The server exited during startup after ${START_ATTEMPTS} attempts:\n${logTail(logFile)}`); +} + +/** + * Builds and starts the app the harness created in `appDir`. + * + * @param deps The app, its target and where the output goes. + * @throws When any step fails, nothing is left running then. + */ +export async function deploy({ + appDir, + env, + target, + stdout, + stderr, + readyTimeoutMs = DEFAULT_READY_TIMEOUT_MS, + installCommand = INSTALL_COMMAND, +}: HookDeps): Promise { + const deploymentEnv = { ...hookEnv(env), NEXT_DEPLOYMENT_ID: `opennext-${path.basename(appDir)}` }; + const { packageManager } = JSON.parse(fs.readFileSync(path.join(REPO_ROOT, "package.json"), "utf8")); + const baseKeys: string[] = JSON.parse(fs.readFileSync(requireEnv(env, ENV.BASE_ENV_FILE), "utf8")); + + stderr(`Preparing the app for ${target.name}`); + prepareApp({ appDir, target, tarballsDir: requireEnv(env, ENV.TARBALLS_DIR), packageManager }); + runLogged(installCommand, appDir, deploymentEnv); + + stderr("Building the app"); + runLogged(target.buildCommand, appDir, deploymentEnv); + if (!/BUILD_ID: .+/.test(readIfExists(path.join(appDir, BUILD_LOG)))) { + throw new Error(`The build output has no BUILD_ID marker, did the harness' post-build run?`); + } + + target.prepareRuntimeEnv?.(appDir, testOnlyEnv(env, baseKeys)); + + stderr("Starting the server"); + stdout( + await startServer( + target, + appDir, + { ...deploymentEnv, NODE_ENV: "production", WRANGLER_SEND_METRICS: "false" }, + readyTimeoutMs + ) + ); +} + +/** + * Prints what the harness parses from a deployment, then the logs to debug it. + * + * `BUILD_ID`, `DEPLOYMENT_ID` and `IMMUTABLE_ASSET_TOKEN` are printed by the harness' `post-build` script + * and end up in the build log. Depending on the Next.js version, the harness expects + * `IMMUTABLE_ASSET_TOKEN` or `NEXT_SUPPORTS_IMMUTABLE_ASSETS`, so both are always there. + * + * @param appDir The app directory. + * @returns The text for the harness. + */ +export function logs(appDir: string): string { + const buildLog = readIfExists(path.join(appDir, BUILD_LOG)); + const immutableToken = /IMMUTABLE_ASSET_TOKEN: .+/.test(buildLog) ? "" : "IMMUTABLE_ASSET_TOKEN: undefined\n"; + const serverLog = readIfExists(path.join(appDir, SERVER_LOG)); + return `NEXT_SUPPORTS_IMMUTABLE_ASSETS: 0\n${immutableToken}${buildLog}\n=== ${SERVER_LOG} ===\n${serverLog}`; +} + +/** + * Stops the server of a deployment. + * + * @param appDir The app directory. + */ +export async function cleanup(appDir: string): Promise { + await stopProcessGroup(path.join(appDir, PID_FILE)); +} From 98782b3dd029ddd304fec219579811cba0eb593d Mon Sep 17 00:00:00 2001 From: Nicolas Dorseuil Date: Sat, 31 Oct 2026 16:07:08 +0100 Subject: [PATCH 04/21] test: add per-adapter disable lists for the Next.js suite Co-Authored-By: Claude Opus 5.5 (1M context) --- .../tests-next-suite/disabled/cloudflare.json | 1 + packages/tests-next-suite/disabled/core.json | 1 + .../tests-next-suite/src/disabled.spec.ts | 74 +++++++++++++++++ packages/tests-next-suite/src/disabled.ts | 82 +++++++++++++++++++ 4 files changed, 158 insertions(+) create mode 100644 packages/tests-next-suite/disabled/cloudflare.json create mode 100644 packages/tests-next-suite/disabled/core.json create mode 100644 packages/tests-next-suite/src/disabled.spec.ts create mode 100644 packages/tests-next-suite/src/disabled.ts diff --git a/packages/tests-next-suite/disabled/cloudflare.json b/packages/tests-next-suite/disabled/cloudflare.json new file mode 100644 index 00000000..0967ef42 --- /dev/null +++ b/packages/tests-next-suite/disabled/cloudflare.json @@ -0,0 +1 @@ +{} diff --git a/packages/tests-next-suite/disabled/core.json b/packages/tests-next-suite/disabled/core.json new file mode 100644 index 00000000..0967ef42 --- /dev/null +++ b/packages/tests-next-suite/disabled/core.json @@ -0,0 +1 @@ +{} diff --git a/packages/tests-next-suite/src/disabled.spec.ts b/packages/tests-next-suite/src/disabled.spec.ts new file mode 100644 index 00000000..72ae9110 --- /dev/null +++ b/packages/tests-next-suite/src/disabled.spec.ts @@ -0,0 +1,74 @@ +import fs from "node:fs"; +import os from "node:os"; +import path from "node:path"; + +import { describe, expect, test } from "vitest"; + +import { findStaleEntries, loadDisabled, toManifest } from "./disabled.js"; +import { PACKAGE_DIR } from "./targets.js"; + +function writeList(content: unknown): string { + const dir = fs.mkdtempSync(path.join(os.tmpdir(), "next-suite-disabled-")); + const file = path.join(dir, "list.json"); + fs.writeFileSync(file, JSON.stringify(content)); + return file; +} + +describe("toManifest", () => { + test("a file entry becomes an exact-path exclusion", () => { + expect(toManifest({ "test/e2e/a.test.ts": { reason: "x" } })).toEqual({ + version: 2, + suites: {}, + rules: { include: [], exclude: ["test/e2e/a.test.ts"] }, + }); + }); + + test("a case entry excludes only those cases", () => { + expect(toManifest({ "test/e2e/a.test.ts": { reason: "x", cases: ["suite case"] } })).toEqual({ + version: 2, + suites: { "test/e2e/a.test.ts": { failed: ["suite case"] } }, + rules: { include: [], exclude: [] }, + }); + }); + + test("an empty list still yields a mergeable manifest", () => { + expect(toManifest({}).rules).toEqual({ include: [], exclude: [] }); + }); +}); + +describe("loadDisabled", () => { + test("returns a valid list", () => { + const list = { "test/e2e/a.test.ts": { reason: "x", cases: ["suite case"] } }; + + expect(loadDisabled(writeList(list))).toEqual(list); + }); + + test.each([ + ["a missing reason", "test/e2e/a.test.ts", {}], + ["a blank reason", "test/e2e/a.test.ts", { reason: " " }], + ["an empty cases array", "test/e2e/a.test.ts", { reason: "x", cases: [] }], + ["an absolute path", "/x/test/e2e/a.test.ts", { reason: "x" }], + ["a non-test path", "test/e2e/a.ts", { reason: "x" }], + ])("rejects %s, naming the entry", (_name, file, entry) => { + expect(() => loadDisabled(writeList({ [file]: entry }))).toThrow(file); + }); +}); + +describe("findStaleEntries", () => { + test("reports paths missing from the Next checkout", () => { + const nextDir = fs.mkdtempSync(path.join(os.tmpdir(), "next-suite-checkout-")); + fs.mkdirSync(path.join(nextDir, "test/e2e"), { recursive: true }); + fs.writeFileSync(path.join(nextDir, "test/e2e/a.test.ts"), ""); + + const stale = findStaleEntries( + { "test/e2e/a.test.ts": { reason: "x" }, "test/e2e/gone.test.ts": { reason: "x" } }, + nextDir + ); + + expect(stale).toEqual(["test/e2e/gone.test.ts"]); + }); +}); + +test.each(["core", "cloudflare"])("the committed %s list is valid", (target) => { + expect(() => loadDisabled(path.join(PACKAGE_DIR, "disabled", `${target}.json`))).not.toThrow(); +}); diff --git a/packages/tests-next-suite/src/disabled.ts b/packages/tests-next-suite/src/disabled.ts new file mode 100644 index 00000000..8b1e8b2a --- /dev/null +++ b/packages/tests-next-suite/src/disabled.ts @@ -0,0 +1,82 @@ +import fs from "node:fs"; +import path from "node:path"; + +export type DisabledEntry = { + reason: string; + /** Full jest names of the disabled cases, the whole file is disabled without it. */ + cases?: string[]; +}; + +/** Tests disabled for one adapter, keyed by a path like `test/e2e/foo/foo.test.ts`. */ +export type DisabledList = Record; + +/** The format of `NEXT_EXTERNAL_TESTS_FILTERS` files. */ +export type SuiteManifest = { + version: 2; + suites: Record; + rules: { include: string[]; exclude: string[] }; +}; + +const TEST_PATH = /^test\/.+\.test\.(js|ts|tsx)$/; + +function getEntryProblem(file: string, entry: Partial): string | undefined { + if (!TEST_PATH.test(file)) { + return "the key must be a test path relative to the Next.js repository"; + } + if (!entry.reason?.trim()) { + return "a reason is required"; + } + if (entry.cases?.length === 0) { + return "cases can not be empty, remove it to disable the whole file"; + } + return undefined; +} + +/** + * Loads a disable list. + * + * @param file The path of the list. + * @returns The list. + * @throws When an entry is invalid. + */ +export function loadDisabled(file: string): DisabledList { + const list: Record> = JSON.parse(fs.readFileSync(file, "utf8")); + for (const [testFile, entry] of Object.entries(list)) { + const problem = getEntryProblem(testFile, entry); + if (problem) { + throw new Error(`Invalid entry "${testFile}" in ${file}: ${problem}`); + } + } + return list as DisabledList; +} + +/** + * Converts a disable list to the format the harness filters tests with. + * + * Whole files use exact paths, which take precedence over the manifests they are merged with. + * + * @param list The disable list. + * @returns The manifest. + */ +export function toManifest(list: DisabledList): SuiteManifest { + const manifest: SuiteManifest = { version: 2, suites: {}, rules: { include: [], exclude: [] } }; + for (const [file, { cases }] of Object.entries(list)) { + if (cases) { + manifest.suites[file] = { failed: cases }; + } else { + manifest.rules.exclude.push(file); + } + } + return manifest; +} + +/** + * Finds the entries which disable nothing, as happens when a Next.js update renames a test. + * + * @param list The disable list. + * @param nextDir The Next.js checkout. + * @returns The paths missing from the checkout. + */ +export function findStaleEntries(list: DisabledList, nextDir: string): string[] { + return Object.keys(list).filter((file) => !fs.existsSync(path.join(nextDir, file))); +} From 36f1f177d79aec4b7c01031044319720863a3f46 Mon Sep 17 00:00:00 2001 From: Nicolas Dorseuil Date: Sat, 31 Oct 2026 17:05:48 +0100 Subject: [PATCH 05/21] test: add a local runner for the Next.js suite Co-Authored-By: Claude Opus 5.5 (1M context) --- package.json | 1 + packages/tests-next-suite/src/cli.ts | 104 ++++++++++++++++++ packages/tests-next-suite/src/env.spec.ts | 35 ++++++ packages/tests-next-suite/src/env.ts | 26 +++++ .../tests-next-suite/src/next-checkout.ts | 64 +++++++++++ .../tests-next-suite/src/prepare-app.spec.ts | 26 +++++ packages/tests-next-suite/src/prepare-app.ts | 15 ++- .../tests-next-suite/src/run-suite.spec.ts | 91 +++++++++++++++ packages/tests-next-suite/src/run-suite.ts | 74 +++++++++++++ 9 files changed, 435 insertions(+), 1 deletion(-) create mode 100644 packages/tests-next-suite/src/cli.ts create mode 100644 packages/tests-next-suite/src/env.spec.ts create mode 100644 packages/tests-next-suite/src/next-checkout.ts create mode 100644 packages/tests-next-suite/src/run-suite.spec.ts create mode 100644 packages/tests-next-suite/src/run-suite.ts diff --git a/package.json b/package.json index 77587488..5dbd0915 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,7 @@ "e2e:dev": "pnpm build && pnpm -r e2e:dev", "install-playwright": "playwright install --with-deps", "benchmark": "pnpm run --filter benchmarking benchmark", + "next-suite": "pnpm --filter tests-next-suite next-suite", "postinstall": "pnpm build:opennext" }, "devDependencies": { diff --git a/packages/tests-next-suite/src/cli.ts b/packages/tests-next-suite/src/cli.ts new file mode 100644 index 00000000..d4f67967 --- /dev/null +++ b/packages/tests-next-suite/src/cli.ts @@ -0,0 +1,104 @@ +import { spawnSync } from "node:child_process"; +import fs from "node:fs"; +import os from "node:os"; +import path from "node:path"; +import { parseArgs } from "node:util"; + +import { findStaleEntries, loadDisabled, toManifest } from "./disabled.js"; +import { DEFAULT_NEXT_REF, ensureNextCheckout, packTarballs } from "./next-checkout.js"; +import { buildRunSuiteArgs, buildRunSuiteEnv } from "./run-suite.js"; +import { PACKAGE_DIR, getTarget, type TargetName } from "./targets.js"; + +const CACHE_DIR = path.join(PACKAGE_DIR, ".cache"); +const TEST_APPS_DIR = path.join(os.homedir(), ".cache/opennext-next-suite/apps"); + +const USAGE = `Usage: + pnpm next-suite setup [--ref ] + pnpm next-suite run --target [--group 1/16] [-c 2] [--ref ] [--include-disabled] [test paths...]`; + +/** Resolves the Next.js checkout, set `NEXT_SUITE_NEXT_DIR` to use an existing built one. */ +function resolveNextDir(ref: string): string { + const existing = process.env.NEXT_SUITE_NEXT_DIR; + if (existing) { + return path.resolve(existing); + } + const dir = path.join(CACHE_DIR, "next.js"); + ensureNextCheckout(ref, dir); + return dir; +} + +/** Writes the harness manifest of a target's disabled tests. */ +function writeDisabledManifest(target: TargetName, nextDir: string): string { + const list = loadDisabled(path.join(PACKAGE_DIR, "disabled", `${target}.json`)); + for (const file of findStaleEntries(list, nextDir)) { + console.error(`Warning: ${file} is disabled for ${target} but does not exist in this Next.js version`); + } + const manifest = path.join(CACHE_DIR, `disabled-${target}.json`); + fs.writeFileSync(manifest, JSON.stringify(toManifest(list), null, 2)); + return manifest; +} + +function run(args: string[]): number { + const { values, positionals } = parseArgs({ + args, + allowPositionals: true, + options: { + target: { type: "string" }, + group: { type: "string" }, + concurrency: { type: "string", short: "c", default: "2" }, + ref: { type: "string", default: DEFAULT_NEXT_REF }, + "include-disabled": { type: "boolean", default: false }, + }, + }); + const target = getTarget(values.target).name; + const nextDir = resolveNextDir(values.ref); + + fs.mkdirSync(CACHE_DIR, { recursive: true }); + fs.mkdirSync(TEST_APPS_DIR, { recursive: true }); + const tarballsDir = path.join(CACHE_DIR, "tarballs"); + packTarballs(tarballsDir); + + const baseEnvFile = path.join(CACHE_DIR, "base-env.json"); + const env = buildRunSuiteEnv({ + target, + pkgDir: PACKAGE_DIR, + base: process.env, + tarballsDir, + baseEnvFile, + testAppsDir: TEST_APPS_DIR, + disabledManifest: values["include-disabled"] ? null : writeDisabledManifest(target, nextDir), + }); + fs.writeFileSync(baseEnvFile, JSON.stringify(Object.keys(env))); + + const { status } = spawnSync( + process.execPath, + buildRunSuiteArgs({ group: values.group, concurrency: Number(values.concurrency), tests: positionals }), + { cwd: nextDir, env, stdio: "inherit" } + ); + return status ?? 1; +} + +function setup(args: string[]): number { + const { values } = parseArgs({ args, options: { ref: { type: "string", default: DEFAULT_NEXT_REF } } }); + resolveNextDir(values.ref); + return 0; +} + +function main([command, ...args]: string[]): number { + switch (command) { + case "setup": + return setup(args); + case "run": + return run(args); + default: + console.error(USAGE); + return 1; + } +} + +try { + process.exitCode = main(process.argv.slice(2)); +} catch (error) { + console.error(error instanceof Error ? error.message : error); + process.exitCode = 1; +} diff --git a/packages/tests-next-suite/src/env.spec.ts b/packages/tests-next-suite/src/env.spec.ts new file mode 100644 index 00000000..332ed1ac --- /dev/null +++ b/packages/tests-next-suite/src/env.spec.ts @@ -0,0 +1,35 @@ +import { describe, expect, test } from "vitest"; + +import { toolchainEnv } from "./env.js"; + +const linux = { execPath: "/node/24/bin/node", platform: "linux", arch: "x64" } as const; + +describe("toolchainEnv", () => { + test("puts the running Node first so version managers do not switch it inside the checkout", () => { + expect(toolchainEnv({ PATH: "/shims:/usr/bin" }, linux).PATH).toBe("/node/24/bin:/shims:/usr/bin"); + }); + + test("tolerates a missing PATH", () => { + expect(toolchainEnv({}, linux).PATH).toBe("/node/24/bin"); + }); + + test("strips NODE_ENV", () => { + expect(toolchainEnv({ NODE_ENV: "development" }, linux).NODE_ENV).toBeUndefined(); + }); + + test("makes the older Playwright pinned by Next.js accept newer Linux distributions", () => { + expect(toolchainEnv({}, linux).PLAYWRIGHT_HOST_PLATFORM_OVERRIDE).toBe("ubuntu24.04-x64"); + }); + + test("keeps an explicit Playwright platform", () => { + const env = toolchainEnv({ PLAYWRIGHT_HOST_PLATFORM_OVERRIDE: "debian12-x64" }, linux); + + expect(env.PLAYWRIGHT_HOST_PLATFORM_OVERRIDE).toBe("debian12-x64"); + }); + + test("leaves Playwright alone elsewhere", () => { + const mac = { execPath: "/node/bin/node", platform: "darwin", arch: "arm64" } as const; + + expect(toolchainEnv({}, mac).PLAYWRIGHT_HOST_PLATFORM_OVERRIDE).toBeUndefined(); + }); +}); diff --git a/packages/tests-next-suite/src/env.ts b/packages/tests-next-suite/src/env.ts index 03af7c26..2d062c79 100644 --- a/packages/tests-next-suite/src/env.ts +++ b/packages/tests-next-suite/src/env.ts @@ -1,3 +1,5 @@ +import path from "node:path"; + /** Environment variables the CLI uses to configure the harness hooks. */ export const ENV = { TARGET: "OPEN_NEXT_SUITE_TARGET", @@ -5,6 +7,8 @@ export const ENV = { BASE_ENV_FILE: "OPEN_NEXT_SUITE_BASE_ENV_FILE", } as const; +const PLAYWRIGHT_LINUX_PLATFORM = "ubuntu24.04-x64"; + const HARNESS_ENV_PREFIXES = ["OPEN_NEXT_SUITE_", "NEXT_TEST_", "JEST_", "NODE_", "npm_", "PNPM_"]; /** @@ -20,6 +24,28 @@ export function hookEnv(env: NodeJS.ProcessEnv): NodeJS.ProcessEnv { return rest; } +/** + * Returns the environment for commands run inside the Next.js checkout. + * + * The checkout pins Node.js 20 and the Playwright version does not know recent Linux distributions. + * Without this, version managers switch Node.js under the run and Playwright refuses to start. + * + * @param env The base environment. + * @param runtime The running process. + * @returns A copy of the environment which uses the running Node.js. + */ +export function toolchainEnv( + env: NodeJS.ProcessEnv, + { execPath, platform, arch }: Pick = process +): NodeJS.ProcessEnv { + const toolchain = hookEnv(env); + toolchain.PATH = [path.dirname(execPath), env.PATH].filter(Boolean).join(":"); + if (platform === "linux" && arch === "x64") { + toolchain.PLAYWRIGHT_HOST_PLATFORM_OVERRIDE ??= PLAYWRIGHT_LINUX_PLATFORM; + } + return toolchain; +} + /** * Recovers the variables a test asked for. * diff --git a/packages/tests-next-suite/src/next-checkout.ts b/packages/tests-next-suite/src/next-checkout.ts new file mode 100644 index 00000000..38cc0666 --- /dev/null +++ b/packages/tests-next-suite/src/next-checkout.ts @@ -0,0 +1,64 @@ +import { execFileSync } from "node:child_process"; +import fs from "node:fs"; +import path from "node:path"; + +import { toolchainEnv } from "./env.js"; +import { tarballName } from "./prepare-app.js"; +import { REPO_ROOT, TARGETS } from "./targets.js"; + +export const DEFAULT_NEXT_REF = "v16.2.1"; + +const NEXT_REPOSITORY = "https://github.com/vercel/next.js.git"; +const REF_MARKER = ".next-suite-ref"; + +function run(cwd: string, command: string, ...args: string[]): void { + execFileSync(command, args, { cwd, stdio: "inherit", env: toolchainEnv(process.env) }); +} + +/** + * Makes sure `dir` holds a built Next.js checkout of `ref`. + * + * @param ref A tag, branch or commit of the Next.js repository. + * @param dir The checkout directory, it is replaced when it holds another ref. + */ +export function ensureNextCheckout(ref: string, dir: string): void { + const marker = path.join(dir, REF_MARKER); + if (fs.existsSync(marker) && fs.readFileSync(marker, "utf8") === ref) { + return; + } + + fs.rmSync(dir, { recursive: true, force: true }); + fs.mkdirSync(dir, { recursive: true }); + run(dir, "git", "init", "--quiet"); + run(dir, "git", "fetch", "--quiet", "--depth", "1", NEXT_REPOSITORY, ref); + run(dir, "git", "checkout", "--quiet", "FETCH_HEAD"); + + run(dir, "pnpm", "install"); + run(dir, "pnpm", "build"); + run(dir, "pnpm", "install"); + run(dir, "pnpm", "playwright", "install", "chromium"); + + fs.writeFileSync(marker, ref); +} + +/** + * Builds the OpenNext packages and packs them the way they get published. + * + * @param outDir The directory receiving the tarballs, it is emptied first. + */ +export function packTarballs(outDir: string): void { + fs.rmSync(outDir, { recursive: true, force: true }); + fs.mkdirSync(outDir, { recursive: true }); + run(REPO_ROOT, "pnpm", "build:opennext"); + + const packages = new Set(Object.values(TARGETS).flatMap((target) => target.packages)); + for (const name of packages) { + const before = new Set(fs.readdirSync(outDir)); + run(REPO_ROOT, "pnpm", "--filter", name, "pack", "--pack-destination", outDir); + const packed = fs.readdirSync(outDir).find((file) => !before.has(file)); + if (!packed) { + throw new Error(`Packing ${name} produced no tarball in ${outDir}`); + } + fs.renameSync(path.join(outDir, packed), path.join(outDir, tarballName(name))); + } +} diff --git a/packages/tests-next-suite/src/prepare-app.spec.ts b/packages/tests-next-suite/src/prepare-app.spec.ts index a15cfba2..8f43b921 100644 --- a/packages/tests-next-suite/src/prepare-app.spec.ts +++ b/packages/tests-next-suite/src/prepare-app.spec.ts @@ -79,6 +79,32 @@ describe("prepareApp", () => { expect(workspace.allowBuilds).toMatchObject({ esbuild: true, sharp: true, workerd: true }); }); + test("pins what the harness requests as latest to versions this Next.js supports", () => { + prepare(); + + const { overrides } = readWorkspace(); + expect(overrides.typescript).toBe("5.9.3"); + expect(overrides["@types/node"]).toBe("24.0.0"); + }); + + test("adds a next.config when the test app has none, as the OpenNext build requires one", () => { + prepare(); + + expect(fs.readFileSync(path.join(appDir, "next.config.mjs"), "utf8")).toBe("export default {};\n"); + }); + + test.each(["next.config.js", "next.config.ts", "next.config.mjs", "next.config.cjs"])( + "keeps an existing %s", + (file) => { + fs.writeFileSync(path.join(appDir, file), "// from the test"); + + prepare(); + + expect(fs.readdirSync(appDir).filter((name) => name.startsWith("next.config"))).toEqual([file]); + expect(fs.readFileSync(path.join(appDir, file), "utf8")).toBe("// from the test"); + } + ); + test("merges into a pnpm-workspace.yaml shipped by the test app", () => { fs.writeFileSync( path.join(appDir, "pnpm-workspace.yaml"), diff --git a/packages/tests-next-suite/src/prepare-app.ts b/packages/tests-next-suite/src/prepare-app.ts index 56d4fb74..e104f6a6 100644 --- a/packages/tests-next-suite/src/prepare-app.ts +++ b/packages/tests-next-suite/src/prepare-app.ts @@ -5,6 +5,15 @@ import { parse, stringify } from "yaml"; import { PACKAGE_DIR, type Target } from "./targets.js"; +const NEXT_CONFIG_FILES = ["next.config.js", "next.config.ts", "next.config.mjs", "next.config.cjs"]; + +/** + * Versions forced in the apps, where the harness asks for `latest`. + * + * Next.js 16.2 can not load TypeScript 7 and writes a tsconfig TypeScript 6 rejects. + */ +const PINNED_DEPENDENCIES = { typescript: "5.9.3", "@types/node": "24.0.0" }; + export type PrepareAppOptions = { appDir: string; target: Target; @@ -54,10 +63,14 @@ export function prepareApp({ appDir, target, tarballsDir, packageManager }: Prep strictDepBuilds: false, minimumReleaseAge: 0, allowBuilds: { ...workspace.allowBuilds, esbuild: true, sharp: true, workerd: true }, - overrides: { ...workspace.overrides, ...tarballs }, + overrides: { ...workspace.overrides, ...PINNED_DEPENDENCIES, ...tarballs }, }) ); + if (!NEXT_CONFIG_FILES.some((file) => fs.existsSync(path.join(appDir, file)))) { + fs.writeFileSync(path.join(appDir, "next.config.mjs"), "export default {};\n"); + } + for (const file of target.templateFiles) { fs.copyFileSync(path.join(PACKAGE_DIR, "templates", target.name, file), path.join(appDir, file)); } diff --git a/packages/tests-next-suite/src/run-suite.spec.ts b/packages/tests-next-suite/src/run-suite.spec.ts new file mode 100644 index 00000000..f6d7f3a5 --- /dev/null +++ b/packages/tests-next-suite/src/run-suite.spec.ts @@ -0,0 +1,91 @@ +import path from "node:path"; + +import { describe, expect, test } from "vitest"; + +import { buildRunSuiteArgs, buildRunSuiteEnv } from "./run-suite.js"; + +const options = { pkgDir: "/p", tarballsDir: "/t", baseEnvFile: "/b", testAppsDir: "/apps" }; + +describe("buildRunSuiteArgs", () => { + test("never requests KV timings", () => { + expect(buildRunSuiteArgs({ group: "3/16", concurrency: 2, tests: [] })).toEqual([ + "run-tests.js", + "-g", + "3/16", + "-c", + "2", + "--type", + "e2e", + ]); + }); + + test("explicit test paths replace the group", () => { + expect( + buildRunSuiteArgs({ concurrency: 1, tests: ["test/e2e/hello-world/hello-world.test.ts"] }) + ).toEqual(["run-tests.js", "-c", "1", "--type", "e2e", "test/e2e/hello-world/hello-world.test.ts"]); + }); +}); + +describe("buildRunSuiteEnv", () => { + test("layers the target's disabled manifest on the upstream one", () => { + const env = buildRunSuiteEnv({ + ...options, + target: "core", + base: {}, + disabledManifest: "/p/.cache/disabled-core.json", + }); + + expect(env.NEXT_EXTERNAL_TESTS_FILTERS).toBe( + "test/deploy-tests-manifest.json,/p/.cache/disabled-core.json" + ); + expect(env.NEXT_TEST_MODE).toBe("deploy"); + expect(env.IS_TURBOPACK_TEST).toBe("1"); + expect(env.NEXT_JUNIT_TEST_REPORT).toBe("1"); + expect(env.NEXT_TEST_DEPLOY_SCRIPT_PATH).toBe("/p/bin/e2e-deploy.sh"); + expect(env.NEXT_TEST_DEPLOY_LOGS_SCRIPT_PATH).toBe("/p/bin/e2e-logs.sh"); + expect(env.NEXT_TEST_CLEANUP_SCRIPT_PATH).toBe("/p/bin/e2e-cleanup.sh"); + }); + + test("--include-disabled keeps only the upstream filter", () => { + const env = buildRunSuiteEnv({ ...options, target: "core", base: {}, disabledManifest: null }); + + expect(env.NEXT_EXTERNAL_TESTS_FILTERS).toBe("test/deploy-tests-manifest.json"); + }); + + test("creates test apps outside the repository", () => { + const env = buildRunSuiteEnv({ ...options, target: "core", base: {}, disabledManifest: null }); + + expect(env.NEXT_TEST_DIR).toBe("/apps"); + }); + + test("strips NODE_ENV", () => { + const env = buildRunSuiteEnv({ + ...options, + target: "core", + base: { NODE_ENV: "development" }, + disabledManifest: null, + }); + + expect(env.NODE_ENV).toBeUndefined(); + }); + + test("pins the toolchain", () => { + const env = buildRunSuiteEnv({ + ...options, + target: "core", + base: { PATH: "/usr/bin" }, + disabledManifest: null, + }); + + expect(env.PATH).toBe(`${path.dirname(process.execPath)}:/usr/bin`); + }); + + test.each([ + ["core", "240000"], + ["cloudflare", "480000"], + ] as const)("gives %s a %sms setup timeout", (target, timeout) => { + const env = buildRunSuiteEnv({ ...options, target, base: {}, disabledManifest: null }); + + expect(env.NEXT_E2E_TEST_TIMEOUT).toBe(timeout); + }); +}); diff --git a/packages/tests-next-suite/src/run-suite.ts b/packages/tests-next-suite/src/run-suite.ts new file mode 100644 index 00000000..1177bfa4 --- /dev/null +++ b/packages/tests-next-suite/src/run-suite.ts @@ -0,0 +1,74 @@ +import path from "node:path"; + +import { ENV, toolchainEnv } from "./env.js"; +import type { TargetName } from "./targets.js"; + +const UPSTREAM_MANIFEST = "test/deploy-tests-manifest.json"; + +/** How long a test may take to deploy its app, Cloudflare builds are a lot slower. */ +const SETUP_TIMEOUT_MS: Record = { core: 240_000, cloudflare: 480_000 }; + +export type RunSuiteArgsOptions = { + group?: string; + concurrency: number; + tests: string[]; +}; + +export type RunSuiteEnvOptions = { + target: TargetName; + pkgDir: string; + base: NodeJS.ProcessEnv; + tarballsDir: string; + baseEnvFile: string; + /** Where the harness creates apps, which has to be outside of this repository. */ + testAppsDir: string; + /** The manifest of the disabled tests, `null` runs them too. */ + disabledManifest: string | null; +}; + +/** + * Builds the `run-tests.js` command line. + * + * `--timings` is not used as it needs the Vercel KV store. + * + * @param options The tests to run. + * @returns The arguments for `node`. + */ +export function buildRunSuiteArgs({ group, concurrency, tests }: RunSuiteArgsOptions): string[] { + const selection = tests.length === 0 && group ? ["-g", group] : []; + return ["run-tests.js", ...selection, "-c", String(concurrency), "--type", "e2e", ...tests]; +} + +/** + * Builds the `run-tests.js` environment. + * + * @param options The target and where the run files are. + * @returns The environment. + */ +export function buildRunSuiteEnv({ + target, + pkgDir, + base, + tarballsDir, + baseEnvFile, + testAppsDir, + disabledManifest, +}: RunSuiteEnvOptions): NodeJS.ProcessEnv { + return { + ...toolchainEnv(base), + NEXT_TEST_MODE: "deploy", + NEXT_E2E_TEST_TIMEOUT: String(SETUP_TIMEOUT_MS[target]), + NEXT_EXTERNAL_TESTS_FILTERS: [UPSTREAM_MANIFEST, ...(disabledManifest ? [disabledManifest] : [])].join(","), + NEXT_JUNIT_TEST_REPORT: "1", + IS_TURBOPACK_TEST: "1", + NEXT_TEST_JOB: "1", + NEXT_TELEMETRY_DISABLED: "1", + NEXT_TEST_DIR: testAppsDir, + NEXT_TEST_DEPLOY_SCRIPT_PATH: path.join(pkgDir, "bin/e2e-deploy.sh"), + NEXT_TEST_DEPLOY_LOGS_SCRIPT_PATH: path.join(pkgDir, "bin/e2e-logs.sh"), + NEXT_TEST_CLEANUP_SCRIPT_PATH: path.join(pkgDir, "bin/e2e-cleanup.sh"), + [ENV.TARGET]: target, + [ENV.TARBALLS_DIR]: tarballsDir, + [ENV.BASE_ENV_FILE]: baseEnvFile, + }; +} From d5fc1455d593df8ec915ff32c10f237ea5e65c26 Mon Sep 17 00:00:00 2001 From: Nicolas Dorseuil Date: Sat, 31 Oct 2026 17:21:54 +0100 Subject: [PATCH 06/21] test: run the Next.js suite on Cloudflare through wrangler dev Co-Authored-By: Claude Opus 5.5 (1M context) --- packages/tests-next-suite/src/run-suite.spec.ts | 15 ++++++++++++++- packages/tests-next-suite/src/run-suite.ts | 13 ++++++++++++- .../templates/cloudflare/open-next.config.ts | 1 + 3 files changed, 27 insertions(+), 2 deletions(-) diff --git a/packages/tests-next-suite/src/run-suite.spec.ts b/packages/tests-next-suite/src/run-suite.spec.ts index f6d7f3a5..4c5c670a 100644 --- a/packages/tests-next-suite/src/run-suite.spec.ts +++ b/packages/tests-next-suite/src/run-suite.spec.ts @@ -39,7 +39,6 @@ describe("buildRunSuiteEnv", () => { "test/deploy-tests-manifest.json,/p/.cache/disabled-core.json" ); expect(env.NEXT_TEST_MODE).toBe("deploy"); - expect(env.IS_TURBOPACK_TEST).toBe("1"); expect(env.NEXT_JUNIT_TEST_REPORT).toBe("1"); expect(env.NEXT_TEST_DEPLOY_SCRIPT_PATH).toBe("/p/bin/e2e-deploy.sh"); expect(env.NEXT_TEST_DEPLOY_LOGS_SCRIPT_PATH).toBe("/p/bin/e2e-logs.sh"); @@ -69,6 +68,20 @@ describe("buildRunSuiteEnv", () => { expect(env.NODE_ENV).toBeUndefined(); }); + test("core builds with Turbopack", () => { + const env = buildRunSuiteEnv({ ...options, target: "core", base: {}, disabledManifest: null }); + + expect(env.IS_TURBOPACK_TEST).toBe("1"); + expect(env.IS_WEBPACK_TEST).toBeUndefined(); + }); + + test("cloudflare builds with webpack", () => { + const env = buildRunSuiteEnv({ ...options, target: "cloudflare", base: {}, disabledManifest: null }); + + expect(env.IS_WEBPACK_TEST).toBe("1"); + expect(env.IS_TURBOPACK_TEST).toBeUndefined(); + }); + test("pins the toolchain", () => { const env = buildRunSuiteEnv({ ...options, diff --git a/packages/tests-next-suite/src/run-suite.ts b/packages/tests-next-suite/src/run-suite.ts index 1177bfa4..daeeffe8 100644 --- a/packages/tests-next-suite/src/run-suite.ts +++ b/packages/tests-next-suite/src/run-suite.ts @@ -8,6 +8,17 @@ const UPSTREAM_MANIFEST = "test/deploy-tests-manifest.json"; /** How long a test may take to deploy its app, Cloudflare builds are a lot slower. */ const SETUP_TIMEOUT_MS: Record = { core: 240_000, cloudflare: 480_000 }; +/** + * The bundler of each target, selected through the variable Next.js reads. + * + * Cloudflare uses webpack as its Turbopack chunk loader generates broken paths for apps which are not in a + * monorepo, and every app of the harness is standalone. + */ +const BUNDLER_ENV: Record> = { + core: { IS_TURBOPACK_TEST: "1" }, + cloudflare: { IS_WEBPACK_TEST: "1" }, +}; + export type RunSuiteArgsOptions = { group?: string; concurrency: number; @@ -60,7 +71,7 @@ export function buildRunSuiteEnv({ NEXT_E2E_TEST_TIMEOUT: String(SETUP_TIMEOUT_MS[target]), NEXT_EXTERNAL_TESTS_FILTERS: [UPSTREAM_MANIFEST, ...(disabledManifest ? [disabledManifest] : [])].join(","), NEXT_JUNIT_TEST_REPORT: "1", - IS_TURBOPACK_TEST: "1", + ...BUNDLER_ENV[target], NEXT_TEST_JOB: "1", NEXT_TELEMETRY_DISABLED: "1", NEXT_TEST_DIR: testAppsDir, diff --git a/packages/tests-next-suite/templates/cloudflare/open-next.config.ts b/packages/tests-next-suite/templates/cloudflare/open-next.config.ts index ab45f409..d75f433e 100644 --- a/packages/tests-next-suite/templates/cloudflare/open-next.config.ts +++ b/packages/tests-next-suite/templates/cloudflare/open-next.config.ts @@ -1,3 +1,4 @@ +// @ts-nocheck: `next build` type checks this file with a tsconfig that can not resolve package exports. import { defineCloudflareConfig } from "@opennextjs/cloudflare"; import r2IncrementalCache from "@opennextjs/cloudflare/overrides/incremental-cache/r2-incremental-cache"; import doQueue from "@opennextjs/cloudflare/overrides/queue/do-queue"; From 85a61bafed2123f0b9a3f093c5e94fa8889692cb Mon Sep 17 00:00:00 2001 From: Nicolas Dorseuil Date: Sat, 31 Oct 2026 17:44:09 +0100 Subject: [PATCH 07/21] test: seed Next.js suite disable lists from JUnit reports Co-Authored-By: Claude Opus 5.5 (1M context) --- packages/tests-next-suite/src/cli.ts | 40 +++++- packages/tests-next-suite/src/junit.spec.ts | 132 ++++++++++++++++++++ packages/tests-next-suite/src/junit.ts | 121 ++++++++++++++++++ 3 files changed, 292 insertions(+), 1 deletion(-) create mode 100644 packages/tests-next-suite/src/junit.spec.ts create mode 100644 packages/tests-next-suite/src/junit.ts diff --git a/packages/tests-next-suite/src/cli.ts b/packages/tests-next-suite/src/cli.ts index d4f67967..bf688628 100644 --- a/packages/tests-next-suite/src/cli.ts +++ b/packages/tests-next-suite/src/cli.ts @@ -5,6 +5,7 @@ import path from "node:path"; import { parseArgs } from "node:util"; import { findStaleEntries, loadDisabled, toManifest } from "./disabled.js"; +import { disabledFromJUnit, mergeDisabled, summarize } from "./junit.js"; import { DEFAULT_NEXT_REF, ensureNextCheckout, packTarballs } from "./next-checkout.js"; import { buildRunSuiteArgs, buildRunSuiteEnv } from "./run-suite.js"; import { PACKAGE_DIR, getTarget, type TargetName } from "./targets.js"; @@ -14,7 +15,8 @@ const TEST_APPS_DIR = path.join(os.homedir(), ".cache/opennext-next-suite/apps") const USAGE = `Usage: pnpm next-suite setup [--ref ] - pnpm next-suite run --target [--group 1/16] [-c 2] [--ref ] [--include-disabled] [test paths...]`; + pnpm next-suite run --target [--group 1/16] [-c 2] [--ref ] [--include-disabled] [test paths...] + pnpm next-suite disabled-from-junit --target --input --output --reason `; /** Resolves the Next.js checkout, set `NEXT_SUITE_NEXT_DIR` to use an existing built one. */ function resolveNextDir(ref: string): string { @@ -84,12 +86,48 @@ function setup(args: string[]): number { return 0; } +/** Writes the target's disable list with what failed in the JUnit reports of `input` added to it. */ +function seedDisabled(args: string[]): number { + const { values } = parseArgs({ + args, + options: { + target: { type: "string" }, + input: { type: "string" }, + output: { type: "string" }, + reason: { type: "string" }, + }, + }); + const { reason } = values; + if (!values.input || !values.output || !reason) { + console.error(USAGE); + return 1; + } + // pnpm runs this script from the package, the paths are relative to where it was called from. + const callerDir = process.env.INIT_CWD ?? process.cwd(); + const input = path.resolve(callerDir, values.input); + const output = path.resolve(callerDir, values.output); + + const target = getTarget(values.target).name; + const reports = fs + .readdirSync(input, { recursive: true, encoding: "utf8" }) + .filter((file) => file.endsWith(".xml")) + .map((file) => path.join(input, file)); + const found = disabledFromJUnit(reports, path.join(CACHE_DIR, "next.js"), reason); + const list = mergeDisabled(loadDisabled(path.join(PACKAGE_DIR, "disabled", `${target}.json`)), found); + + fs.writeFileSync(output, `${JSON.stringify(list, null, "\t")}\n`); + console.log(`### ${target}: ${reports.length} reports\n\n${summarize(list)}`); + return 0; +} + function main([command, ...args]: string[]): number { switch (command) { case "setup": return setup(args); case "run": return run(args); + case "disabled-from-junit": + return seedDisabled(args); default: console.error(USAGE); return 1; diff --git a/packages/tests-next-suite/src/junit.spec.ts b/packages/tests-next-suite/src/junit.spec.ts new file mode 100644 index 00000000..2cf433f2 --- /dev/null +++ b/packages/tests-next-suite/src/junit.spec.ts @@ -0,0 +1,132 @@ +import fs from "node:fs"; +import os from "node:os"; +import path from "node:path"; + +import { describe, expect, test } from "vitest"; + +import { disabledFromJUnit, mergeDisabled, summarize } from "./junit.js"; + +const FILE = "test/e2e/a.test.ts"; + +type Case = { name: string; file?: string; body?: string }; + +function writeReport(cases: Case[], report = FILE): string { + const dir = fs.mkdtempSync(path.join(os.tmpdir(), "next-suite-junit-")); + const file = path.join(dir, "report.xml"); + const testcases = cases.map( + ({ name, file = FILE, body = "" }) => `${body}` + ); + fs.writeFileSync( + file, + `${testcases.join("")}` + ); + return file; +} + +const FAILURE = "boom"; + +describe("disabledFromJUnit", () => { + test("lists failed case names per file", () => { + const report = writeReport([{ name: "suite case", body: FAILURE }]); + + expect(disabledFromJUnit([report], "/x/next.js", "r")).toEqual({ + [FILE]: { reason: "r", cases: ["suite case"] }, + }); + }); + + test("makes absolute paths relative to the Next checkout", () => { + const report = writeReport([{ name: "suite case", file: `/x/next.js/${FILE}`, body: FAILURE }]); + + expect(Object.keys(disabledFromJUnit([report], "/x/next.js", "r"))).toEqual([FILE]); + }); + + test("omits passing and skipped cases", () => { + const report = writeReport([{ name: "passing" }, { name: "skipped", body: "" }]); + + expect(disabledFromJUnit([report], "/x/next.js", "r")).toEqual({}); + }); + + test("omits a case which passed on a retry", () => { + const firstAttempt = writeReport([{ name: "flaky", body: FAILURE }]); + const secondAttempt = writeReport([{ name: "flaky" }]); + + expect(disabledFromJUnit([firstAttempt, secondAttempt], "/x/next.js", "r")).toEqual({}); + }); + + test("disables a whole file when it reports a suite-level error", () => { + const report = writeReport([{ name: "s Test suite failed to run", body: "boom" }]); + + expect(disabledFromJUnit([report], "/x/next.js", "r")).toEqual({ [FILE]: { reason: "r" } }); + }); + + test("finds the file of a suite-level error without a file attribute", () => { + const dir = fs.mkdtempSync(path.join(os.tmpdir(), "next-suite-junit-")); + const report = path.join(dir, "report.xml"); + fs.writeFileSync( + report, + `boom` + ); + + expect(disabledFromJUnit([report], "/x/next.js", "r")).toEqual({ [FILE]: { reason: "r" } }); + }); + + test("sorts and de-duplicates cases", () => { + const report = writeReport([ + { name: "b", body: FAILURE }, + { name: "a", body: FAILURE }, + { name: "b", body: FAILURE }, + ]); + + expect(disabledFromJUnit([report], "/x/next.js", "r")[FILE]?.cases).toEqual(["a", "b"]); + }); +}); + +describe("mergeDisabled", () => { + test("keeps hand-written reasons and entries", () => { + const existing = { + "test/e2e/b.test.ts": { reason: "hand written" }, + [FILE]: { reason: "known issue", cases: ["a"] }, + }; + + expect(mergeDisabled(existing, { [FILE]: { reason: "seeded", cases: ["a"] } })).toEqual(existing); + }); + + test("keeps a whole-file entry whole", () => { + const merged = mergeDisabled({ [FILE]: { reason: "x" } }, { [FILE]: { reason: "y", cases: ["a"] } }); + + expect(merged).toEqual({ [FILE]: { reason: "x" } }); + }); + + test("widens case entries to the whole file when a run could not load it", () => { + const merged = mergeDisabled({ [FILE]: { reason: "x", cases: ["a"] } }, { [FILE]: { reason: "y" } }); + + expect(merged).toEqual({ [FILE]: { reason: "x" } }); + }); + + test("unions the cases of an existing entry", () => { + const merged = mergeDisabled( + { [FILE]: { reason: "x", cases: ["b"] } }, + { [FILE]: { reason: "y", cases: ["a"] } } + ); + + expect(merged).toEqual({ [FILE]: { reason: "x", cases: ["a", "b"] } }); + }); + + test("sorts by path so regenerated lists diff cleanly", () => { + const merged = mergeDisabled({ "test/z.test.ts": { reason: "x" } }, { "test/a.test.ts": { reason: "y" } }); + + expect(Object.keys(merged)).toEqual(["test/a.test.ts", "test/z.test.ts"]); + }); +}); + +describe("summarize", () => { + test("counts the files and cases of a list", () => { + const summary = summarize({ + "test/a.test.ts": { reason: "x" }, + "test/b.test.ts": { reason: "x", cases: ["one", "two"] }, + }); + + expect(summary).toContain("1 whole file"); + expect(summary).toContain("2 cases in 1 file"); + }); +}); diff --git a/packages/tests-next-suite/src/junit.ts b/packages/tests-next-suite/src/junit.ts new file mode 100644 index 00000000..f46c3de0 --- /dev/null +++ b/packages/tests-next-suite/src/junit.ts @@ -0,0 +1,121 @@ +import fs from "node:fs"; +import path from "node:path"; + +import { XMLParser } from "fast-xml-parser"; + +import type { DisabledEntry, DisabledList } from "./disabled.js"; + +const SUITE_ERROR_CASE = "Test suite failed to run"; +const REPORT_NAME_PREFIX = "deploy:e2e:"; + +type TestCase = { name: string; file?: string; failure?: unknown; error?: unknown }; +type TestSuite = { testcase?: TestCase[] }; +type Report = { testsuites?: { name?: string; testsuite?: TestSuite[] } }; + +const parser = new XMLParser({ + ignoreAttributes: false, + attributeNamePrefix: "", + isArray: (name) => name === "testsuite" || name === "testcase", +}); + +function compare(a: string, b: string): number { + return a < b ? -1 : a > b ? 1 : 0; +} + +function sortedUnique(values: string[]): string[] { + return [...new Set(values)].sort(compare); +} + +function readCases(xmlFile: string, nextDir: string): { file: string; testCase: TestCase }[] { + const { testsuites }: Report = parser.parse(fs.readFileSync(xmlFile, "utf8")); + const reportFile = testsuites?.name?.replace(REPORT_NAME_PREFIX, ""); + return (testsuites?.testsuite ?? []).flatMap((suite) => + (suite.testcase ?? []).flatMap((testCase) => { + const file = testCase.file ?? reportFile; + if (!file) { + return []; + } + return [{ file: path.isAbsolute(file) ? path.relative(nextDir, file) : file, testCase }]; + }) + ); +} + +/** + * Lists what failed in JUnit reports as disable entries. + * + * `run-tests.js` writes a report per attempt, a case passing on any attempt is not a failure. + * + * @param xmlFiles The JUnit reports. + * @param nextDir The Next.js checkout, absolute paths are made relative to it. + * @param reason The reason set on the entries. + * @returns The entries. + */ +export function disabledFromJUnit(xmlFiles: string[], nextDir: string, reason: string): DisabledList { + const failed = new Map(); + const passed = new Set(); + const brokenFiles = new Set(); + + for (const { file, testCase } of xmlFiles.flatMap((xmlFile) => readCases(xmlFile, nextDir))) { + if (testCase.name.includes(SUITE_ERROR_CASE)) { + brokenFiles.add(file); + } else if (testCase.failure !== undefined || testCase.error !== undefined) { + failed.set(file, [...(failed.get(file) ?? []), testCase.name]); + } else { + passed.add(`${file}\0${testCase.name}`); + } + } + + const list: DisabledList = {}; + for (const [file, names] of failed) { + const cases = sortedUnique(names.filter((name) => !passed.has(`${file}\0${name}`))); + if (cases.length > 0) { + list[file] = { reason, cases }; + } + } + for (const file of brokenFiles) { + list[file] = { reason }; + } + return list; +} + +function mergeEntries(existing: DisabledEntry, found: DisabledEntry): DisabledEntry { + if (!existing.cases || !found.cases) { + return { reason: existing.reason }; + } + return { reason: existing.reason, cases: sortedUnique([...existing.cases, ...found.cases]) }; +} + +/** + * Adds new entries to a list, what is in the list is kept and wins over what was found. + * + * @param existing The current list. + * @param found The entries to add. + * @returns The merged list, sorted by path. + */ +export function mergeDisabled(existing: DisabledList, found: DisabledList): DisabledList { + const merged: DisabledList = { ...found, ...existing }; + for (const [file, entry] of Object.entries(found)) { + const current = existing[file]; + if (current) { + merged[file] = mergeEntries(current, entry); + } + } + return Object.fromEntries(Object.entries(merged).sort(([a], [b]) => compare(a, b))); +} + +/** + * Describes a list in Markdown. + * + * @param list The list. + * @returns The summary. + */ +export function summarize(list: DisabledList): string { + const entries = Object.values(list); + const partial = entries.filter((entry) => entry.cases); + const caseCount = partial.reduce((total, entry) => total + entry.cases!.length, 0); + const wholeFiles = entries.length - partial.length; + return [ + `- ${wholeFiles} whole file${wholeFiles === 1 ? "" : "s"}`, + `- ${caseCount} case${caseCount === 1 ? "" : "s"} in ${partial.length} file${partial.length === 1 ? "" : "s"}`, + ].join("\n"); +} From 30be88064f10598bd10bdd6f40e945a533f1884b Mon Sep 17 00:00:00 2001 From: Nicolas Dorseuil Date: Sat, 31 Oct 2026 17:44:58 +0100 Subject: [PATCH 08/21] ci: run the Next.js adapter suite nightly and on demand Co-Authored-By: Claude Opus 5.5 (1M context) --- .github/workflows/next-suite.yml | 160 ++++++++++++++++++++ AGENTS.md | 14 ++ packages/tests-next-suite/README.md | 78 ++++++++++ packages/tests-next-suite/src/hooks.ts | 4 +- packages/tests-next-suite/src/junit.spec.ts | 5 +- packages/tests-next-suite/src/run-suite.ts | 4 +- 6 files changed, 262 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/next-suite.yml create mode 100644 packages/tests-next-suite/README.md diff --git a/.github/workflows/next-suite.yml b/.github/workflows/next-suite.yml new file mode 100644 index 00000000..df55873b --- /dev/null +++ b/.github/workflows/next-suite.yml @@ -0,0 +1,160 @@ +name: Next.js Test Suite + +on: + schedule: + - cron: "0 3 * * *" + workflow_dispatch: + inputs: + nextRef: + description: Next.js ref (tag, branch or commit) + default: v16.2.1 + type: string + pull_request: + paths: + - ".github/workflows/next-suite.yml" + - "packages/tests-next-suite/**" + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +permissions: + contents: read + +env: + NEXT_REF: ${{ inputs.nextRef || 'v16.2.1' }} + NEXT_DIR: packages/tests-next-suite/.cache/next.js + +jobs: + # Checks out and builds Next.js once, the other jobs restore it from the cache. + next: + name: Build Next.js + runs-on: ubuntu-latest + timeout-minutes: 45 + steps: + - uses: actions/checkout@v7 + - uses: ./.github/actions/setup + + - name: Cache the Next.js checkout + id: next-cache + uses: actions/cache@v6 + with: + path: | + packages/tests-next-suite/.cache/next.js + ~/.cache/ms-playwright + key: next-suite-${{ runner.os }}-${{ inputs.nextRef || 'v16.2.1' }} + + - name: Build Next.js + if: steps.next-cache.outputs.cache-hit != 'true' + run: pnpm next-suite setup --ref "$NEXT_REF" + + smoke: + name: Smoke (${{ matrix.target }}) + needs: next + if: github.event_name == 'pull_request' + runs-on: ubuntu-latest + timeout-minutes: 30 + strategy: + fail-fast: false + matrix: + target: [core, cloudflare] + steps: + - uses: actions/checkout@v7 + - uses: ./.github/actions/setup + + - name: Restore the Next.js checkout + uses: actions/cache/restore@v6 + with: + path: | + packages/tests-next-suite/.cache/next.js + ~/.cache/ms-playwright + key: next-suite-${{ runner.os }}-${{ inputs.nextRef || 'v16.2.1' }} + fail-on-cache-miss: true + + - name: Install the browser dependencies + working-directory: ${{ env.NEXT_DIR }} + run: pnpm playwright install --with-deps chromium + + - name: Run the smoke test + run: pnpm next-suite run --target ${{ matrix.target }} --ref "$NEXT_REF" -c 1 test/e2e/app-dir/hello-world/hello-world.test.ts + + suite: + name: Suite (${{ matrix.target }} ${{ matrix.group }}/16) + needs: next + if: github.event_name != 'pull_request' + runs-on: ubuntu-latest + timeout-minutes: 180 + strategy: + fail-fast: false + matrix: + target: [core, cloudflare] + group: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16] + steps: + - uses: actions/checkout@v7 + - uses: ./.github/actions/setup + + - name: Restore the Next.js checkout + uses: actions/cache/restore@v6 + with: + path: | + packages/tests-next-suite/.cache/next.js + ~/.cache/ms-playwright + key: next-suite-${{ runner.os }}-${{ inputs.nextRef || 'v16.2.1' }} + fail-on-cache-miss: true + + - name: Install the browser dependencies + working-directory: ${{ env.NEXT_DIR }} + run: pnpm playwright install --with-deps chromium + + - name: Run the tests + run: pnpm next-suite run --target ${{ matrix.target }} --ref "$NEXT_REF" --group ${{ matrix.group }}/16 -c 2 + + - name: Upload the reports + if: always() + uses: actions/upload-artifact@v7 + with: + name: junit-${{ matrix.target }}-${{ matrix.group }} + path: | + ${{ env.NEXT_DIR }}/test/turbopack-test-junit-report + ${{ env.NEXT_DIR }}/test/test-junit-report + if-no-files-found: ignore + retention-days: 14 + + # Lists what failed, as disable lists which can replace the ones in `packages/tests-next-suite/disabled`. + report: + name: Report + needs: suite + if: always() && needs.suite.result != 'skipped' + runs-on: ubuntu-latest + timeout-minutes: 15 + steps: + - uses: actions/checkout@v7 + - uses: ./.github/actions/setup + + - name: Download the reports + uses: actions/download-artifact@v8 + with: + pattern: junit-* + path: reports + + - name: Summarize the failures + run: | + mkdir -p candidates + for target in core cloudflare; do + mkdir -p "reports-$target" + for dir in reports/junit-"$target"-*; do + if [ -d "$dir" ]; then cp -r "$dir" "reports-$target/"; fi + done + pnpm --silent next-suite disabled-from-junit \ + --target "$target" \ + --input "reports-$target" \ + --output "candidates/$target.json" \ + --reason "Failing in CI run $GITHUB_RUN_ID" >> "$GITHUB_STEP_SUMMARY" + done + + - name: Upload the candidate disable lists + uses: actions/upload-artifact@v7 + with: + name: next-suite-disabled + path: candidates + retention-days: 14 diff --git a/AGENTS.md b/AGENTS.md index f6aa5190..9424b77b 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -64,6 +64,20 @@ pnpm --filter tests-unit vitest pnpm --filter @opennextjs/cloudflare test ``` +### Next.js test suite + +Runs the Next.js e2e suite against the `core` and `cloudflare` adapters. See `packages/tests-next-suite/README.md`. + +```bash +# Check out and build Next.js, once +pnpm next-suite setup + +# Run a test file on an adapter +pnpm next-suite run --target cloudflare -c 1 test/e2e/app-dir/hello-world/hello-world.test.ts +``` + +Tests are disabled per adapter in `packages/tests-next-suite/disabled/.json`. + ### Package-specific commands ```bash diff --git a/packages/tests-next-suite/README.md b/packages/tests-next-suite/README.md new file mode 100644 index 00000000..f7e7de52 --- /dev/null +++ b/packages/tests-next-suite/README.md @@ -0,0 +1,78 @@ +# Next.js test suite + +Runs the end-to-end suite of Next.js ([adapter testing docs](https://nextjs.org/docs/app/api-reference/adapters/testing-adapters)) against the OpenNext adapters. Nothing is deployed to a cloud provider, every test app runs on a local port. + +| Target | Build | Server | Bundler | +| ------------ | ----------------------------- | ------------------------------ | --------- | +| `core` | `open-next build` | `node` and the local overrides | Turbopack | +| `cloudflare` | `opennextjs-cloudflare build` | `wrangler dev` | webpack | + +`core` is the same setup as the `core` job of `.github/workflows/local.yml`. AWS services are not involved. + +`cloudflare` uses webpack as the Turbopack chunk loader generates broken paths for apps which are not in a monorepo. + +## Running tests + +```bash +# Once, about 4GB of disk. Clones and builds Next.js in packages/tests-next-suite/.cache +pnpm next-suite setup + +# One test file +pnpm next-suite run --target core -c 1 test/e2e/app-dir/hello-world/hello-world.test.ts +pnpm next-suite run --target cloudflare -c 1 test/e2e/app-dir/hello-world/hello-world.test.ts + +# A part of the suite +pnpm next-suite run --target core --group 1/16 -c 2 +``` + +The whole suite is about 800 test files, each one building an app, so it is meant for CI. Only do one run at a time on a checkout, as each run rebuilds and packs the OpenNext packages. + +| Option | Purpose | +| -------------------------- | --------------------------------------------------------------------- | +| `--ref ` | The Next.js tag, branch or commit (default in `src/next-checkout.ts`) | +| `--include-disabled` | Runs the disabled tests too | +| `NEXT_SUITE_NEXT_DIR` | Uses an existing built Next.js checkout | +| `NEXT_TEST_SKIP_CLEANUP=1` | Keeps the test apps | + +Test apps are created in `~/.cache/opennext-next-suite/apps`, outside of this repository as OpenNext looks for the monorepo root. Each app has `.adapter-build.log` and `.adapter-server.log`. + +Test apps use TypeScript 5.9 whatever the test asks for: Next.js 16.2 can not load TypeScript 7 and writes a `tsconfig.json` TypeScript 6 rejects. Review `PINNED_DEPENDENCIES` in `src/prepare-app.ts` when updating the Next.js ref. + +## Disabling tests + +Each adapter has its own list, `disabled/core.json` and `disabled/cloudflare.json`. A test disabled for one adapter still runs on the other one. + +```json +{ + "test/e2e/foo/foo.test.ts": { "reason": "Crashes during the worker build" }, + "test/e2e/bar/bar.test.ts": { + "reason": "Streaming order differs", + "cases": ["bar suite streams the shell first"] + } +} +``` + +- Without `cases`, the whole file is disabled. +- `cases` holds full test names, the `describe` blocks and the test name separated by spaces. They have to match exactly. +- The key is an exact path, globs are not supported. +- A reason is required. + +A run warns about entries for files which no longer exist, as can happen after updating the Next.js ref. Entries for cases are not checked, so remove them once the test is fixed: use `--include-disabled` to find out. + +## CI + +`.github/workflows/next-suite.yml` runs the whole suite nightly and on demand (with a `nextRef` input), split in 16 groups per target. Pull requests changing this package only run a smoke test. + +Each run uploads a `next-suite-disabled` artifact: the current lists with what failed in that run added to them. Entries already in a list are kept. To accept these failures, copy the files over `disabled/`. + +## How it works + +The harness of Next.js copies each test app to a directory and calls three scripts with that directory as `cwd`: + +- `bin/e2e-deploy.sh` installs the packed OpenNext packages in the app, builds it and starts the server. The URL is the only thing it prints on stdout. +- `bin/e2e-logs.sh` prints the build ids and the logs. +- `bin/e2e-cleanup.sh` stops the server. + +## Adding a target + +Add it to `TARGETS` in `src/targets.ts`, with its files in `templates//`, then add its `SETUP_TIMEOUT_MS` and `BUNDLER_ENV` in `src/run-suite.ts`, a `disabled/.json` file, and the target to the matrix of the workflow. diff --git a/packages/tests-next-suite/src/hooks.ts b/packages/tests-next-suite/src/hooks.ts index 51b6dfad..18e91d71 100644 --- a/packages/tests-next-suite/src/hooks.ts +++ b/packages/tests-next-suite/src/hooks.ts @@ -144,7 +144,9 @@ export async function deploy({ */ export function logs(appDir: string): string { const buildLog = readIfExists(path.join(appDir, BUILD_LOG)); - const immutableToken = /IMMUTABLE_ASSET_TOKEN: .+/.test(buildLog) ? "" : "IMMUTABLE_ASSET_TOKEN: undefined\n"; + const immutableToken = /IMMUTABLE_ASSET_TOKEN: .+/.test(buildLog) + ? "" + : "IMMUTABLE_ASSET_TOKEN: undefined\n"; const serverLog = readIfExists(path.join(appDir, SERVER_LOG)); return `NEXT_SUPPORTS_IMMUTABLE_ASSETS: 0\n${immutableToken}${buildLog}\n=== ${SERVER_LOG} ===\n${serverLog}`; } diff --git a/packages/tests-next-suite/src/junit.spec.ts b/packages/tests-next-suite/src/junit.spec.ts index 2cf433f2..8f9555b4 100644 --- a/packages/tests-next-suite/src/junit.spec.ts +++ b/packages/tests-next-suite/src/junit.spec.ts @@ -113,7 +113,10 @@ describe("mergeDisabled", () => { }); test("sorts by path so regenerated lists diff cleanly", () => { - const merged = mergeDisabled({ "test/z.test.ts": { reason: "x" } }, { "test/a.test.ts": { reason: "y" } }); + const merged = mergeDisabled( + { "test/z.test.ts": { reason: "x" } }, + { "test/a.test.ts": { reason: "y" } } + ); expect(Object.keys(merged)).toEqual(["test/a.test.ts", "test/z.test.ts"]); }); diff --git a/packages/tests-next-suite/src/run-suite.ts b/packages/tests-next-suite/src/run-suite.ts index daeeffe8..9bbc6055 100644 --- a/packages/tests-next-suite/src/run-suite.ts +++ b/packages/tests-next-suite/src/run-suite.ts @@ -69,7 +69,9 @@ export function buildRunSuiteEnv({ ...toolchainEnv(base), NEXT_TEST_MODE: "deploy", NEXT_E2E_TEST_TIMEOUT: String(SETUP_TIMEOUT_MS[target]), - NEXT_EXTERNAL_TESTS_FILTERS: [UPSTREAM_MANIFEST, ...(disabledManifest ? [disabledManifest] : [])].join(","), + NEXT_EXTERNAL_TESTS_FILTERS: [UPSTREAM_MANIFEST, ...(disabledManifest ? [disabledManifest] : [])].join( + "," + ), NEXT_JUNIT_TEST_REPORT: "1", ...BUNDLER_ENV[target], NEXT_TEST_JOB: "1", From b1603bb1ce001166a507e651f8e4e40fc30c8a3d Mon Sep 17 00:00:00 2001 From: Nicolas Dorseuil Date: Sat, 31 Oct 2026 18:02:01 +0100 Subject: [PATCH 09/21] test: harden the Next.js suite hooks and CI after review Co-Authored-By: Claude Opus 5.5 (1M context) --- .github/actions/setup/action.yml | 5 +- .github/workflows/next-suite.yml | 15 ++-- packages/tests-next-suite/README.md | 1 + packages/tests-next-suite/package.json | 1 + packages/tests-next-suite/src/cli.ts | 10 ++- packages/tests-next-suite/src/env.spec.ts | 11 +++ packages/tests-next-suite/src/env.ts | 5 ++ packages/tests-next-suite/src/hooks.spec.ts | 35 +++++++++ packages/tests-next-suite/src/hooks.ts | 49 +++++++++---- packages/tests-next-suite/src/junit.spec.ts | 11 +-- packages/tests-next-suite/src/junit.ts | 4 +- .../tests-next-suite/src/prepare-app.spec.ts | 2 +- packages/tests-next-suite/src/prepare-app.ts | 1 - packages/tests-next-suite/src/process.spec.ts | 53 +++++++++++++- packages/tests-next-suite/src/process.ts | 72 +++++++++++++++++-- .../tests-next-suite/src/run-suite.spec.ts | 14 ++++ packages/tests-next-suite/src/run-suite.ts | 7 +- packages/tests-next-suite/src/targets.spec.ts | 21 ++++-- packages/tests-next-suite/src/targets.ts | 7 +- pnpm-lock.yaml | 13 ++-- 20 files changed, 282 insertions(+), 55 deletions(-) diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index e460ab10..b51d032c 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -5,6 +5,9 @@ inputs: node-version: description: Node.js version to install default: "24" + pnpm-cache: + description: Restores and saves the pnpm store + default: "true" runs: using: composite @@ -19,7 +22,7 @@ runs: with: node-version: ${{ inputs.node-version }} registry-url: https://registry.npmjs.org - cache: pnpm + cache: ${{ inputs.pnpm-cache == 'true' && 'pnpm' || '' }} # Enable node compile cache (effective for Node 22+) # See https://nodejs.org/docs/v24.11.1/api/module.html#module-compile-cache diff --git a/.github/workflows/next-suite.yml b/.github/workflows/next-suite.yml index df55873b..2997b09b 100644 --- a/.github/workflows/next-suite.yml +++ b/.github/workflows/next-suite.yml @@ -29,7 +29,7 @@ jobs: # Checks out and builds Next.js once, the other jobs restore it from the cache. next: name: Build Next.js - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 timeout-minutes: 45 steps: - uses: actions/checkout@v7 @@ -52,7 +52,7 @@ jobs: name: Smoke (${{ matrix.target }}) needs: next if: github.event_name == 'pull_request' - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 timeout-minutes: 30 strategy: fail-fast: false @@ -60,7 +60,10 @@ jobs: target: [core, cloudflare] steps: - uses: actions/checkout@v7 + # These jobs run unlocked packages from npm, they must not save to a cache release jobs restore. - uses: ./.github/actions/setup + with: + pnpm-cache: "false" - name: Restore the Next.js checkout uses: actions/cache/restore@v6 @@ -82,7 +85,7 @@ jobs: name: Suite (${{ matrix.target }} ${{ matrix.group }}/16) needs: next if: github.event_name != 'pull_request' - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 timeout-minutes: 180 strategy: fail-fast: false @@ -91,7 +94,10 @@ jobs: group: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16] steps: - uses: actions/checkout@v7 + # These jobs run unlocked packages from npm, they must not save to a cache release jobs restore. - uses: ./.github/actions/setup + with: + pnpm-cache: "false" - name: Restore the Next.js checkout uses: actions/cache/restore@v6 @@ -107,7 +113,7 @@ jobs: run: pnpm playwright install --with-deps chromium - name: Run the tests - run: pnpm next-suite run --target ${{ matrix.target }} --ref "$NEXT_REF" --group ${{ matrix.group }}/16 -c 2 + run: pnpm next-suite run --target ${{ matrix.target }} --ref "$NEXT_REF" --group ${{ matrix.group }}/16 -c 2 --retries 1 - name: Upload the reports if: always() @@ -117,6 +123,7 @@ jobs: path: | ${{ env.NEXT_DIR }}/test/turbopack-test-junit-report ${{ env.NEXT_DIR }}/test/test-junit-report + include-hidden-files: true if-no-files-found: ignore retention-days: 14 diff --git a/packages/tests-next-suite/README.md b/packages/tests-next-suite/README.md index f7e7de52..a6da7f73 100644 --- a/packages/tests-next-suite/README.md +++ b/packages/tests-next-suite/README.md @@ -30,6 +30,7 @@ The whole suite is about 800 test files, each one building an app, so it is mean | Option | Purpose | | -------------------------- | --------------------------------------------------------------------- | | `--ref ` | The Next.js tag, branch or commit (default in `src/next-checkout.ts`) | +| `--retries ` | How many times a failing file runs again (2 by default) | | `--include-disabled` | Runs the disabled tests too | | `NEXT_SUITE_NEXT_DIR` | Uses an existing built Next.js checkout | | `NEXT_TEST_SKIP_CLEANUP=1` | Keeps the test apps | diff --git a/packages/tests-next-suite/package.json b/packages/tests-next-suite/package.json index 103a7cbc..571d2769 100644 --- a/packages/tests-next-suite/package.json +++ b/packages/tests-next-suite/package.json @@ -17,6 +17,7 @@ "devDependencies": { "@tsconfig/strictest": "catalog:", "@types/node": "catalog:", + "dotenv": "^16.6.1", "typescript": "catalog:", "vitest": "catalog:" } diff --git a/packages/tests-next-suite/src/cli.ts b/packages/tests-next-suite/src/cli.ts index bf688628..44c4555b 100644 --- a/packages/tests-next-suite/src/cli.ts +++ b/packages/tests-next-suite/src/cli.ts @@ -15,7 +15,7 @@ const TEST_APPS_DIR = path.join(os.homedir(), ".cache/opennext-next-suite/apps") const USAGE = `Usage: pnpm next-suite setup [--ref ] - pnpm next-suite run --target [--group 1/16] [-c 2] [--ref ] [--include-disabled] [test paths...] + pnpm next-suite run --target [--group 1/16] [-c 2] [--retries ] [--ref ] [--include-disabled] [test paths...] pnpm next-suite disabled-from-junit --target --input --output --reason `; /** Resolves the Next.js checkout, set `NEXT_SUITE_NEXT_DIR` to use an existing built one. */ @@ -48,6 +48,7 @@ function run(args: string[]): number { target: { type: "string" }, group: { type: "string" }, concurrency: { type: "string", short: "c", default: "2" }, + retries: { type: "string" }, ref: { type: "string", default: DEFAULT_NEXT_REF }, "include-disabled": { type: "boolean", default: false }, }, @@ -74,7 +75,12 @@ function run(args: string[]): number { const { status } = spawnSync( process.execPath, - buildRunSuiteArgs({ group: values.group, concurrency: Number(values.concurrency), tests: positionals }), + buildRunSuiteArgs({ + group: values.group, + concurrency: Number(values.concurrency), + retries: values.retries === undefined ? undefined : Number(values.retries), + tests: positionals, + }), { cwd: nextDir, env, stdio: "inherit" } ); return status ?? 1; diff --git a/packages/tests-next-suite/src/env.spec.ts b/packages/tests-next-suite/src/env.spec.ts index 332ed1ac..3e9da208 100644 --- a/packages/tests-next-suite/src/env.spec.ts +++ b/packages/tests-next-suite/src/env.spec.ts @@ -27,6 +27,17 @@ describe("toolchainEnv", () => { expect(env.PLAYWRIGHT_HOST_PLATFORM_OVERRIDE).toBe("debian12-x64"); }); + test("drops the markers pnpm exports when it switches version, so the checkout can use its own", () => { + const env = toolchainEnv({ COREPACK_ROOT: "pnpm-with", pnpm_config_pm_on_fail: "ignore" }, linux); + + expect(env.COREPACK_ROOT).toBeUndefined(); + expect(env.pnpm_config_pm_on_fail).toBeUndefined(); + }); + + test("keeps a real corepack root", () => { + expect(toolchainEnv({ COREPACK_ROOT: "/corepack" }, linux).COREPACK_ROOT).toBe("/corepack"); + }); + test("leaves Playwright alone elsewhere", () => { const mac = { execPath: "/node/bin/node", platform: "darwin", arch: "arm64" } as const; diff --git a/packages/tests-next-suite/src/env.ts b/packages/tests-next-suite/src/env.ts index 2d062c79..4764700f 100644 --- a/packages/tests-next-suite/src/env.ts +++ b/packages/tests-next-suite/src/env.ts @@ -40,6 +40,11 @@ export function toolchainEnv( ): NodeJS.ProcessEnv { const toolchain = hookEnv(env); toolchain.PATH = [path.dirname(execPath), env.PATH].filter(Boolean).join(":"); + // Set when the pnpm of this repository switched version, they would keep the checkout from using its own. + delete toolchain.pnpm_config_pm_on_fail; + if (toolchain.COREPACK_ROOT === "pnpm-with") { + delete toolchain.COREPACK_ROOT; + } if (platform === "linux" && arch === "x64") { toolchain.PLAYWRIGHT_HOST_PLATFORM_OVERRIDE ??= PLAYWRIGHT_LINUX_PLATFORM; } diff --git a/packages/tests-next-suite/src/hooks.spec.ts b/packages/tests-next-suite/src/hooks.spec.ts index 00c655d5..35084c72 100644 --- a/packages/tests-next-suite/src/hooks.spec.ts +++ b/packages/tests-next-suite/src/hooks.spec.ts @@ -11,6 +11,8 @@ import type { Target } from "./targets.js"; const NOOP = ["node", "-e", ""]; /** Prints what the harness' `post-build` script prints. */ const BUILD_OK = `console.log("BUILD_ID: abc\\nDEPLOYMENT_ID: " + process.env.NEXT_DEPLOYMENT_ID + "\\nIMMUTABLE_ASSET_TOKEN: undefined")`; +/** Ends on its own, so that a regression fails the test and does not leave a process behind. */ +const SLOW_BUILD = ["node", "-e", "setTimeout(() => {}, 4000)"]; const SERVE = `require("node:http").createServer((_, res) => res.end("ok")).listen(process.env.PORT)`; let appDir: string; @@ -161,6 +163,39 @@ describe("deploy", () => { expect(fs.existsSync(path.join(appDir, PID_FILE))).toBe(false); }); + test("gives up on a build which outlives the harness' setup timeout", async () => { + const target = makeTarget({ buildCommand: SLOW_BUILD }); + + await expect(runDeploy(target, { NEXT_E2E_TEST_TIMEOUT: "300" })).rejects.toThrow(/timed out/); + }); + + test("does not go on after cleanup stopped the build", async () => { + const target = makeTarget({ + buildCommand: SLOW_BUILD, + startCommand: () => ["node", "-e", `${record("started", "1")}; ${SERVE}`], + }); + const deployment = runDeploy(target); + await expect.poll(() => fs.existsSync(path.join(appDir, PID_FILE)), { timeout: 2000 }).toBe(true); + + const failure = expect(deployment).rejects.toThrow(/failed/); + + await cleanup(appDir); + + await failure; + expect(fs.existsSync(path.join(appDir, "started"))).toBe(false); + }); + + test("does not start another server after cleanup", async () => { + const target = makeTarget({ + startCommand: () => ["node", "-e", `${record("started", "1")}; ${SERVE}`], + }); + await cleanup(appDir); + + await expect(runDeploy(target)).rejects.toThrow(/stopped/); + + expect(fs.existsSync(path.join(appDir, "started"))).toBe(false); + }); + test("passes test-only env to prepareRuntimeEnv", async () => { const seen: Record[] = []; const target = makeTarget({ prepareRuntimeEnv: (_dir, env) => seen.push(env) }); diff --git a/packages/tests-next-suite/src/hooks.ts b/packages/tests-next-suite/src/hooks.ts index 18e91d71..8184e9b5 100644 --- a/packages/tests-next-suite/src/hooks.ts +++ b/packages/tests-next-suite/src/hooks.ts @@ -1,17 +1,19 @@ -import { spawnSync } from "node:child_process"; import fs from "node:fs"; import path from "node:path"; import { ENV, hookEnv, testOnlyEnv } from "./env.js"; import { prepareApp } from "./prepare-app.js"; -import { getFreePorts, startDetached, stopProcessGroup, waitForHttp } from "./process.js"; +import { getFreePorts, runDetached, startDetached, stopProcessGroup, waitForHttp } from "./process.js"; import { REPO_ROOT, type Target } from "./targets.js"; export const BUILD_LOG = ".adapter-build.log"; export const SERVER_LOG = ".adapter-server.log"; export const PID_FILE = ".adapter-server.pid"; +/** Written by the cleanup hook, the harness may give up on a deployment which is still in progress. */ +const STOPPED_FILE = ".adapter-stopped"; const DEFAULT_READY_TIMEOUT_MS = 120_000; +const DEFAULT_SETUP_TIMEOUT_MS = 240_000; const START_ATTEMPTS = 3; const LOG_TAIL_LINES = 40; const INSTALL_COMMAND = ["pnpm", "install", "--no-frozen-lockfile", "--prefer-offline"]; @@ -42,17 +44,31 @@ function requireEnv(env: NodeJS.ProcessEnv, name: string): string { return value; } -/** Runs a command to completion with its output in the build log, as stdout belongs to the deployment URL. */ -function runLogged(command: string[], cwd: string, env: NodeJS.ProcessEnv): void { - const [file, ...args] = command as [string, ...string[]]; +/** + * Runs a command to completion with its output in the build log, as stdout belongs to the deployment URL. + * + * It is stoppable through the pid file, and has until the deadline: past it the harness has moved on. + */ +async function runLogged( + command: string[], + cwd: string, + env: NodeJS.ProcessEnv, + deadline: number +): Promise { const logFile = path.join(cwd, BUILD_LOG); - const log = fs.openSync(logFile, "a"); - const { status, error } = spawnSync(file, args, { cwd, env, stdio: ["ignore", log, log] }); - fs.closeSync(log); - if (status !== 0) { - throw new Error( - `\`${command.join(" ")}\` failed (${error?.message ?? `exit code ${status}`}):\n${logTail(logFile)}` - ); + const result = await runDetached({ + command, + cwd, + env, + logFile, + pidFile: path.join(cwd, PID_FILE), + timeoutMs: Math.max(deadline - Date.now(), 0), + }); + if (result === "timeout") { + throw new Error(`\`${command.join(" ")}\` timed out:\n${logTail(logFile)}`); + } + if (result !== 0) { + throw new Error(`\`${command.join(" ")}\` failed (exit code ${result}):\n${logTail(logFile)}`); } } @@ -67,6 +83,9 @@ async function startServer( const pidFile = path.join(appDir, PID_FILE); for (let attempt = 1; attempt <= START_ATTEMPTS; attempt++) { + if (fs.existsSync(path.join(appDir, STOPPED_FILE))) { + throw new Error("The deployment was stopped by the cleanup hook"); + } const [port, inspectorPort] = (await getFreePorts(2)) as [number, number]; const url = `http://localhost:${port}`; const pid = startDetached({ @@ -105,16 +124,17 @@ export async function deploy({ readyTimeoutMs = DEFAULT_READY_TIMEOUT_MS, installCommand = INSTALL_COMMAND, }: HookDeps): Promise { + const deadline = Date.now() + (Number(env.NEXT_E2E_TEST_TIMEOUT) || DEFAULT_SETUP_TIMEOUT_MS); const deploymentEnv = { ...hookEnv(env), NEXT_DEPLOYMENT_ID: `opennext-${path.basename(appDir)}` }; const { packageManager } = JSON.parse(fs.readFileSync(path.join(REPO_ROOT, "package.json"), "utf8")); const baseKeys: string[] = JSON.parse(fs.readFileSync(requireEnv(env, ENV.BASE_ENV_FILE), "utf8")); stderr(`Preparing the app for ${target.name}`); prepareApp({ appDir, target, tarballsDir: requireEnv(env, ENV.TARBALLS_DIR), packageManager }); - runLogged(installCommand, appDir, deploymentEnv); + await runLogged(installCommand, appDir, deploymentEnv, deadline); stderr("Building the app"); - runLogged(target.buildCommand, appDir, deploymentEnv); + await runLogged(target.buildCommand, appDir, deploymentEnv, deadline); if (!/BUILD_ID: .+/.test(readIfExists(path.join(appDir, BUILD_LOG)))) { throw new Error(`The build output has no BUILD_ID marker, did the harness' post-build run?`); } @@ -157,5 +177,6 @@ export function logs(appDir: string): string { * @param appDir The app directory. */ export async function cleanup(appDir: string): Promise { + fs.writeFileSync(path.join(appDir, STOPPED_FILE), ""); await stopProcessGroup(path.join(appDir, PID_FILE)); } diff --git a/packages/tests-next-suite/src/junit.spec.ts b/packages/tests-next-suite/src/junit.spec.ts index 8f9555b4..7e178158 100644 --- a/packages/tests-next-suite/src/junit.spec.ts +++ b/packages/tests-next-suite/src/junit.spec.ts @@ -8,13 +8,14 @@ import { disabledFromJUnit, mergeDisabled, summarize } from "./junit.js"; const FILE = "test/e2e/a.test.ts"; -type Case = { name: string; file?: string; body?: string }; +type Case = { name: string; classname?: string; file?: string; body?: string }; function writeReport(cases: Case[], report = FILE): string { const dir = fs.mkdtempSync(path.join(os.tmpdir(), "next-suite-junit-")); const file = path.join(dir, "report.xml"); const testcases = cases.map( - ({ name, file = FILE, body = "" }) => `${body}` + ({ name, classname = name, file = FILE, body = "" }) => + `${body}` ); fs.writeFileSync( file, @@ -54,7 +55,9 @@ describe("disabledFromJUnit", () => { }); test("disables a whole file when it reports a suite-level error", () => { - const report = writeReport([{ name: "s Test suite failed to run", body: "boom" }]); + const report = writeReport([ + { name: FILE, classname: "Test suite failed to run", body: "boom" }, + ]); expect(disabledFromJUnit([report], "/x/next.js", "r")).toEqual({ [FILE]: { reason: "r" } }); }); @@ -64,7 +67,7 @@ describe("disabledFromJUnit", () => { const report = path.join(dir, "report.xml"); fs.writeFileSync( report, - `boom` + `boom` ); expect(disabledFromJUnit([report], "/x/next.js", "r")).toEqual({ [FILE]: { reason: "r" } }); diff --git a/packages/tests-next-suite/src/junit.ts b/packages/tests-next-suite/src/junit.ts index f46c3de0..85851bc3 100644 --- a/packages/tests-next-suite/src/junit.ts +++ b/packages/tests-next-suite/src/junit.ts @@ -8,7 +8,7 @@ import type { DisabledEntry, DisabledList } from "./disabled.js"; const SUITE_ERROR_CASE = "Test suite failed to run"; const REPORT_NAME_PREFIX = "deploy:e2e:"; -type TestCase = { name: string; file?: string; failure?: unknown; error?: unknown }; +type TestCase = { name: string; classname?: string; file?: string; failure?: unknown; error?: unknown }; type TestSuite = { testcase?: TestCase[] }; type Report = { testsuites?: { name?: string; testsuite?: TestSuite[] } }; @@ -56,7 +56,7 @@ export function disabledFromJUnit(xmlFiles: string[], nextDir: string, reason: s const brokenFiles = new Set(); for (const { file, testCase } of xmlFiles.flatMap((xmlFile) => readCases(xmlFile, nextDir))) { - if (testCase.name.includes(SUITE_ERROR_CASE)) { + if (testCase.classname === SUITE_ERROR_CASE) { brokenFiles.add(file); } else if (testCase.failure !== undefined || testCase.error !== undefined) { failed.set(file, [...(failed.get(file) ?? []), testCase.name]); diff --git a/packages/tests-next-suite/src/prepare-app.spec.ts b/packages/tests-next-suite/src/prepare-app.spec.ts index 8f43b921..13d4341e 100644 --- a/packages/tests-next-suite/src/prepare-app.spec.ts +++ b/packages/tests-next-suite/src/prepare-app.spec.ts @@ -75,7 +75,7 @@ describe("prepareApp", () => { expect(readPackageJson().packageManager).toBe("pnpm@11.25.0"); const workspace = readWorkspace(); expect(workspace.strictDepBuilds).toBe(false); - expect(workspace.minimumReleaseAge).toBe(0); + expect(workspace.minimumReleaseAge).toBeUndefined(); expect(workspace.allowBuilds).toMatchObject({ esbuild: true, sharp: true, workerd: true }); }); diff --git a/packages/tests-next-suite/src/prepare-app.ts b/packages/tests-next-suite/src/prepare-app.ts index e104f6a6..af82a92a 100644 --- a/packages/tests-next-suite/src/prepare-app.ts +++ b/packages/tests-next-suite/src/prepare-app.ts @@ -61,7 +61,6 @@ export function prepareApp({ appDir, target, tarballsDir, packageManager }: Prep stringify({ ...workspace, strictDepBuilds: false, - minimumReleaseAge: 0, allowBuilds: { ...workspace.allowBuilds, esbuild: true, sharp: true, workerd: true }, overrides: { ...workspace.overrides, ...PINNED_DEPENDENCIES, ...tarballs }, }) diff --git a/packages/tests-next-suite/src/process.spec.ts b/packages/tests-next-suite/src/process.spec.ts index 16d74b0e..75a9e8b9 100644 --- a/packages/tests-next-suite/src/process.spec.ts +++ b/packages/tests-next-suite/src/process.spec.ts @@ -7,7 +7,14 @@ import { setTimeout as sleep } from "node:timers/promises"; import { afterEach, beforeEach, describe, expect, test } from "vitest"; -import { getFreePorts, startDetached, stopProcessGroup, waitForHttp } from "./process.js"; +import { + getFreePorts, + parsePid, + runDetached, + startDetached, + stopProcessGroup, + waitForHttp, +} from "./process.js"; let dir: string; let logFile: string; @@ -80,6 +87,44 @@ describe("startDetached", () => { }); }); +describe("parsePid", () => { + test("accepts a process id", () => { + expect(parsePid("12345")).toBe(12345); + expect(parsePid("12345\n")).toBe(12345); + }); + + // 0 is the caller's own group and -1 is every process, so these must never reach `process.kill`. + test.each(["", " ", "0", "1", "-5", "abc", "12.5", "0x10"])("refuses %j", (content) => { + expect(() => parsePid(content)).toThrow(/Invalid pid/); + }); +}); + +describe("runDetached", () => { + const run = (script: string, timeoutMs = 5000) => + runDetached({ command: ["node", "-e", script], cwd: dir, env: process.env, logFile, pidFile, timeoutMs }); + + test("resolves with the exit code and clears the pid file", async () => { + await expect(run("process.exit(3)")).resolves.toBe(3); + + expect(fs.existsSync(pidFile)).toBe(false); + }); + + test("records the pid while running, so that cleanup can stop it", async () => { + const running = run("setInterval(() => {}, 1000)"); + await waitForFile(pidFile); + + await stopProcessGroup(pidFile); + + await expect(running).resolves.not.toBe(0); + }); + + test("stops the group at the deadline", async () => { + await expect(run("setInterval(() => {}, 1000)", 200)).resolves.toBe("timeout"); + + expect(fs.existsSync(pidFile)).toBe(false); + }); +}); + describe("waitForHttp", () => { test("treats any HTTP status as ready", async () => { const server = http.createServer((_req, res) => res.writeHead(404).end()); @@ -152,6 +197,12 @@ describe("stopProcessGroup", () => { await expect(stopProcessGroup(pidFile)).resolves.toBeUndefined(); }); + test("refuses a corrupt pid file", async () => { + fs.writeFileSync(pidFile, "abc"); + + await expect(stopProcessGroup(pidFile)).rejects.toThrow(/Invalid pid/); + }); + test("can run twice", async () => { start("setInterval(() => {}, 1000)"); diff --git a/packages/tests-next-suite/src/process.ts b/packages/tests-next-suite/src/process.ts index a3cbc236..392dcc72 100644 --- a/packages/tests-next-suite/src/process.ts +++ b/packages/tests-next-suite/src/process.ts @@ -1,4 +1,4 @@ -import { spawn } from "node:child_process"; +import { type ChildProcess, spawn } from "node:child_process"; import fs from "node:fs"; import net from "node:net"; import { setTimeout as sleep } from "node:timers/promises"; @@ -16,6 +16,10 @@ export type StartDetachedOptions = { pidFile: string; }; +export type RunDetachedOptions = StartDetachedOptions & { + timeoutMs: number; +}; + export type WaitForHttpOptions = { url: string; pid: number; @@ -51,14 +55,51 @@ export async function getFreePorts(count: number): Promise { * @param options The command and the files receiving its output and pid. * @returns The pid, which is also the id of the process group. */ -export function startDetached({ command, cwd, env, logFile, pidFile }: StartDetachedOptions): number { +export function startDetached(options: StartDetachedOptions): number { + const child = spawnGroup(options); + child.unref(); + return child.pid!; +} + +function spawnGroup({ command, cwd, env, logFile, pidFile }: StartDetachedOptions): ChildProcess { const [file, ...args] = command as [string, ...string[]]; const log = fs.openSync(logFile, "a"); const child = spawn(file, args, { cwd, env, detached: true, stdio: ["ignore", log, log] }); fs.closeSync(log); - child.unref(); - fs.writeFileSync(pidFile, String(child.pid)); - return child.pid!; + if (child.pid !== undefined) { + fs.writeFileSync(pidFile, String(child.pid)); + } + return child; +} + +/** + * Runs a command to completion in its own process group, which `stopProcessGroup` can stop. + * + * @param options The command, the files receiving its output and pid and when to give up on it. + * @returns The exit code, `null` when it was killed, or `"timeout"` when it was stopped at the deadline. + */ +export function runDetached({ + timeoutMs, + ...options +}: RunDetachedOptions): Promise { + return new Promise((resolve, reject) => { + const child = spawnGroup(options); + let timedOut = false; + const timer = setTimeout(() => { + timedOut = true; + stopProcessGroup(options.pidFile).catch(reject); + }, timeoutMs); + + child.on("error", (error) => { + clearTimeout(timer); + reject(error); + }); + child.on("close", (code) => { + clearTimeout(timer); + fs.rmSync(options.pidFile, { force: true }); + resolve(timedOut ? "timeout" : code); + }); + }); } function isRunning(id: number): boolean { @@ -113,6 +154,23 @@ async function waitForGroupExit(pid: number, timeoutMs: number): Promise { } } +/** + * Reads the content of a pid file. + * + * It ends up negated in `process.kill`, where 0 is the group of the caller and -1 is every process. + * + * @param content The content of the file. + * @returns The pid. + * @throws When it is not the pid of a process which could have been started by this package. + */ +export function parsePid(content: string): number { + const text = content.trim(); + if (!/^[1-9]\d*$/.test(text) || Number(text) <= 1) { + throw new Error(`Invalid pid: "${content}"`); + } + return Number(text); +} + /** * Stops the process group recorded in a pid file, it does nothing if there is no such file. * @@ -123,12 +181,12 @@ export async function stopProcessGroup(pidFile: string, graceMs = DEFAULT_GRACE_ if (!fs.existsSync(pidFile)) { return; } - const pid = Number(fs.readFileSync(pidFile, "utf8")); + const pid = parsePid(fs.readFileSync(pidFile, "utf8")); signalGroup(pid, "SIGTERM"); await waitForGroupExit(pid, graceMs); signalGroup(pid, "SIGKILL"); await waitForGroupExit(pid, KILL_WAIT_MS); - fs.rmSync(pidFile); + fs.rmSync(pidFile, { force: true }); } diff --git a/packages/tests-next-suite/src/run-suite.spec.ts b/packages/tests-next-suite/src/run-suite.spec.ts index 4c5c670a..8b0c28c9 100644 --- a/packages/tests-next-suite/src/run-suite.spec.ts +++ b/packages/tests-next-suite/src/run-suite.spec.ts @@ -26,6 +26,20 @@ describe("buildRunSuiteArgs", () => { }); }); +test("passes the retry budget on", () => { + expect(buildRunSuiteArgs({ group: "1/16", concurrency: 2, retries: 1, tests: [] })).toEqual([ + "run-tests.js", + "-g", + "1/16", + "-c", + "2", + "--retries", + "1", + "--type", + "e2e", + ]); +}); + describe("buildRunSuiteEnv", () => { test("layers the target's disabled manifest on the upstream one", () => { const env = buildRunSuiteEnv({ diff --git a/packages/tests-next-suite/src/run-suite.ts b/packages/tests-next-suite/src/run-suite.ts index 9bbc6055..caead6ca 100644 --- a/packages/tests-next-suite/src/run-suite.ts +++ b/packages/tests-next-suite/src/run-suite.ts @@ -22,6 +22,8 @@ const BUNDLER_ENV: Record> = { export type RunSuiteArgsOptions = { group?: string; concurrency: number; + /** How many times a failing file runs again, `run-tests.js` defaults to 2. */ + retries?: number; tests: string[]; }; @@ -45,9 +47,10 @@ export type RunSuiteEnvOptions = { * @param options The tests to run. * @returns The arguments for `node`. */ -export function buildRunSuiteArgs({ group, concurrency, tests }: RunSuiteArgsOptions): string[] { +export function buildRunSuiteArgs({ group, concurrency, retries, tests }: RunSuiteArgsOptions): string[] { const selection = tests.length === 0 && group ? ["-g", group] : []; - return ["run-tests.js", ...selection, "-c", String(concurrency), "--type", "e2e", ...tests]; + const retryArgs = retries === undefined ? [] : ["--retries", String(retries)]; + return ["run-tests.js", ...selection, "-c", String(concurrency), ...retryArgs, "--type", "e2e", ...tests]; } /** diff --git a/packages/tests-next-suite/src/targets.spec.ts b/packages/tests-next-suite/src/targets.spec.ts index 55d9b6fc..b9ba5341 100644 --- a/packages/tests-next-suite/src/targets.spec.ts +++ b/packages/tests-next-suite/src/targets.spec.ts @@ -2,6 +2,7 @@ import fs from "node:fs"; import os from "node:os"; import path from "node:path"; +import { parse } from "dotenv"; import { describe, expect, test } from "vitest"; import { TARGETS, getTarget } from "./targets.js"; @@ -30,14 +31,20 @@ describe("TARGETS", () => { ]); }); - test("cloudflare writes test-only env to .dev.vars with values quoted", () => { + test("cloudflare writes test-only env to .dev.vars so that wrangler reads the same values", () => { const appDir = fs.mkdtempSync(path.join(os.tmpdir(), "next-suite-targets-")); - - TARGETS.cloudflare.prepareRuntimeEnv!(appDir, { PLAIN: "value", TRICKY: 'line one\nsay "hi"' }); - - expect(fs.readFileSync(path.join(appDir, ".dev.vars"), "utf8")).toBe( - 'PLAIN="value"\nTRICKY="line one\\nsay \\"hi\\""\n' - ); + const env = { + PLAIN: "value", + JSON_VALUE: '{"a":1}', + QUOTES: `it's "quoted"`, + BACKSLASHES: "C:\\new\\x", + MULTILINE: "line one\nline two", + EMPTY: "", + }; + + TARGETS.cloudflare.prepareRuntimeEnv!(appDir, env); + + expect(parse(fs.readFileSync(path.join(appDir, ".dev.vars")))).toEqual(env); }); }); diff --git a/packages/tests-next-suite/src/targets.ts b/packages/tests-next-suite/src/targets.ts index 0c589fac..d35e6017 100644 --- a/packages/tests-next-suite/src/targets.ts +++ b/packages/tests-next-suite/src/targets.ts @@ -27,8 +27,13 @@ function readCatalogVersion(name: string): string { return workspace.catalog[name]; } +/** Quotes a value for `.dev.vars`, dotenv has no escapes: the only way is a quote the value does not hold. */ function quoteDevVar(value: string): string { - return `"${value.replaceAll("\\", "\\\\").replaceAll('"', '\\"').replaceAll("\n", "\\n")}"`; + const quote = ["'", "`", '"'].find((candidate) => !value.includes(candidate)); + if (!quote) { + throw new Error(`Can not write a value holding all the quote characters to .dev.vars: ${value}`); + } + return `${quote}${value}${quote}`; } export const TARGETS: Record = { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6fbd2cf7..63e0cf47 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1036,6 +1036,9 @@ importers: '@types/node': specifier: 'catalog:' version: 24.13.2 + dotenv: + specifier: ^16.6.1 + version: 16.6.1 typescript: specifier: 'catalog:' version: 6.0.3 @@ -5037,10 +5040,6 @@ packages: resolution: {integrity: sha512-tE7ztYzXHIeyvc7N+hR3oi7FIbf/NIjVP9hmAt3yMXzrQ072/fpjGLx2GxNxGxUl5V73MEqYzioOMoVhGMJ5cA==} engines: {node: '>=10'} - dotenv@16.4.5: - resolution: {integrity: sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg==} - engines: {node: '>=12'} - dotenv@16.6.1: resolution: {integrity: sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow==} engines: {node: '>=12'} @@ -13116,8 +13115,6 @@ snapshots: dependencies: is-obj: 2.0.0 - dotenv@16.4.5: {} - dotenv@16.6.1: {} dotenv@8.6.0: {} @@ -14154,7 +14151,7 @@ snapshots: kysely-codegen@0.10.1(better-sqlite3@11.10.0)(kysely@0.25.0): dependencies: chalk: 4.1.2 - dotenv: 16.4.5 + dotenv: 16.6.1 kysely: 0.25.0 micromatch: 4.0.8 minimist: 1.2.8 @@ -15386,7 +15383,7 @@ snapshots: constructs: 10.3.0 cross-spawn: 7.0.3 dendriform-immer-patch-optimiser: 2.1.3(immer@9.0.21) - dotenv: 16.4.5 + dotenv: 16.6.1 esbuild: 0.18.13 express: 4.21.2(supports-color@10.2.2) fast-jwt: 3.3.3 From f2e00856d19fe772887cd632fd046f6475225dec Mon Sep 17 00:00:00 2001 From: Nicolas Dorseuil Date: Sun, 1 Nov 2026 15:08:02 +0100 Subject: [PATCH 10/21] test: disable edge runtime tests in the Next.js suite Co-Authored-By: Claude Opus 5.5 (1M context) --- packages/tests-next-suite/README.md | 2 + .../tests-next-suite/disabled/cloudflare.json | 324 +++++++++++++++++- packages/tests-next-suite/disabled/core.json | 324 +++++++++++++++++- packages/tests-next-suite/src/cli.ts | 21 +- packages/tests-next-suite/src/edge.spec.ts | 84 +++++ packages/tests-next-suite/src/edge.ts | 70 ++++ 6 files changed, 821 insertions(+), 4 deletions(-) create mode 100644 packages/tests-next-suite/src/edge.spec.ts create mode 100644 packages/tests-next-suite/src/edge.ts diff --git a/packages/tests-next-suite/README.md b/packages/tests-next-suite/README.md index a6da7f73..a35af55f 100644 --- a/packages/tests-next-suite/README.md +++ b/packages/tests-next-suite/README.md @@ -58,6 +58,8 @@ Each adapter has its own list, `disabled/core.json` and `disabled/cloudflare.jso - The key is an exact path, globs are not supported. - A reason is required. +The edge runtime is not supported, so `pnpm next-suite disable-edge` adds every test whose app declares it to both lists, as whole files. Run it again after updating the Next.js ref. Middleware does not count. Fixtures are shared, so one edge page in a fixture disables all of its tests. + A run warns about entries for files which no longer exist, as can happen after updating the Next.js ref. Entries for cases are not checked, so remove them once the test is fixed: use `--include-disabled` to find out. ## CI diff --git a/packages/tests-next-suite/disabled/cloudflare.json b/packages/tests-next-suite/disabled/cloudflare.json index 0967ef42..787cb87e 100644 --- a/packages/tests-next-suite/disabled/cloudflare.json +++ b/packages/tests-next-suite/disabled/cloudflare.json @@ -1 +1,323 @@ -{} +{ + "test/e2e/app-dir/actions-unrecognized/actions-unrecognized.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/actions/app-action-export.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/actions/app-action-form-state-node-middleware.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/actions/app-action-form-state.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/actions/app-action-node-middleware.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/actions/app-action-progressive-enhancement.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/actions/app-action-size-limit-invalid-node-middleware.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/actions/app-action-size-limit-invalid.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/actions/app-action.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/app-css/index.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/app-edge-root-layout/index.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/app-edge/app-edge-invalid-reexport.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/app-edge/app-edge.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/app-middleware-proxy/app-middleware-proxy-in-src-dir.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/app-middleware-proxy/app-middleware-proxy-without-pages-dir.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/app-middleware-proxy/app-middleware-proxy.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/app-middleware/app-middleware-in-src-dir.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/app-middleware/app-middleware-without-pages-dir.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/app-middleware/app-middleware.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/app-routes-trailing-slash/app-routes-trailing-slash.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/app-routes/app-custom-route-base-path.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/app-routes/app-custom-routes.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/app-simple-routes/app-simple-routes.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/app-static/app-static-custom-handler.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/app-static/app-static.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/app/experimental-compile.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/app/index.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/app/standalone-gsp.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/app/standalone.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/app/useReportWebVitals.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/bun-externals/bun-externals.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/cache-components-segment-configs/cache-components-edge-deduplication.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/cache-components-segment-configs/cache-components-segment-configs.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/dedupe-rsc-error-log/dedupe-rsc-error-log.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/draft-mode/draft-mode.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/dynamic-css/index.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/dynamic/dynamic.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/edge-route-catchall/edge-route-catchall.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/edge-route-rewrite/edge-route-rewrite.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/edge-runtime-node-compatibility/edge-runtime-node-compatibility.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/interception-route-prefetch-cache/interception-route-prefetch-cache.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/logging/fetch-logging.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/logging/fetch-warning.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/metadata-dynamic-routes/index.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/metadata-edge/index.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/metadata-font/metadata-font.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/metadata/metadata.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/next-after-app-deploy/index.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/next-after-app/index.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/next-font/next-font.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/next-image/next-image-https.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/next-image/next-image-proxy.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/next-image/next-image.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/node-extensions/node-extensions.random.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/not-found/basic/index.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/not-found/conflict-route/index.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/not-found/group-route/index.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/parallel-routes-and-interception-from-root/parallel-routes-and-interception-from-root.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/parallel-routes-and-interception/parallel-routes-and-interception.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/ppr/ppr.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/preferred-region/preferred-region.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/proxy-runtime/proxy-runtime.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/rsc-basic/rsc-basic-react-experimental.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/rsc-basic/rsc-basic.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/server-actions-redirect-middleware-rewrite/server-actions-redirect-middleware-rewrite.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/server-source-maps/server-source-maps-edge.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/server-source-maps/server-source-maps.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/set-cookies/set-cookies.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/temporary-references/temporary-references.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/use-cache-segment-configs/use-cache-segment-configs.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/with-exported-function-config/with-exported-function-config.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/cache-handlers-upstream-wiring/index.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/cancel-request/stream-cancel.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/deferred-entries/deferred-entries.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/edge-api-endpoints-can-receive-body/index.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/edge-async-local-storage/index.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/edge-can-use-wasm-files/index.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/edge-compiler-can-import-blob-assets/index.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/edge-configurable-runtime/index.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/edge-pages-support/edge-document.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/edge-pages-support/index.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/edge-runtime-pages-api-route/edge-runtime-pages-api-route.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/edge-runtime-uses-edge-light-import-specifier-for-packages/edge-runtime-uses-edge-light-import-specifier-for-packages.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/fetch-failures-have-good-stack-traces-in-edge-runtime/fetch-failures-have-good-stack-traces-in-edge-runtime.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/import-conditions/import-conditions.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/instrumentation-hook-src/instrumentation-hook-src.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/instrumentation-hook/instrumentation-hook.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/middleware-general/test/index.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/middleware-general/test/node-runtime.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/middleware-request-header-overrides/test/index.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/module-layer/module-layer.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/og-api/index.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/og-routes-custom-font/og-routes-custom-font.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/on-request-error/basic/basic.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/on-request-error/server-action-error/server-action-error.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/opentelemetry/instrumentation/instrumentation-pages-app-only.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/opentelemetry/instrumentation/opentelemetry.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/prerender-crawler.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/prerender-native-module.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/prerender.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/react-version/react-version.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/skip-trailing-slash-redirect/index.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/streaming-ssr-edge/streaming-ssr-edge.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/streaming-ssr/index.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/switchable-runtime/index.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/testmode/testmode.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/url/url.test.ts": { + "reason": "The edge runtime is not supported" + } +} diff --git a/packages/tests-next-suite/disabled/core.json b/packages/tests-next-suite/disabled/core.json index 0967ef42..787cb87e 100644 --- a/packages/tests-next-suite/disabled/core.json +++ b/packages/tests-next-suite/disabled/core.json @@ -1 +1,323 @@ -{} +{ + "test/e2e/app-dir/actions-unrecognized/actions-unrecognized.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/actions/app-action-export.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/actions/app-action-form-state-node-middleware.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/actions/app-action-form-state.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/actions/app-action-node-middleware.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/actions/app-action-progressive-enhancement.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/actions/app-action-size-limit-invalid-node-middleware.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/actions/app-action-size-limit-invalid.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/actions/app-action.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/app-css/index.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/app-edge-root-layout/index.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/app-edge/app-edge-invalid-reexport.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/app-edge/app-edge.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/app-middleware-proxy/app-middleware-proxy-in-src-dir.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/app-middleware-proxy/app-middleware-proxy-without-pages-dir.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/app-middleware-proxy/app-middleware-proxy.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/app-middleware/app-middleware-in-src-dir.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/app-middleware/app-middleware-without-pages-dir.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/app-middleware/app-middleware.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/app-routes-trailing-slash/app-routes-trailing-slash.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/app-routes/app-custom-route-base-path.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/app-routes/app-custom-routes.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/app-simple-routes/app-simple-routes.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/app-static/app-static-custom-handler.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/app-static/app-static.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/app/experimental-compile.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/app/index.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/app/standalone-gsp.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/app/standalone.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/app/useReportWebVitals.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/bun-externals/bun-externals.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/cache-components-segment-configs/cache-components-edge-deduplication.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/cache-components-segment-configs/cache-components-segment-configs.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/dedupe-rsc-error-log/dedupe-rsc-error-log.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/draft-mode/draft-mode.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/dynamic-css/index.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/dynamic/dynamic.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/edge-route-catchall/edge-route-catchall.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/edge-route-rewrite/edge-route-rewrite.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/edge-runtime-node-compatibility/edge-runtime-node-compatibility.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/interception-route-prefetch-cache/interception-route-prefetch-cache.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/logging/fetch-logging.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/logging/fetch-warning.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/metadata-dynamic-routes/index.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/metadata-edge/index.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/metadata-font/metadata-font.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/metadata/metadata.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/next-after-app-deploy/index.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/next-after-app/index.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/next-font/next-font.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/next-image/next-image-https.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/next-image/next-image-proxy.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/next-image/next-image.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/node-extensions/node-extensions.random.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/not-found/basic/index.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/not-found/conflict-route/index.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/not-found/group-route/index.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/parallel-routes-and-interception-from-root/parallel-routes-and-interception-from-root.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/parallel-routes-and-interception/parallel-routes-and-interception.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/ppr/ppr.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/preferred-region/preferred-region.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/proxy-runtime/proxy-runtime.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/rsc-basic/rsc-basic-react-experimental.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/rsc-basic/rsc-basic.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/server-actions-redirect-middleware-rewrite/server-actions-redirect-middleware-rewrite.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/server-source-maps/server-source-maps-edge.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/server-source-maps/server-source-maps.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/set-cookies/set-cookies.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/temporary-references/temporary-references.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/use-cache-segment-configs/use-cache-segment-configs.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/app-dir/with-exported-function-config/with-exported-function-config.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/cache-handlers-upstream-wiring/index.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/cancel-request/stream-cancel.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/deferred-entries/deferred-entries.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/edge-api-endpoints-can-receive-body/index.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/edge-async-local-storage/index.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/edge-can-use-wasm-files/index.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/edge-compiler-can-import-blob-assets/index.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/edge-configurable-runtime/index.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/edge-pages-support/edge-document.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/edge-pages-support/index.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/edge-runtime-pages-api-route/edge-runtime-pages-api-route.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/edge-runtime-uses-edge-light-import-specifier-for-packages/edge-runtime-uses-edge-light-import-specifier-for-packages.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/fetch-failures-have-good-stack-traces-in-edge-runtime/fetch-failures-have-good-stack-traces-in-edge-runtime.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/import-conditions/import-conditions.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/instrumentation-hook-src/instrumentation-hook-src.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/instrumentation-hook/instrumentation-hook.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/middleware-general/test/index.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/middleware-general/test/node-runtime.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/middleware-request-header-overrides/test/index.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/module-layer/module-layer.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/og-api/index.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/og-routes-custom-font/og-routes-custom-font.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/on-request-error/basic/basic.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/on-request-error/server-action-error/server-action-error.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/opentelemetry/instrumentation/instrumentation-pages-app-only.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/opentelemetry/instrumentation/opentelemetry.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/prerender-crawler.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/prerender-native-module.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/prerender.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/react-version/react-version.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/skip-trailing-slash-redirect/index.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/streaming-ssr-edge/streaming-ssr-edge.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/streaming-ssr/index.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/switchable-runtime/index.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/testmode/testmode.test.ts": { + "reason": "The edge runtime is not supported" + }, + "test/e2e/url/url.test.ts": { + "reason": "The edge runtime is not supported" + } +} diff --git a/packages/tests-next-suite/src/cli.ts b/packages/tests-next-suite/src/cli.ts index 44c4555b..f5c0aa2c 100644 --- a/packages/tests-next-suite/src/cli.ts +++ b/packages/tests-next-suite/src/cli.ts @@ -5,10 +5,11 @@ import path from "node:path"; import { parseArgs } from "node:util"; import { findStaleEntries, loadDisabled, toManifest } from "./disabled.js"; +import { disabledEdgeTests, findEdgeRuntimeTests } from "./edge.js"; import { disabledFromJUnit, mergeDisabled, summarize } from "./junit.js"; import { DEFAULT_NEXT_REF, ensureNextCheckout, packTarballs } from "./next-checkout.js"; import { buildRunSuiteArgs, buildRunSuiteEnv } from "./run-suite.js"; -import { PACKAGE_DIR, getTarget, type TargetName } from "./targets.js"; +import { PACKAGE_DIR, TARGETS, getTarget, type TargetName } from "./targets.js"; const CACHE_DIR = path.join(PACKAGE_DIR, ".cache"); const TEST_APPS_DIR = path.join(os.homedir(), ".cache/opennext-next-suite/apps"); @@ -16,7 +17,8 @@ const TEST_APPS_DIR = path.join(os.homedir(), ".cache/opennext-next-suite/apps") const USAGE = `Usage: pnpm next-suite setup [--ref ] pnpm next-suite run --target [--group 1/16] [-c 2] [--retries ] [--ref ] [--include-disabled] [test paths...] - pnpm next-suite disabled-from-junit --target --input --output --reason `; + pnpm next-suite disabled-from-junit --target --input --output --reason + pnpm next-suite disable-edge [--ref ]`; /** Resolves the Next.js checkout, set `NEXT_SUITE_NEXT_DIR` to use an existing built one. */ function resolveNextDir(ref: string): string { @@ -126,6 +128,19 @@ function seedDisabled(args: string[]): number { return 0; } +/** Adds the edge runtime tests of the checkout to the disable list of every target. */ +function disableEdge(args: string[]): number { + const { values } = parseArgs({ args, options: { ref: { type: "string", default: DEFAULT_NEXT_REF } } }); + const edgeTests = disabledEdgeTests(findEdgeRuntimeTests(resolveNextDir(values.ref))); + for (const target of Object.keys(TARGETS)) { + const file = path.join(PACKAGE_DIR, "disabled", `${target}.json`); + const list = mergeDisabled(loadDisabled(file), edgeTests); + fs.writeFileSync(file, `${JSON.stringify(list, null, "\t")}\n`); + } + console.log(`Disabled ${Object.keys(edgeTests).length} edge runtime test files`); + return 0; +} + function main([command, ...args]: string[]): number { switch (command) { case "setup": @@ -134,6 +149,8 @@ function main([command, ...args]: string[]): number { return run(args); case "disabled-from-junit": return seedDisabled(args); + case "disable-edge": + return disableEdge(args); default: console.error(USAGE); return 1; diff --git a/packages/tests-next-suite/src/edge.spec.ts b/packages/tests-next-suite/src/edge.spec.ts new file mode 100644 index 00000000..241143ac --- /dev/null +++ b/packages/tests-next-suite/src/edge.spec.ts @@ -0,0 +1,84 @@ +import fs from "node:fs"; +import os from "node:os"; +import path from "node:path"; + +import { beforeEach, describe, expect, test } from "vitest"; + +import { disabledEdgeTests, findEdgeRuntimeTests } from "./edge.js"; + +let nextDir: string; + +function write(file: string, content = ""): void { + const target = path.join(nextDir, file); + fs.mkdirSync(path.dirname(target), { recursive: true }); + fs.writeFileSync(target, content); +} + +beforeEach(() => { + nextDir = fs.mkdtempSync(path.join(os.tmpdir(), "next-suite-edge-")); +}); + +describe("findEdgeRuntimeTests", () => { + test.each([ + ["an app page", "app/page.tsx", `export const runtime = 'edge'`], + ["double quotes", "app/page.tsx", `export const runtime = "edge";`], + ["the experimental name", "pages/api/a.ts", `export const config = { runtime: 'experimental-edge' }`], + ["a pages config", "pages/a.tsx", `export const config = {\n runtime: "edge",\n}`], + ["a next.config", "next.config.js", `module.exports = { experimental: { runtime: 'edge' } }`], + ])("finds %s", (_name, file, content) => { + write("test/e2e/a/a.test.ts"); + write(`test/e2e/a/${file}`, content); + + expect(findEdgeRuntimeTests(nextDir)).toEqual(["test/e2e/a/a.test.ts"]); + }); + + test("finds an app declared inside the test file", () => { + write("test/e2e/a/a.test.ts", "files: { 'app/page.js': `export const runtime = 'edge'` }"); + + expect(findEdgeRuntimeTests(nextDir)).toEqual(["test/e2e/a/a.test.ts"]); + }); + + test("looks at the fixture when tests are in a test directory", () => { + write("test/e2e/a/test/index.test.ts"); + write("test/e2e/a/app/page.tsx", `export const runtime = 'edge'`); + + expect(findEdgeRuntimeTests(nextDir)).toEqual(["test/e2e/a/test/index.test.ts"]); + }); + + test("ignores the Node.js runtime", () => { + write("test/e2e/a/a.test.ts"); + write("test/e2e/a/app/page.tsx", `export const runtime = 'nodejs'`); + + expect(findEdgeRuntimeTests(nextDir)).toEqual([]); + }); + + test("ignores middleware, which is not an edge page", () => { + write("test/e2e/a/a.test.ts"); + write("test/e2e/a/middleware.ts", `export const config = { runtime: 'experimental-edge' }`); + write("test/e2e/a/proxy.ts", `export const config = { runtime: 'edge' }`); + + expect(findEdgeRuntimeTests(nextDir)).toEqual([]); + }); + + test("ignores dependencies and build output", () => { + write("test/e2e/a/a.test.ts"); + write("test/e2e/a/node_modules/x/index.js", `export const runtime = 'edge'`); + write("test/e2e/a/.next/server/page.js", `export const runtime = 'edge'`); + + expect(findEdgeRuntimeTests(nextDir)).toEqual([]); + }); + + test("keeps sibling test directories apart", () => { + write("test/e2e/a/a.test.ts"); + write("test/e2e/a/app/page.tsx", `export const runtime = 'edge'`); + write("test/e2e/b/b.test.ts"); + + expect(findEdgeRuntimeTests(nextDir)).toEqual(["test/e2e/a/a.test.ts"]); + }); +}); + +test("disabledEdgeTests disables whole files with the reason", () => { + expect(disabledEdgeTests(["test/e2e/a.test.ts"])).toEqual({ + "test/e2e/a.test.ts": { reason: "The edge runtime is not supported" }, + }); +}); diff --git a/packages/tests-next-suite/src/edge.ts b/packages/tests-next-suite/src/edge.ts new file mode 100644 index 00000000..a6ffd961 --- /dev/null +++ b/packages/tests-next-suite/src/edge.ts @@ -0,0 +1,70 @@ +import fs from "node:fs"; +import path from "node:path"; + +import type { DisabledList } from "./disabled.js"; + +const REASON = "The edge runtime is not supported"; +const EDGE_RUNTIME = /\bruntime\s*[:=]\s*["'](experimental-)?edge["']/; +const SOURCE_FILE = /\.(js|jsx|mjs|cjs|ts|tsx|mts|cts)$/; +const TEST_FILE = /\.test\.(js|ts|tsx)$/; +/** Middleware runs in the edge sandbox whatever it declares, and is supported. */ +const MIDDLEWARE_FILE = /^(middleware|proxy)\.[a-z]+$/; +const IGNORED_DIRS = new Set(["node_modules", ".next"]); + +function listFiles(dir: string): string[] { + return fs.readdirSync(dir, { withFileTypes: true }).flatMap((entry) => { + const file = path.join(dir, entry.name); + if (entry.isDirectory()) { + return IGNORED_DIRS.has(entry.name) ? [] : listFiles(file); + } + return [file]; + }); +} + +function declaresEdgeRuntime(file: string): boolean { + return ( + SOURCE_FILE.test(file) && + !MIDDLEWARE_FILE.test(path.basename(file)) && + EDGE_RUNTIME.test(fs.readFileSync(file, "utf8")) + ); +} + +/** Returns the directory of a test's fixture, tests can be in a `test` directory next to the app. */ +function getFixtureDir(testFile: string): string { + const dir = path.dirname(testFile); + return ["test", "tests"].includes(path.basename(dir)) ? path.dirname(dir) : dir; +} + +/** + * Finds the e2e tests with an app declaring the edge runtime. + * + * @param nextDir The Next.js checkout. + * @returns The test paths relative to the checkout, sorted. + */ +export function findEdgeRuntimeTests(nextDir: string): string[] { + const edgeDirs = new Map(); + const usesEdgeRuntime = (dir: string): boolean => { + const known = edgeDirs.get(dir); + if (known !== undefined) { + return known; + } + const result = listFiles(dir).some(declaresEdgeRuntime); + edgeDirs.set(dir, result); + return result; + }; + + return listFiles(path.join(nextDir, "test/e2e")) + .filter((file) => TEST_FILE.test(file) && usesEdgeRuntime(getFixtureDir(file))) + .map((file) => path.relative(nextDir, file)) + .sort(); +} + +/** + * Builds the disable entries of edge runtime tests. + * + * @param files The test paths. + * @returns The entries. + */ +export function disabledEdgeTests(files: string[]): DisabledList { + return Object.fromEntries(files.map((file) => [file, { reason: REASON }])); +} From 792af00b0d03cc326d56d2569ad4b657b1cf9773 Mon Sep 17 00:00:00 2001 From: Nicolas Dorseuil Date: Sun, 1 Nov 2026 15:20:33 +0100 Subject: [PATCH 11/21] fix: define the global AsyncLocalStorage in the request handler Next.js sets it when next-server is loaded, which the adapter bundle does not do. Apps without middleware crashed on their first render. Co-Authored-By: Claude Opus 5.5 (1M context) --- .changeset/core-global-async-local-storage.md | 5 +++ packages/core/src/core/requestHandler.ts | 4 ++ .../core/requestHandler.global-als.test.ts | 40 +++++++++++++++++++ 3 files changed, 49 insertions(+) create mode 100644 .changeset/core-global-async-local-storage.md create mode 100644 packages/tests-unit/tests/core/requestHandler.global-als.test.ts diff --git a/.changeset/core-global-async-local-storage.md b/.changeset/core-global-async-local-storage.md new file mode 100644 index 00000000..f0cf68f5 --- /dev/null +++ b/.changeset/core-global-async-local-storage.md @@ -0,0 +1,5 @@ +--- +"@opennextjs/core": patch +--- + +Define the global `AsyncLocalStorage` in the request handler, the server crashed on its first render when the app has no middleware. diff --git a/packages/core/src/core/requestHandler.ts b/packages/core/src/core/requestHandler.ts index b9260891..272dc409 100644 --- a/packages/core/src/core/requestHandler.ts +++ b/packages/core/src/core/requestHandler.ts @@ -20,6 +20,10 @@ import routingHandler, { MIDDLEWARE_HEADER_PREFIX_LEN, } from "./routingHandler"; +// Next.js sets this when `next-server` is loaded, which the adapter bundle does not do. Without it, the +// runtime of the routes throws when it gets loaded, when nothing else (like node middleware) has set it. +globalThis.AsyncLocalStorage ??= AsyncLocalStorage; + // This is used to identify requests in the cache globalThis.__openNextAls = new AsyncLocalStorage(); diff --git a/packages/tests-unit/tests/core/requestHandler.global-als.test.ts b/packages/tests-unit/tests/core/requestHandler.global-als.test.ts new file mode 100644 index 00000000..bd9ab6a8 --- /dev/null +++ b/packages/tests-unit/tests/core/requestHandler.global-als.test.ts @@ -0,0 +1,40 @@ +import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; + +vi.mock("@opennextjs/core/adapters/config/index.js", () => ({ + BuildId: "", + FunctionsConfigManifest: { functions: {} }, + HtmlPages: [], + MiddlewareManifest: { functions: {}, middleware: {} }, + NextConfig: {}, + PrerenderManifest: { routes: {}, dynamicRoutes: {} }, + RoutingConfig: { + routes: { + beforeMiddleware: [], + beforeFiles: [], + afterFiles: [], + dynamicRoutes: [], + onMatch: [], + fallback: [], + }, + }, +})); + +describe("requestHandler", () => { + const original = globalThis.AsyncLocalStorage; + + beforeEach(() => { + // @ts-expect-error - Next.js expects it on the global object, apps without middleware have to get it here + delete globalThis.AsyncLocalStorage; + vi.resetModules(); + }); + + afterEach(() => { + globalThis.AsyncLocalStorage = original; + }); + + it("defines the global AsyncLocalStorage the Next.js runtime needs", async () => { + await import("@opennextjs/core/core/requestHandler.js"); + + expect(globalThis.AsyncLocalStorage).toBeTypeOf("function"); + }); +}); From 3b013ff47e5ee09c3c7be73752f39d3cb92f0359 Mon Sep 17 00:00:00 2001 From: Nicolas Dorseuil Date: Sun, 1 Nov 2026 16:37:20 +0100 Subject: [PATCH 12/21] test: read JUnit reports with long failure messages Co-Authored-By: Claude Opus 5.5 (1M context) --- packages/tests-next-suite/src/junit.spec.ts | 12 ++++++++++++ packages/tests-next-suite/src/junit.ts | 2 ++ 2 files changed, 14 insertions(+) diff --git a/packages/tests-next-suite/src/junit.spec.ts b/packages/tests-next-suite/src/junit.spec.ts index 7e178158..343d9491 100644 --- a/packages/tests-next-suite/src/junit.spec.ts +++ b/packages/tests-next-suite/src/junit.spec.ts @@ -73,6 +73,18 @@ describe("disabledFromJUnit", () => { expect(disabledFromJUnit([report], "/x/next.js", "r")).toEqual({ [FILE]: { reason: "r" } }); }); + test("reads reports with failure messages holding many escaped characters", () => { + const report = writeReport([{ name: "suite case", body: `${"<".repeat(2000)}` }]); + + expect(disabledFromJUnit([report], "/x/next.js", "r")[FILE]?.cases).toEqual(["suite case"]); + }); + + test("decodes case names so that they match the names of jest", () => { + const report = writeReport([{ name: "renders "a" & b", body: FAILURE }]); + + expect(disabledFromJUnit([report], "/x/next.js", "r")[FILE]?.cases).toEqual(['renders "a" & b']); + }); + test("sorts and de-duplicates cases", () => { const report = writeReport([ { name: "b", body: FAILURE }, diff --git a/packages/tests-next-suite/src/junit.ts b/packages/tests-next-suite/src/junit.ts index 85851bc3..797f6740 100644 --- a/packages/tests-next-suite/src/junit.ts +++ b/packages/tests-next-suite/src/junit.ts @@ -15,6 +15,8 @@ type Report = { testsuites?: { name?: string; testsuite?: TestSuite[] } }; const parser = new XMLParser({ ignoreAttributes: false, attributeNamePrefix: "", + // The limit protects against hostile documents, these reports have long failure messages. + processEntities: { enabled: true, maxTotalExpansions: Number.MAX_SAFE_INTEGER }, isArray: (name) => name === "testsuite" || name === "testcase", }); From 19af0b1f726b0b63c869746cb51a98d8311ae188 Mon Sep 17 00:00:00 2001 From: Nicolas Dorseuil Date: Sun, 1 Nov 2026 16:37:20 +0100 Subject: [PATCH 13/21] test: record the Next.js suite baseline for core and cloudflare Co-Authored-By: Claude Opus 5.5 (1M context) --- .../tests-next-suite/disabled/cloudflare.json | 1441 +++++++++++++++++ packages/tests-next-suite/disabled/core.json | 1253 ++++++++++++++ 2 files changed, 2694 insertions(+) diff --git a/packages/tests-next-suite/disabled/cloudflare.json b/packages/tests-next-suite/disabled/cloudflare.json index 787cb87e..6d9ae2b3 100644 --- a/packages/tests-next-suite/disabled/cloudflare.json +++ b/packages/tests-next-suite/disabled/cloudflare.json @@ -26,6 +26,27 @@ "test/e2e/app-dir/actions/app-action.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/app-dir/app-basepath/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "app dir - basepath should only make a single RSC call to the current page (/base/refresh)", + "app dir - basepath should only make a single RSC call to the current page (/base/refresh?foo=bar)", + "app dir - basepath should properly stream an internal server action redirect() with a absolute URL", + "app dir - basepath should properly stream an internal server action redirect() with a relative URL", + "app dir - basepath should redirect externally when encountering absolute URLs on the same host outside the basePath", + "app dir - basepath should successfully hard navigate from pages -> app" + ] + }, + "test/e2e/app-dir/app-catch-all-optional/app-catch-all-optional.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["app-catch-all-optional should handle optional catchall with no params"] + }, + "test/e2e/app-dir/app-client-cache/client-cache.original.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "app dir client cache semantics (30s/5min) prefetch={undefined} - default should refetch the full page after 5 mins" + ] + }, "test/e2e/app-dir/app-css/index.test.ts": { "reason": "The edge runtime is not supported" }, @@ -38,6 +59,10 @@ "test/e2e/app-dir/app-edge/app-edge.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/app-dir/app-esm-js/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["app-dir - esm js extension should be able to use nextjs api in pages router"] + }, "test/e2e/app-dir/app-middleware-proxy/app-middleware-proxy-in-src-dir.test.ts": { "reason": "The edge runtime is not supported" }, @@ -56,6 +81,18 @@ "test/e2e/app-dir/app-middleware/app-middleware.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/app-dir/app-prefetch/prefetching.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "app dir - prefetching fetch priority should have an auto priority for all other fetch operations", + "app dir - prefetching fetch priority should prefetch links in viewport with low priority", + "app dir - prefetching should not unintentionally modify the requested prefetch by escaping the uri encoded query params" + ] + }, + "test/e2e/app-dir/app-root-params-getters/generate-static-params.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["app-root-param-getters - generateStaticParams should be statically prerenderable"] + }, "test/e2e/app-dir/app-routes-trailing-slash/app-routes-trailing-slash.test.ts": { "reason": "The edge runtime is not supported" }, @@ -89,18 +126,68 @@ "test/e2e/app-dir/app/useReportWebVitals.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/app-dir/asset-prefix-absolute/asset-prefix-absolute.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["app-dir absolute assetPrefix bundles should return 200 on served assetPrefix"] + }, + "test/e2e/app-dir/asset-prefix-with-basepath/asset-prefix-with-basepath.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["app-dir assetPrefix with basePath handling bundles should return 200 on served assetPrefix"] + }, + "test/e2e/app-dir/asset-prefix/asset-prefix.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "app-dir assetPrefix handling rewrites rewrites that do not start with assetPrefix should still work", + "app-dir assetPrefix handling rewrites should respect rewrites that start with assetPrefix" + ] + }, "test/e2e/app-dir/bun-externals/bun-externals.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/app-dir/cache-components-allow-otel-spans/cache-components-allow-otel-spans.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "cache-components OTEL spans should allow creating Spans during prerendering during the build - inside a Cache Components", + "cache-components OTEL spans should allow creating Spans during resuming a fallback - inside a Cache Component" + ] + }, "test/e2e/app-dir/cache-components-segment-configs/cache-components-edge-deduplication.test.ts": { "reason": "The edge runtime is not supported" }, "test/e2e/app-dir/cache-components-segment-configs/cache-components-segment-configs.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/app-dir/catch-error/catch-error-react-compiler.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "app-dir - unstable_catchError with react compiler should recover after reset on Pages Router", + "app-dir - unstable_catchError with react compiler should throw when unstable_retry is called on Pages Router" + ] + }, + "test/e2e/app-dir/catch-error/catch-error.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "app-dir - unstable_catchError should recover after reset on Pages Router", + "app-dir - unstable_catchError should throw when unstable_retry is called on Pages Router" + ] + }, + "test/e2e/app-dir/concurrent-navigations/mismatching-prefetch.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "mismatching prefetch recovers when a navigation rewrites to a different route than the one that was prefetched" + ] + }, + "test/e2e/app-dir/concurrent-navigations/server-patch-history.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["server patch - history entry server patch preserves the push intent of a suspended transition"] + }, "test/e2e/app-dir/dedupe-rsc-error-log/dedupe-rsc-error-log.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/app-dir/disable-logging-route/disable-logging-route.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["app-dir - disable-logging-route should not log if disabled logging"] + }, "test/e2e/app-dir/draft-mode/draft-mode.test.ts": { "reason": "The edge runtime is not supported" }, @@ -119,15 +206,74 @@ "test/e2e/app-dir/edge-runtime-node-compatibility/edge-runtime-node-compatibility.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/app-dir/fallback-shells/fallback-shells.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "fallback-shells with cached IO with generateStaticParams and the page wrapped in Suspense and params.then/catch/finally passed to a cached function resumes a postponed fallback shell", + "fallback-shells with cached IO with generateStaticParams and the page wrapped in Suspense and the params accessed in cached non-page function resumes a postponed fallback shell", + "fallback-shells with cached IO with generateStaticParams and the page wrapped in Suspense and the params accessed in the cached page does not produce hydration errors when resuming a fallback shell containing a layout with unused params", + "fallback-shells with cached IO with generateStaticParams and the page wrapped in Suspense and the params accessed in the cached page resumes a postponed fallback shell", + "fallback-shells with cached IO with generateStaticParams and the page wrapped in Suspense and the params transformed with an async function and then passed to a cached function resumes a postponed fallback shell", + "fallback-shells with cached IO without generateStaticParams and params.then/catch/finally passed to a cached function resumes a postponed fallback shell", + "fallback-shells with cached IO without generateStaticParams and the params accessed in cached non-page function resumes a postponed fallback shell", + "fallback-shells with cached IO without generateStaticParams and the params accessed in the cached page resumes a postponed fallback shell" + ] + }, + "test/e2e/app-dir/front-redirect-issue/front-redirect-issue.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["app dir - front redirect issue should redirect"] + }, + "test/e2e/app-dir/hooks/hooks.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "app dir - hooks from pages should have the correct hooks at /adapter-hooks/1", + "app dir - hooks from pages should have the correct hooks at /adapter-hooks/1/account", + "app dir - hooks from pages should have the correct hooks at /adapter-hooks/2", + "app dir - hooks from pages should have the correct hooks at /adapter-hooks/static", + "app dir - hooks usePathname should have the canonical url pathname on rewrite" + ] + }, "test/e2e/app-dir/interception-route-prefetch-cache/interception-route-prefetch-cache.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/app-dir/interoperability-with-pages/navigation.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "navigation between pages and app dir It should be able to navigate app -> pages", + "navigation between pages and app dir It should be able to navigate pages -> app" + ] + }, + "test/e2e/app-dir/javascript-urls/javascript-urls.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "javascript-urls should prevent javascript URLs in pages router Link as prop", + "javascript-urls should prevent javascript URLs in pages router Link component", + "javascript-urls should prevent javascript URLs in pages router router.push", + "javascript-urls should prevent javascript URLs in pages router router.replace" + ] + }, + "test/e2e/app-dir/layout-params/layout-params.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "app dir - layout params catchall params should give empty optional catchall params won't give params to any layout" + ] + }, "test/e2e/app-dir/logging/fetch-logging.test.ts": { "reason": "The edge runtime is not supported" }, "test/e2e/app-dir/logging/fetch-warning.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/app-dir/mdx-no-mdx-components/mdx.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["mdx pages directory should work in initial html"] + }, + "test/e2e/app-dir/metadata-dynamic-routes-async-deps/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "app dir - metadata dynamic routes with async deps should serve the opengraph-image route as a valid image" + ] + }, "test/e2e/app-dir/metadata-dynamic-routes/index.test.ts": { "reason": "The edge runtime is not supported" }, @@ -137,15 +283,188 @@ "test/e2e/app-dir/metadata-font/metadata-font.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/app-dir/metadata-icons-parallel-routes/metadata-icons-parallel-routes.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["app-dir - metadata-icons-parallel-routes should serve both icon formats"] + }, + "test/e2e/app-dir/metadata-thrown/metadata-thrown.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "app dir - metadata thrown should not crash from error thrown during preloading nested generateMetadata" + ] + }, "test/e2e/app-dir/metadata/metadata.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/app-dir/middleware-rewrite-dynamic/middleware-rewrite-dynamic.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["app dir - middleware rewrite dynamic should properly rewrite for /favicon.ico"] + }, + "test/e2e/app-dir/middleware-sitemap/matcher-exclude-sitemap/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "middleware-sitemap should not be affected by middleware if sitemap.xml is excluded from the matcher" + ] + }, + "test/e2e/app-dir/navigation/navigation.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "app dir - navigation navigation between pages and app should not contain _rsc query while navigating from app to pages", + "app dir - navigation navigation between pages and app should not contain _rsc query while navigating from pages to app", + "app dir - navigation navigation between pages and app should not omit the hash while navigating from app to pages", + "app dir - navigation query string useParams identity between renders should be stable in pages" + ] + }, "test/e2e/app-dir/next-after-app-deploy/index.test.ts": { "reason": "The edge runtime is not supported" }, "test/e2e/app-dir/next-after-app/index.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/app-dir/next-config-ts-native-mts/async-function/async-function-cjs.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-async-function-cjs should support config as async function (CJS)"] + }, + "test/e2e/app-dir/next-config-ts-native-mts/async-function/async-function-esm.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-async-function-esm should support config as async function (ESM)"] + }, + "test/e2e/app-dir/next-config-ts-native-mts/dynamic-import-esm/next-config-ts-dynamic-import-esm.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-dynamic-import-esm should support dynamic import (ESM)"] + }, + "test/e2e/app-dir/next-config-ts-native-mts/export-as-default/next-config-ts-export-as-default-cjs.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-export-as-default-cjs should support export as default (CJS)"] + }, + "test/e2e/app-dir/next-config-ts-native-mts/export-as-default/next-config-ts-export-as-default-esm.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-export-as-default-esm should support export as default (ESM)"] + }, + "test/e2e/app-dir/next-config-ts-native-mts/export-default/next-config-ts-export-default-cjs.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-export-default-cjs should support export default (CJS)"] + }, + "test/e2e/app-dir/next-config-ts-native-mts/export-default/next-config-ts-export-default-esm.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-export-default-esm should support export default (ESM)"] + }, + "test/e2e/app-dir/next-config-ts-native-mts/import-from-node-modules/next-config-ts-import-from-node-modules-cjs.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-import-from-node-modules-cjs should import from node_modules (CJS)"] + }, + "test/e2e/app-dir/next-config-ts-native-mts/import-from-node-modules/next-config-ts-import-from-node-modules-esm.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-import-from-node-modules-esm should import from node_modules (ESM)"] + }, + "test/e2e/app-dir/next-config-ts-native-mts/import-js-extensions-cjs/next-config-ts-import-js-extensions-cjs.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-import-js-extensions-cjs should import js extensions (CJS)"] + }, + "test/e2e/app-dir/next-config-ts-native-mts/import-js-extensions-esm/next-config-ts-import-js-extensions-esm.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-import-js-extensions-esm should import js extensions (ESM)"] + }, + "test/e2e/app-dir/next-config-ts-native-mts/import-json/next-config-ts-import-json-cjs.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-import-json-cjs should support import json (CJS)"] + }, + "test/e2e/app-dir/next-config-ts-native-mts/import-json/next-config-ts-import-json-esm.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-import-json-esm should support import json (ESM)"] + }, + "test/e2e/app-dir/next-config-ts-native-mts/nested-imports/next-config-ts-nested-imports-cjs.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-nested-imports-cjs should handle nested imports (CJS)"] + }, + "test/e2e/app-dir/next-config-ts-native-mts/nested-imports/next-config-ts-nested-imports-esm.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-nested-imports-esm should handle nested imports (ESM)"] + }, + "test/e2e/app-dir/next-config-ts-native-mts/node-api-cjs/next-config-ts-node-api-cjs.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-node-api-cjs should be able to use Node.js API (CJS)"] + }, + "test/e2e/app-dir/next-config-ts-native-mts/node-api-esm/next-config-ts-node-api-esm.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-node-api-esm should be able to use Node.js API (ESM)"] + }, + "test/e2e/app-dir/next-config-ts-native-mts/top-level-await-esm/next-config-ts-top-level-await-esm.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-top-level-await-esm should support top-level await (ESM)"] + }, + "test/e2e/app-dir/next-config-ts-native-ts/async-function/async-function-cjs.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-async-function-cjs should support config as async function (CJS)"] + }, + "test/e2e/app-dir/next-config-ts-native-ts/async-function/async-function-esm.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-async-function-esm should support config as async function (ESM)"] + }, + "test/e2e/app-dir/next-config-ts-native-ts/dynamic-import-esm/next-config-ts-dynamic-import-esm.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-dynamic-import-esm should support dynamic import (ESM)"] + }, + "test/e2e/app-dir/next-config-ts-native-ts/export-as-default/next-config-ts-export-as-default-cjs.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-export-as-default-cjs should support export as default (CJS)"] + }, + "test/e2e/app-dir/next-config-ts-native-ts/export-as-default/next-config-ts-export-as-default-esm.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-export-as-default-esm should support export as default (ESM)"] + }, + "test/e2e/app-dir/next-config-ts-native-ts/export-default/next-config-ts-export-default-cjs.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-export-default-cjs should support export default (CJS)"] + }, + "test/e2e/app-dir/next-config-ts-native-ts/export-default/next-config-ts-export-default-esm.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-export-default-esm should support export default (ESM)"] + }, + "test/e2e/app-dir/next-config-ts-native-ts/import-from-node-modules/next-config-ts-import-from-node-modules-cjs.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-import-from-node-modules-cjs should import from node_modules (CJS)"] + }, + "test/e2e/app-dir/next-config-ts-native-ts/import-from-node-modules/next-config-ts-import-from-node-modules-esm.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-import-from-node-modules-esm should import from node_modules (ESM)"] + }, + "test/e2e/app-dir/next-config-ts-native-ts/import-js-extensions-cjs/next-config-ts-import-js-extensions-cjs.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-import-js-extensions-cjs should import js extensions (CJS)"] + }, + "test/e2e/app-dir/next-config-ts-native-ts/import-js-extensions-esm/next-config-ts-import-js-extensions-esm.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-import-js-extensions-esm should import js extensions (ESM)"] + }, + "test/e2e/app-dir/next-config-ts-native-ts/import-json/next-config-ts-import-json-cjs.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-import-json-cjs should support import json (CJS)"] + }, + "test/e2e/app-dir/next-config-ts-native-ts/import-json/next-config-ts-import-json-esm.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-import-json-esm should support import json (ESM)"] + }, + "test/e2e/app-dir/next-config-ts-native-ts/nested-imports/next-config-ts-nested-imports-cjs.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-nested-imports-cjs should handle nested imports (CJS)"] + }, + "test/e2e/app-dir/next-config-ts-native-ts/nested-imports/next-config-ts-nested-imports-esm.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-nested-imports-esm should handle nested imports (ESM)"] + }, + "test/e2e/app-dir/next-config-ts-native-ts/node-api-cjs/next-config-ts-node-api-cjs.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-node-api-cjs should be able to use Node.js API (CJS)"] + }, + "test/e2e/app-dir/next-config-ts-native-ts/node-api-esm/next-config-ts-node-api-esm.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-node-api-esm should be able to use Node.js API (ESM)"] + }, + "test/e2e/app-dir/next-config-ts-native-ts/top-level-await-esm/next-config-ts-top-level-await-esm.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-top-level-await-esm should support top-level await (ESM)"] + }, "test/e2e/app-dir/next-font/next-font.test.ts": { "reason": "The edge runtime is not supported" }, @@ -158,9 +477,23 @@ "test/e2e/app-dir/next-image/next-image.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/app-dir/no-duplicate-headers-middleware/no-duplicate-headers-middleware.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["no-duplicate-headers-next-config should prioritise headers in middleware for static assets"] + }, + "test/e2e/app-dir/no-duplicate-headers-next-config/no-duplicate-headers-next-config.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["no-duplicate-headers-next-config should prioritise headers in next config for static assets"] + }, "test/e2e/app-dir/node-extensions/node-extensions.random.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/app-dir/not-found-with-pages-i18n/not-found-with-pages.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "not-found-with-pages-i18n should prefer the app router 404 over the pages router 404 when both are present - SSR /app-dir/foo" + ] + }, "test/e2e/app-dir/not-found/basic/index.test.ts": { "reason": "The edge runtime is not supported" }, @@ -170,27 +503,342 @@ "test/e2e/app-dir/not-found/group-route/index.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/app-dir/optimistic-routing/optimistic-routing.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "optimistic-routing basic dynamic route prediction: shows loading state instantly for unprefetched route", + "optimistic-routing nested dynamic routes: predicts through multiple dynamic segments", + "optimistic-routing optional catch-all: predicts between paths with different segment counts", + "optimistic-routing optional catch-all: predicts from index to path with segments", + "optimistic-routing required catch-all: predicts between paths with different segment counts", + "optimistic-routing rewrite detection (search params): does not use cached pattern when search params cause different rewrite", + "optimistic-routing rewrite detection: detects dynamic rewrite when URL does not match route structure", + "optimistic-routing static route with catch-all sibling: does not match sub-route against catch-all", + "optimistic-routing static sibling detection: does not incorrectly match static route to dynamic pattern" + ] + }, + "test/e2e/app-dir/pages-to-app-routing/pages-to-app-routing.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["pages-to-app-routing should work using browser"] + }, + "test/e2e/app-dir/parallel-route-not-found-params/parallel-route-not-found-params.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["parallel-route-not-found should behave correctly without any errors"] + }, + "test/e2e/app-dir/parallel-routes-and-interception-basepath/parallel-routes-and-interception-basepath.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["parallel-routes-and-interception-basepath should show parallel intercepted slot with basepath"] + }, "test/e2e/app-dir/parallel-routes-and-interception-from-root/parallel-routes-and-interception-from-root.test.ts": { "reason": "The edge runtime is not supported" }, "test/e2e/app-dir/parallel-routes-and-interception/parallel-routes-and-interception.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/app-dir/parallel-routes-catchall-slotted-non-catchalls/parallel-routes-catchall-slotted-non-catchalls.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "parallel-routes-catchall-slotted-non-catchalls should match default and dynamic segment paths before catch-all" + ] + }, + "test/e2e/app-dir/parallel-routes-generate-static-params/parallel-routes-generate-static-params.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["parallel-routes-generate-static-params should render the intercepted/non-intercepted modal"] + }, + "test/e2e/app-dir/parallel-routes-revalidation/parallel-routes-revalidation.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "parallel-routes-revalidation router.refresh (dynamic) - searchParams: false should correctly refresh data for previously intercepted modal and active page slot", + "parallel-routes-revalidation router.refresh (dynamic) - searchParams: false should correctly refresh data for the intercepted route and previously active page slot", + "parallel-routes-revalidation router.refresh (dynamic) - searchParams: true should correctly refresh data for previously intercepted modal and active page slot", + "parallel-routes-revalidation router.refresh (dynamic) - searchParams: true should correctly refresh data for the intercepted route and previously active page slot" + ] + }, + "test/e2e/app-dir/params-hooks-compat/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "app-dir - params hooks compat should only access path params with useParams", + "app-dir - params hooks compat should only access search params with useSearchParams" + ] + }, + "test/e2e/app-dir/ppr-root-param-fallback/ppr-root-param-fallback.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "ppr-root-param-fallback should have use-cache content in fallback shells for all pregenerated locales" + ] + }, "test/e2e/app-dir/ppr/ppr.test.ts": { "reason": "The edge runtime is not supported" }, "test/e2e/app-dir/preferred-region/preferred-region.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/app-dir/prerender-encoding/prerender-encoding.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["prerender-encoding should respond with the prerendered page correctly"] + }, + "test/e2e/app-dir/proxy-nfc-traced/proxy-nfc-traced.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["proxy-nfc-traced should successfully build and be redirected from proxy"] + }, + "test/e2e/app-dir/proxy-runtime-nodejs/proxy-runtime-nodejs.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["proxy-runtime-nodejs should use nodejs runtime for proxy by default"] + }, "test/e2e/app-dir/proxy-runtime/proxy-runtime.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/app-dir/resume-data-cache/resume-data-cache.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "resume-data-cache should have consistent data between static and dynamic renders with fetch cache", + "resume-data-cache should have consistent data between static and dynamic renders with use cache", + "resume-data-cache should see fresh data after updateTag in server action with fetch cache", + "resume-data-cache should see fresh data after updateTag in server action with use cache", + "resume-data-cache should use RDC for server action re-renders" + ] + }, "test/e2e/app-dir/rsc-basic/rsc-basic-react-experimental.test.ts": { "reason": "The edge runtime is not supported" }, "test/e2e/app-dir/rsc-basic/rsc-basic.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/app-dir/rsc-redirect/rsc-redirect.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["rsc-redirect should get 200 status code for rsc request"] + }, + "test/e2e/app-dir/scss/3rd-party-module/3rd-party-module.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "3rd Party CSS Module Support ({\"sass\": \"1.54.0\"}) should render the module", + "3rd Party CSS Module Support ({\"sass-embedded\": \"1.75.0\"}) should render the module" + ] + }, + "test/e2e/app-dir/scss/basic-module-additional-data/basic-module-additional-data.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Basic Module Additional Data Support ({\"sass\": \"1.54.0\"}) should render the module", + "Basic Module Additional Data Support ({\"sass-embedded\": \"1.75.0\"}) should render the module" + ] + }, + "test/e2e/app-dir/scss/basic-module-include-paths/basic-module-include-paths.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Basic Module Include Paths Support ({\"sass\": \"1.54.0\"}) should render the module", + "Basic Module Include Paths Support ({\"sass-embedded\": \"1.75.0\"}) should render the module" + ] + }, + "test/e2e/app-dir/scss/basic-module-prepend-data/basic-module-prepend-data.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Basic Module Prepend Data Support ({\"sass\": \"1.54.0\"}) should render the module", + "Basic Module Prepend Data Support ({\"sass-embedded\": \"1.75.0\"}) should render the module" + ] + }, + "test/e2e/app-dir/scss/basic-module/basic-module.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Basic SCSS Module Support ({\"sass\": \"1.54.0\"}) should render the module", + "Basic SCSS Module Support ({\"sass-embedded\": \"1.75.0\"}) should render the module" + ] + }, + "test/e2e/app-dir/scss/catch-all-module/catch-all-module.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Catch-all Route CSS Module Usage ({\"sass\": \"1.54.0\"}) should render the module", + "Catch-all Route CSS Module Usage ({\"sass-embedded\": \"1.75.0\"}) should render the module" + ] + }, + "test/e2e/app-dir/scss/composes-basic/composes-basic.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "CSS Module Composes Usage (Basic) ({\"sass\": \"1.54.0\"}) should render the module", + "CSS Module Composes Usage (Basic) ({\"sass-embedded\": \"1.75.0\"}) should render the module" + ] + }, + "test/e2e/app-dir/scss/composes-external/composes-external.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "CSS Module Composes Usage (External) ({\"sass\": \"1.54.0\"}) should render the module", + "CSS Module Composes Usage (External) ({\"sass-embedded\": \"1.75.0\"}) should render the module" + ] + }, + "test/e2e/app-dir/scss/data-url/data-url.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "SCSS Support loader handling Data Urls ({\"sass\": \"1.54.0\"}) should render the module", + "SCSS Support loader handling Data Urls ({\"sass-embedded\": \"1.75.0\"}) should render the module" + ] + }, + "test/e2e/app-dir/scss/dev-module/dev-module.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Has CSS Module in computed styles in Development ({\"sass\": \"1.54.0\"}) should have CSS for page", + "Has CSS Module in computed styles in Development ({\"sass-embedded\": \"1.75.0\"}) should have CSS for page" + ] + }, + "test/e2e/app-dir/scss/dynamic-route-module/dynamic-route-module.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Dynamic Route CSS Module Usage ({\"sass\": \"1.54.0\"}) should apply styles correctly", + "Dynamic Route CSS Module Usage ({\"sass-embedded\": \"1.75.0\"}) should apply styles correctly" + ] + }, + "test/e2e/app-dir/scss/external-url/external-url.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "SCSS Support loader handling External imports ({\"sass\": \"1.54.0\"}) should include font on the page", + "SCSS Support loader handling External imports ({\"sass-embedded\": \"1.75.0\"}) should include font on the page" + ] + }, + "test/e2e/app-dir/scss/loader-order/loader-order.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "SCSS Support loader handling Preprocessor loader order ({\"sass\": \"1.54.0\"}) should render the module", + "SCSS Support loader handling Preprocessor loader order ({\"sass-embedded\": \"1.75.0\"}) should render the module" + ] + }, + "test/e2e/app-dir/scss/multi-global-reversed/multi-global-reversed.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "(SCSS) Multi Global Support (reversed) ({\"sass\": \"1.54.0\"}) should render the page", + "(SCSS) Multi Global Support (reversed) ({\"sass-embedded\": \"1.75.0\"}) should render the page" + ] + }, + "test/e2e/app-dir/scss/multi-global/multi-global.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Multi Global Support ({\"sass\": \"1.54.0\"}) should render the page", + "Multi Global Support ({\"sass-embedded\": \"1.75.0\"}) should render the page" + ] + }, + "test/e2e/app-dir/scss/multi-page/multi-page.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "SCSS Support ({\"sass\": \"1.54.0\"}) Has CSS in computed styles in Development should have CSS for page", + "SCSS Support ({\"sass\": \"1.54.0\"}) Has CSS in computed styles in Production should have CSS for page", + "SCSS Support ({\"sass-embedded\": \"1.75.0\"}) Has CSS in computed styles in Development should have CSS for page", + "SCSS Support ({\"sass-embedded\": \"1.75.0\"}) Has CSS in computed styles in Production should have CSS for page" + ] + }, + "test/e2e/app-dir/scss/nested-global/nested-global.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Nested @import() Global Support ({\"sass\": \"1.54.0\"}) should render the page", + "Nested @import() Global Support ({\"sass-embedded\": \"1.75.0\"}) should render the page" + ] + }, + "test/e2e/app-dir/scss/nm-module-nested/nm-module-nested.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Valid Nested CSS Module Usage from within node_modules ({\"sass\": \"1.54.0\"}) should render the page", + "Valid Nested CSS Module Usage from within node_modules ({\"sass-embedded\": \"1.75.0\"}) should render the page" + ] + }, + "test/e2e/app-dir/scss/nm-module/nm-module.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Valid CSS Module Usage from within node_modules ({\"sass\": \"1.54.0\"}) should render the page", + "Valid CSS Module Usage from within node_modules ({\"sass-embedded\": \"1.75.0\"}) should render the page" + ] + }, + "test/e2e/app-dir/scss/npm-import-nested/npm-import-nested.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Good Nested CSS Import from node_modules ({\"sass\": \"1.54.0\"}) should render the page", + "Good Nested CSS Import from node_modules ({\"sass-embedded\": \"1.75.0\"}) should render the page" + ] + }, + "test/e2e/app-dir/scss/npm-import-tilde/npm-import-tilde.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Good CSS Import from node_modules with tilde ({\"sass\": \"1.54.0\"}) should render the page", + "Good CSS Import from node_modules with tilde ({\"sass-embedded\": \"1.75.0\"}) should render the page" + ] + }, + "test/e2e/app-dir/scss/npm-import/npm-import.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Good CSS Import from node_modules ({\"sass\": \"1.54.0\"}) should render the page", + "Good CSS Import from node_modules ({\"sass-embedded\": \"1.75.0\"}) should render the page" + ] + }, + "test/e2e/app-dir/scss/prod-module/prod-module.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Has CSS Module in computed styles in Production ({\"sass\": \"1.54.0\"}) should render the page", + "Has CSS Module in computed styles in Production ({\"sass-embedded\": \"1.75.0\"}) should render the page" + ] + }, + "test/e2e/app-dir/scss/single-global-src/single-global-src.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Basic Global Support with src/ dir ({\"sass\": \"1.54.0\"}) should render the page", + "Basic Global Support with src/ dir ({\"sass-embedded\": \"1.75.0\"}) should render the page" + ] + }, + "test/e2e/app-dir/scss/single-global/single-global.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Basic Global Support scss ({\"sass\": \"1.54.0\"}) should render the page", + "Basic Global Support scss ({\"sass-embedded\": \"1.75.0\"}) should render the page" + ] + }, + "test/e2e/app-dir/scss/url-global-partial/url-global-partial.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "SCSS Support loader handling CSS URL via file-loader sass partial ({\"sass\": \"1.54.0\"}) should render the page", + "SCSS Support loader handling CSS URL via file-loader sass partial ({\"sass-embedded\": \"1.75.0\"}) should render the page" + ] + }, + "test/e2e/app-dir/scss/url-global/url-global.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "SCSS Support loader handling ({\"sass\": \"1.54.0\"}) CSS URL via `file-loader` should render the page", + "SCSS Support loader handling ({\"sass-embedded\": \"1.75.0\"}) CSS URL via `file-loader` should render the page" + ] + }, + "test/e2e/app-dir/scss/with-styled-jsx/with-styled-jsx.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Ordering with styled-jsx ({\"sass\": \"1.54.0\"}) should have the correct color (css ordering)", + "Ordering with styled-jsx ({\"sass-embedded\": \"1.75.0\"}) should have the correct color (css ordering)" + ] + }, + "test/e2e/app-dir/searchparams-reuse-loading/searchparams-reuse-loading.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["searchparams-reuse-loading when aliasing is skipped should work for navigating to pages dir"] + }, + "test/e2e/app-dir/segment-cache/cached-navigations/cached-navigations.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "cached navigations caches a partially static page from the initial HTML for subsequent navigations", + "cached navigations caches runtime-prefetchable content from a navigation for instant second visit", + "cached navigations caches runtime-prefetchable content from the initial HTML for subsequent navigations", + "cached navigations caches static segments when navigating to a known route without a prefetch", + "cached navigations defers fallback params to the runtime stage", + "cached navigations includes static params in the cached static stage", + "cached navigations serves cached static segments instantly on the second navigation" + ] + }, + "test/e2e/app-dir/segment-cache/memory-pressure/segment-cache-memory-pressure.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["segment cache memory pressure does not leak memory when repeatedly triggering prefetches"] + }, + "test/e2e/app-dir/segment-cache/search-params/segment-cache-search-params.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "segment cache (search params) handles rewrites to the same page but with different search params", + "segment cache (search params) stores prefetched data by its rewritten search params, not the original ones", + "segment cache (search params) when fetching with PPR, does not include search params in the cache key", + "segment cache (search params) when fetching without PPR (e.g. prefetch=\"unstable_forceStale\"), includes the search params in the cache key" + ] + }, + "test/e2e/app-dir/segment-cache/vary-params/vary-params.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["segment cache - vary params does not reuse prefetched segment when page accesses searchParams"] + }, "test/e2e/app-dir/server-actions-redirect-middleware-rewrite/server-actions-redirect-middleware-rewrite.test.ts": { "reason": "The edge runtime is not supported" }, @@ -203,24 +851,199 @@ "test/e2e/app-dir/set-cookies/set-cookies.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/app-dir/sitemap-group/sitemap-group.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "sitemap-group should not add suffix to sitemap under group routes", + "sitemap-group should not add suffix to static sitemap.xml under group routes" + ] + }, + "test/e2e/app-dir/static-siblings/static-siblings.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "static-siblings cross-route-group siblings should include static sibling info in the server response", + "static-siblings parallel route siblings should include static sibling info in the server response", + "static-siblings same-directory siblings should include static sibling info in the server response" + ] + }, "test/e2e/app-dir/temporary-references/temporary-references.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/app-dir/turbopack-reports/turbopack-reports.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["turbopack-reports should render page importing sqlite3"] + }, + "test/e2e/app-dir/underscore-ignore-app-paths/underscore-ignore-app-paths.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["underscore-ignore-app-paths should serve pages path with underscore"] + }, + "test/e2e/app-dir/use-cache-metadata-route-handler/use-cache-metadata-route-handler.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "use-cache-metadata-route-handler should generate an icon image with a metadata route handler that uses \"use cache\"", + "use-cache-metadata-route-handler should generate an opengraph image with a metadata route handler that uses \"use cache\"", + "use-cache-metadata-route-handler should generate manifest.json with a metadata route handler that uses \"use cache\"", + "use-cache-metadata-route-handler should generate robots.txt with a metadata route handler that uses \"use cache\"", + "use-cache-metadata-route-handler should generate sitemaps with a metadata route handler that uses \"use cache\"" + ] + }, "test/e2e/app-dir/use-cache-segment-configs/use-cache-segment-configs.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/app-dir/use-params/use-params.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "use-params should work for catch all params", + "use-params should work for nested dynamic params", + "use-params should work for nested dynamic params client navigating", + "use-params should work for single dynamic param", + "use-params should work for single dynamic param client navigating", + "use-params should work on pages router", + "use-params shouldn't rerender host component when prefetching" + ] + }, "test/e2e/app-dir/with-exported-function-config/with-exported-function-config.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/app-dir/worker/worker.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "app dir - workers should have access to NEXT_DEPLOYMENT_ID in web worker", + "app dir - workers should not bundle web workers with string specifiers", + "app dir - workers should support loading PNG files in web workers", + "app dir - workers should support loading WASM files in workers", + "app dir - workers should support module web workers with dynamic imports", + "app dir - workers should support shared workers", + "app dir - workers should support web workers with dynamic imports" + ] + }, + "test/e2e/app-document/rendering.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Document and App - Rendering via HTTP _app shows a custom tag", + "Document and App - Rendering via HTTP _document Document.getInitialProps returns html prop representing app shell", + "Document and App - Rendering via HTTP _document renders ctx.renderPage with enhanceApp and enhanceComponent correctly", + "Document and App - Rendering via HTTP _document renders ctx.renderPage with enhanceApp correctly", + "Document and App - Rendering via HTTP _document renders ctx.renderPage with enhanceComponent correctly", + "Document and App - Rendering via HTTP _document renders ctx.renderPage with enhancer correctly", + "Document and App - Rendering via HTTP _document should include required elements in rendered html" + ] + }, + "test/e2e/async-modules/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Async modules can render async 404 pages", + "Async modules can render async error page", + "Async modules csr async page modules", + "Async modules ssr async page modules", + "Async modules works on async api routes", + "Async modules works with getServerSideProps" + ] + }, + "test/e2e/babel/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["Babel Should compile a page with flowtype correctly"] + }, + "test/e2e/basepath/error-pages.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "basePath client-side navigation should navigate to /404 correctly client-side", + "basePath client-side navigation should navigate to /_error correctly client-side", + "basePath manually added basePath in application logic should 404 when manually adding basePath with ", + "basePath manually added basePath in application logic should 404 when manually adding basePath with router.push", + "basePath manually added basePath in application logic should 404 when manually adding basePath with router.replace" + ] + }, + "test/e2e/basepath/query-hash.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "basePath query/hash handling is correct during query updating ## $search", + "basePath query/hash handling is correct during query updating ##? $search", + "basePath query/hash handling is correct during query updating ##hello $search", + "basePath query/hash handling is correct during query updating ##hello? $search", + "basePath query/hash handling is correct during query updating #? $search", + "basePath query/hash handling is correct during query updating #a ?hello", + "basePath query/hash handling is correct during query updating #a ?hello=", + "basePath query/hash handling is correct during query updating #a ?hello=world", + "basePath query/hash handling is correct during query updating #hello? $search", + "basePath query/hash handling is correct during query updating #hello?world $search", + "basePath query/hash handling should work with hash links" + ] + }, + "test/e2e/basepath/redirect-and-rewrite.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "basePath should not redirect with basePath when set to false", + "basePath should not rewrite with basePath when set to false", + "basePath should rewrite with basePath by default", + "basePath should rewrite without basePath when set to false" + ] + }, + "test/e2e/basepath/router-events.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "basePath should use urls with basepath in router events", + "basePath should use urls with basepath in router events for cancelled routes", + "basePath should use urls with basepath in router events for failed route change", + "basePath should use urls with basepath in router events for hash changes" + ] + }, + "test/e2e/basepath/trailing-slash.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "basePath + trailingSlash should allow URL query strings without refresh", + "basePath + trailingSlash should correctly replace state when same asPath but different url" + ] + }, + "test/e2e/browserslist-extends/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["browserslist-extends should work"] + }, "test/e2e/cache-handlers-upstream-wiring/index.test.ts": { "reason": "The edge runtime is not supported" }, "test/e2e/cancel-request/stream-cancel.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/children-page/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["children-page with pages dir should show the content if you have a page named children"] + }, + "test/e2e/chrome-devtools-workspace/chrome-devtools-workspace.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["chrome-devtools-workspace proxy should be able to connect to Chrome DevTools in dev"] + }, + "test/e2e/config-promise-export/async-function.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["async export should work"] + }, + "test/e2e/config-promise-export/promise.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["promise export should work"] + }, "test/e2e/deferred-entries/deferred-entries.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/deprecation-warnings/deprecation-warnings.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "deprecation-warnings without next.config.js should not emit any deprecation warnings when no config file exists" + ] + }, + "test/e2e/disable-js-preload/test/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["disabled JS preloads should render the page"] + }, + "test/e2e/dynamic-route-interpolation/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Dynamic Route Interpolation should bust data cache", + "Dynamic Route Interpolation should bust data cache with symbol", + "Dynamic Route Interpolation should work", + "Dynamic Route Interpolation should work with brackets", + "Dynamic Route Interpolation should work with parameter itself" + ] + }, "test/e2e/edge-api-endpoints-can-receive-body/index.test.ts": { "reason": "The edge runtime is not supported" }, @@ -248,30 +1071,465 @@ "test/e2e/edge-runtime-uses-edge-light-import-specifier-for-packages/edge-runtime-uses-edge-light-import-specifier-for-packages.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/error-handler-not-found-req-url/error-handler-not-found-req-url.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "error-handler-not-found-req-url should log the correct request url and asPath for not found _error page" + ] + }, + "test/e2e/esm-externals/esm-externals.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "esm-externals app dir url /client should render the correct page", + "esm-externals app dir url /client should return the correct SSR HTML", + "esm-externals app dir url /server should render the correct page", + "esm-externals app dir url /server should return the correct SSR HTML", + "esm-externals pages url /ssg should render the correct page", + "esm-externals pages url /ssg should return the correct SSR HTML", + "esm-externals pages url /ssr should render the correct page", + "esm-externals pages url /ssr should return the correct SSR HTML", + "esm-externals pages url /static should render the correct page", + "esm-externals pages url /static should return the correct SSR HTML" + ] + }, "test/e2e/fetch-failures-have-good-stack-traces-in-edge-runtime/fetch-failures-have-good-stack-traces-in-edge-runtime.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/getserversideprops/test/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "getServerSideProps should SSR getServerSideProps page correctly", + "getServerSideProps should SSR normal page correctly", + "getServerSideProps should allow POST request for getServerSideProps page", + "getServerSideProps should always call getServerSideProps without caching", + "getServerSideProps should dedupe server data requests", + "getServerSideProps should handle throw ENOENT correctly", + "getServerSideProps should have correct req.url and query for direct visit", + "getServerSideProps should have correct req.url and query for direct visit dynamic page", + "getServerSideProps should have correct req.url and query for direct visit dynamic page rewrite direct", + "getServerSideProps should have correct req.url and query for direct visit dynamic page rewrite direct with internal query", + "getServerSideProps should have correct req.url and query for direct visit dynamic page rewrite param", + "getServerSideProps should have correct req.url and query for direct visit dynamic page with query", + "getServerSideProps should have gssp in __NEXT_DATA__", + "getServerSideProps should load a fast refresh page", + "getServerSideProps should navigate between pages successfully", + "getServerSideProps should navigate to a normal page and back", + "getServerSideProps should not include rewrite query params in `asPath` and `req.url`", + "getServerSideProps should not re-call getServerSideProps when updating query", + "getServerSideProps should not show error for invalid JSON returned from getStaticProps on CST", + "getServerSideProps should not trigger an error when a data request is cancelled due to another navigation", + "getServerSideProps should parse query values on mount correctly", + "getServerSideProps should pass query for data request on navigation", + "getServerSideProps should provide correct query value for dynamic page", + "getServerSideProps should reload page on failed data request", + "getServerSideProps should render 404 correctly when notFound is returned client-transition (dynamic)", + "getServerSideProps should render 404 correctly when notFound is returned client-transition (non-dynamic)", + "getServerSideProps should render correctly when notFound is false (dynamic)", + "getServerSideProps should render correctly when notFound is false (non-dynamic)", + "getServerSideProps should supply params values for catchall correctly", + "getServerSideProps should supply query values SSR" + ] + }, + "test/e2e/handle-non-hoisted-swc-helpers/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["handle-non-hoisted-swc-helpers should work"] + }, + "test/e2e/hello-world/hello-world.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "hello-world should work using browser", + "hello-world should work using cheerio", + "hello-world should work with fetch", + "hello-world should work with html" + ] + }, + "test/e2e/i18n-default-locale-redirect/i18n-default-locale-redirect.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "i18-default-locale-redirect should not request a path prefixed with default locale", + "i18-default-locale-redirect should request a path prefixed with non-default locale" + ] + }, + "test/e2e/i18n-ignore-redirect-source-locale/redirects-with-basepath.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "i18n-ignore-redirect-source-locale with basepath get redirected to the new page, from and to:", + "i18n-ignore-redirect-source-locale with basepath get redirected to the new page, from and to: /en", + "i18n-ignore-redirect-source-locale with basepath get redirected to the new page, from and to: /nl", + "i18n-ignore-redirect-source-locale with basepath get redirected to the new page, from and to: /sv", + "i18n-ignore-redirect-source-locale with basepath get redirected to the new page, from: to: /", + "i18n-ignore-redirect-source-locale with basepath get redirected to the new page, from: to: en", + "i18n-ignore-redirect-source-locale with basepath get redirected to the new page, from: to: sv", + "i18n-ignore-redirect-source-locale with basepath get redirected to the new page, from: /en to: /", + "i18n-ignore-redirect-source-locale with basepath get redirected to the new page, from: /en to: en", + "i18n-ignore-redirect-source-locale with basepath get redirected to the new page, from: /en to: sv", + "i18n-ignore-redirect-source-locale with basepath get redirected to the new page, from: /nl to: /", + "i18n-ignore-redirect-source-locale with basepath get redirected to the new page, from: /nl to: en", + "i18n-ignore-redirect-source-locale with basepath get redirected to the new page, from: /nl to: sv", + "i18n-ignore-redirect-source-locale with basepath get redirected to the new page, from: /sv to: /", + "i18n-ignore-redirect-source-locale with basepath get redirected to the new page, from: /sv to: en", + "i18n-ignore-redirect-source-locale with basepath get redirected to the new page, from: /sv to: sv" + ] + }, + "test/e2e/i18n-ignore-redirect-source-locale/redirects.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "i18n-ignore-redirect-source-locale get redirected to the new page, from and to:", + "i18n-ignore-redirect-source-locale get redirected to the new page, from and to: /en", + "i18n-ignore-redirect-source-locale get redirected to the new page, from and to: /nl", + "i18n-ignore-redirect-source-locale get redirected to the new page, from and to: /sv", + "i18n-ignore-redirect-source-locale get redirected to the new page, from: to: /", + "i18n-ignore-redirect-source-locale get redirected to the new page, from: to: en", + "i18n-ignore-redirect-source-locale get redirected to the new page, from: to: sv", + "i18n-ignore-redirect-source-locale get redirected to the new page, from: /en to: /", + "i18n-ignore-redirect-source-locale get redirected to the new page, from: /en to: en", + "i18n-ignore-redirect-source-locale get redirected to the new page, from: /en to: sv", + "i18n-ignore-redirect-source-locale get redirected to the new page, from: /nl to: /", + "i18n-ignore-redirect-source-locale get redirected to the new page, from: /nl to: en", + "i18n-ignore-redirect-source-locale get redirected to the new page, from: /nl to: sv", + "i18n-ignore-redirect-source-locale get redirected to the new page, from: /sv to: /", + "i18n-ignore-redirect-source-locale get redirected to the new page, from: /sv to: en", + "i18n-ignore-redirect-source-locale get redirected to the new page, from: /sv to: sv" + ] + }, + "test/e2e/i18n-ignore-rewrite-source-locale/rewrites.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "i18n-ignore-rewrite-source-locale get public file by skipping locale in rewrite, locale:", + "i18n-ignore-rewrite-source-locale get public file by skipping locale in rewrite, locale: /en", + "i18n-ignore-rewrite-source-locale get public file by skipping locale in rewrite, locale: /nl", + "i18n-ignore-rewrite-source-locale get public file by skipping locale in rewrite, locale: /sv" + ] + }, + "test/e2e/i18n-navigations-middleware/i18n-navigations-middleware.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "i18n-navigations-middleware should respect selected locale when navigating to a dynamic route", + "i18n-navigations-middleware should respect selected locale when navigating to a static route" + ] + }, + "test/e2e/i18n-preferred-locale-detection/i18n-preferred-locale-detection.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "i18-preferred-locale-redirect should not request a path prefixed with my preferred detected locale when clicking link to index from a non-locale-prefixed path", + "i18-preferred-locale-redirect should request a path prefixed with my preferred detected locale when accessing index", + "i18-preferred-locale-redirect should request a path prefixed with my preferred detected locale when clicking link to index from a locale-prefixed path" + ] + }, + "test/e2e/ignore-invalid-popstateevent/with-i18n.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "i18n: Event with stale state - static route previously was dynamic Don't ignore event with different locale", + "i18n: Event with stale state - static route previously was dynamic Ignore event with query param", + "i18n: Event with stale state - static route previously was dynamic Ignore event without query param" + ] + }, + "test/e2e/ignore-invalid-popstateevent/without-i18n.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Event with stale state - static route previously was dynamic Ignore event with query param", + "Event with stale state - static route previously was dynamic Ignore event without query param" + ] + }, "test/e2e/import-conditions/import-conditions.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/import-meta/import-meta.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "import-meta import.meta.url should work in browser", + "import-meta import.meta.url should work on the server" + ] + }, + "test/e2e/instrumentation-client-hook/instrumentation-client-hook.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Instrumentation Client Hook App Router should execute instrumentation-client from app router before hydration", + "Instrumentation Client Hook Pages Router should execute instrumentation-client from pages router before hydration", + "Instrumentation Client Hook With src folder should execute instrumentation-client from with src folder before hydration" + ] + }, "test/e2e/instrumentation-hook-src/instrumentation-hook-src.test.ts": { "reason": "The edge runtime is not supported" }, "test/e2e/instrumentation-hook/instrumentation-hook.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/invalid-static-asset-404-app/invalid-static-asset-404-app-asset-prefix.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "invalid-static-asset-404-app-asset-prefix should return 404 with plain text when fetching invalid asset path", + "invalid-static-asset-404-app-asset-prefix should return correct output with status 200 on valid asset path" + ] + }, + "test/e2e/invalid-static-asset-404-app/invalid-static-asset-404-app-base-path.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "invalid-static-asset-404-app-base-path should return correct output with status 200 on valid asset path", + "invalid-static-asset-404-app-base-path should return custom 404 page when fetching invalid non-asset path" + ] + }, + "test/e2e/invalid-static-asset-404-app/invalid-static-asset-404-app.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "invalid-static-asset-404-app should return 404 with plain text when fetching invalid asset path" + ] + }, + "test/e2e/invalid-static-asset-404-pages/invalid-static-asset-404-pages-asset-prefix.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "invalid-static-asset-404-pages-asset-prefix should return correct output with status 200 on valid asset path", + "invalid-static-asset-404-pages-asset-prefix should return custom 404 page when fetching invalid non-asset path" + ] + }, + "test/e2e/invalid-static-asset-404-pages/invalid-static-asset-404-pages-base-path.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "invalid-static-asset-404-pages-base-path should return correct output with status 200 on valid asset path", + "invalid-static-asset-404-pages-base-path should return custom 404 page when fetching invalid non-asset path" + ] + }, + "test/e2e/invalid-static-asset-404-pages/invalid-static-asset-404-pages.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "invalid-static-asset-404-pages should return custom 404 page when fetching invalid non-asset path" + ] + }, + "test/e2e/legacy-link-behavior-pages/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Link with legacyBehavior errors when calling onClick without the event", + "Link with legacyBehavior if the child is an tag forwards the href attribute", + "Link with legacyBehavior if the child is an tag navigates correctly", + "Link with legacyBehavior passHref forwards the href attribute", + "Link with legacyBehavior passHref navigates correctly", + "Link with legacyBehavior works if the child is a number", + "Link with legacyBehavior works if the child is a string" + ] + }, + "test/e2e/link-on-navigate-prop/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + " onNavigate prop Pages Router should only trigger both onClick for external links", + " onNavigate prop Pages Router should only trigger onClick for download links", + " onNavigate prop Pages Router should only trigger onClick for external links with target=\"_blank\"", + " onNavigate prop Pages Router should prevent navigation when onNavigate calls preventDefault", + " onNavigate prop Pages Router should replace history state for external links with replace prop", + " onNavigate prop Pages Router should trigger both onClick and onNavigate for internal navigation", + " onNavigate prop Pages Router should trigger onClick but not onNavigate when using modifier key" + ] + }, + "test/e2e/link-with-api-rewrite/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "link-with-api-rewrite should perform hard navigation for direct urls", + "link-with-api-rewrite should perform hard navigation for rewritten urls" + ] + }, + "test/e2e/middleware-base-path/test/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Middleware base tests router.query must exist when Link clicked page routing", + "Middleware base tests should allow client-side navigation to the root", + "Middleware base tests should execute from absolute paths" + ] + }, + "test/e2e/middleware-custom-matchers/test/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Middleware custom matchers should match has cookie", + "Middleware custom matchers should match has header", + "Middleware custom matchers should match has header value", + "Middleware custom matchers should match has query", + "Middleware custom matchers should match missing header correctly", + "Middleware custom matchers should match missing query correctly", + "Middleware custom matchers should match source path" + ] + }, + "test/e2e/middleware-fetches-with-body/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Middleware fetches with body with bodyParser = false should be able to send and return with body greater than 16KiB", + "Middleware fetches with body with bodyParser = false should be able to send and return with body size equal to 16KiB", + "Middleware fetches with body with custom bodyParser sizeLimit (5kb) should be able to send and return body size equal to 5kb", + "Middleware fetches with body with custom bodyParser sizeLimit (5kb) should return 413 for body greater than 5kb", + "Middleware fetches with body with custom bodyParser sizeLimit (5mb) should return 413 for body greater than 5mb", + "Middleware fetches with body with default bodyParser sizeLimit (1mb) should be able to send and return body greater than default highWaterMark (16KiB)", + "Middleware fetches with body with default bodyParser sizeLimit (1mb) should be able to send and return body size equal to 1mb", + "Middleware fetches with body with default bodyParser sizeLimit (1mb) should return 413 for body greater than 1mb" + ] + }, "test/e2e/middleware-general/test/index.test.ts": { "reason": "The edge runtime is not supported" }, "test/e2e/middleware-general/test/node-runtime.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/middleware-redirects/test/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Middleware Redirect /fr should implement internal redirects", + "Middleware Redirect /fr should redirect", + "Middleware Redirect /fr should redirect multiple times", + "Middleware Redirect /fr should redirect to api route with locale", + "Middleware Redirect /fr should redirect with a fragment", + "Middleware Redirect should implement internal redirects", + "Middleware Redirect should redirect", + "Middleware Redirect should redirect correctly with redirect in next.config.js", + "Middleware Redirect should redirect multiple times", + "Middleware Redirect should redirect to api route with locale", + "Middleware Redirect should redirect to external urls with data requests and external redirects", + "Middleware Redirect should redirect with a fragment" + ] + }, + "test/e2e/middleware-redirects/test/node-runtime.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Middleware Redirect /fr should implement internal redirects", + "Middleware Redirect /fr should redirect", + "Middleware Redirect /fr should redirect (infinite-loop)", + "Middleware Redirect /fr should redirect cleanly with the original url param", + "Middleware Redirect /fr should redirect multiple times", + "Middleware Redirect /fr should redirect to api route with locale", + "Middleware Redirect /fr should redirect with a fragment", + "Middleware Redirect does not include the locale in redirects by default", + "Middleware Redirect should have relative path for same host redirect", + "Middleware Redirect should implement internal redirects", + "Middleware Redirect should redirect", + "Middleware Redirect should redirect (infinite-loop)", + "Middleware Redirect should redirect cleanly with the original url param", + "Middleware Redirect should redirect correctly with redirect in next.config.js", + "Middleware Redirect should redirect multiple times", + "Middleware Redirect should redirect to api route with locale", + "Middleware Redirect should redirect to data urls with data requests and internal redirects", + "Middleware Redirect should redirect to external urls with data requests and external redirects", + "Middleware Redirect should redirect with a fragment", + "Test execution failure: could be caused by test hooks like 'afterAll'." + ] + }, "test/e2e/middleware-request-header-overrides/test/index.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/middleware-rewrites/test/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Middleware Rewrite /fr should correctly rewriting to a different dynamic path", + "Middleware Rewrite /fr should not call middleware with shallow push", + "Middleware Rewrite /fr should rewrite without hard navigation", + "Middleware Rewrite should allow to opt-out prefetch caching", + "Middleware Rewrite should allow to rewrite to a `afterFiles` rewrite config", + "Middleware Rewrite should allow to rewrite to a `beforeFiles` rewrite config", + "Middleware Rewrite should allow to switch locales", + "Middleware Rewrite should behave consistently on recursive rewrites", + "Middleware Rewrite should correctly rewriting to a different dynamic path", + "Middleware Rewrite should handle static dynamic rewrite from middleware correctly", + "Middleware Rewrite should hard navigate on 404 for data request", + "Middleware Rewrite should not call middleware with shallow push", + "Middleware Rewrite should not prefetch non-SSG routes", + "Middleware Rewrite should opt out of prefetch caching for dynamic routes", + "Middleware Rewrite should override with rewrite externally correctly", + "Middleware Rewrite should override with rewrite internally correctly", + "Middleware Rewrite should resolve dynamic route after rewrite correctly", + "Middleware Rewrite should rewrite correctly when navigating via history", + "Middleware Rewrite should rewrite correctly when navigating via history after query update", + "Middleware Rewrite should rewrite to fallback: true page successfully", + "Middleware Rewrite should rewrite without hard navigation" + ] + }, + "test/e2e/middleware-shallow-link/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["browser-shallow-navigation should render the correct page"] + }, + "test/e2e/middleware-static-files/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Middleware Runtime should match middleware correctly for /another%2ffile.svg", + "Middleware Runtime should match middleware correctly for /another/file.svg", + "Middleware Runtime should match middleware correctly for /file.svg", + "Middleware Runtime should match middleware correctly for /glob%2ffile.svg", + "Middleware Runtime should match middleware correctly for /glob/file.svg", + "Middleware Runtime should match middleware correctly for /vercel copy.svg", + "Middleware Runtime should match middleware correctly for /vercel%20copy.svg" + ] + }, + "test/e2e/middleware-trailing-slash/test/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Middleware Runtime trailing slash allows shallow linking with middleware", + "Middleware Runtime trailing slash should add a rewrite header on data requests for rewrites", + "Middleware Runtime trailing slash should have correct dynamic route params for middleware rewrite to dynamic route", + "Middleware Runtime trailing slash should have correct dynamic route params on client-transition to dynamic route", + "Middleware Runtime trailing slash should have correct query values for rewrite to ssg page", + "Middleware Runtime trailing slash should have correct route params for chained rewrite from middleware to config rewrite", + "Middleware Runtime trailing slash should have correct route params for rewrite from config dynamic route", + "Middleware Runtime trailing slash should have correct route params for rewrite from config non-dynamic route", + "Middleware Runtime trailing slash should normalize data requests into page requests", + "Middleware Runtime trailing slash should respond with 400 on decode failure", + "Middleware Runtime trailing slash should rewrite correctly for non-SSG/SSP page", + "Middleware Runtime trailing slash should rewrite the same for direct visit and client-transition", + "Middleware Runtime trailing slash should trigger middleware for data requests", + "Middleware Runtime trailing slash with .html extension should work when navigating", + "Middleware Runtime trailing slash without .html extension should work when navigating" + ] + }, "test/e2e/module-layer/module-layer.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/new-link-behavior/child-a-tag-error.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["New Link Behavior with child should throw error with child"] + }, + "test/e2e/new-link-behavior/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "New Link Behavior should handle onclick", + "New Link Behavior should handle preventdefault", + "New Link Behavior should navigate to /about", + "New Link Behavior should render link with ", + "New Link Behavior should render link with classname", + "New Link Behavior should render link with id", + "New Link Behavior should render link with multiple children" + ] + }, + "test/e2e/next-form/basepath/next-form-basepath.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "app dir - form - with basepath should add basePath to `action`", + "app dir - form - with basepath should not add basePath to a submitter's formAction" + ] + }, + "test/e2e/next-form/default/pages-dir.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "next-form - pages dir does not navigate if preventDefault is called in onSubmit", + "next-form - pages dir does not push a new history entry if `replace` is passed", + "next-form - pages dir functions passed to action runs client action", + "next-form - pages dir functions passed to formAction runs client action from submitter and doesn't warn about unsupported attributes", + "next-form - pages dir should soft-navigate on submit", + "next-form - pages dir should soft-navigate to the formAction url of the submitter", + "next-form - pages dir unsupported attributes on submitter should warn if submitter sets \"formEncType\" to an unsupported value and fall back to default submit behavior", + "next-form - pages dir unsupported attributes on submitter should warn if submitter sets \"formMethod\" to an unsupported value and fall back to default submit behavior", + "next-form - pages dir unsupported attributes on submitter should warn if submitter sets \"formTarget\" to an unsupported value and fall back to default submit behavior", + "next-form - pages dir url-encodes file inputs, but warns about them" + ] + }, + "test/e2e/next-head/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "next/head should have correct head tags after hydration", + "next/head should have correct head tags from a fragment", + "next/head should have correct head tags in initial document", + "next/head should have current head tags from a _document getInitialProps", + "next/head should place charset element at the top of " + ] + }, + "test/e2e/nonce-head-manager/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "nonce head manager should not re-execute the script when re-rendering", + "nonce head manager should not re-execute the script when re-rendering with CSP header" + ] + }, "test/e2e/og-api/index.test.ts": { "reason": "The edge runtime is not supported" }, @@ -284,12 +1542,30 @@ "test/e2e/on-request-error/server-action-error/server-action-error.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/opentelemetry/client-trace-metadata/client-trace-metadata.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "clientTraceMetadata pages router next start only soft navigating to a dynamic page should not transform previous propagation data", + "clientTraceMetadata pages router next start only soft navigating to a static page should not transform previous propagation data" + ] + }, "test/e2e/opentelemetry/instrumentation/instrumentation-pages-app-only.test.ts": { "reason": "The edge runtime is not supported" }, "test/e2e/opentelemetry/instrumentation/opentelemetry.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/optimized-loading/test/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Optimized loading page / should load scripts with defer in head", + "Optimized loading page / should render the page /" + ] + }, + "test/e2e/postcss-config-package/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["postcss-config-json works with postcss config specified in package.json"] + }, "test/e2e/prerender-crawler.test.ts": { "reason": "The edge runtime is not supported" }, @@ -299,12 +1575,34 @@ "test/e2e/prerender.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/proxy-request-with-middleware/test/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Requests not effected when middleware used should proxy GET request", + "Requests not effected when middleware used should proxy POST request with body" + ] + }, "test/e2e/react-version/react-version.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/reload-scroll-backforward-restoration/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "reload-scroll-back-restoration should restore the scroll position on navigating back", + "reload-scroll-back-restoration should restore the scroll position on navigating forward" + ] + }, + "test/e2e/revalidate-reason/revalidate-reason.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["revalidate-reason should support revalidateReason: \"stale\""] + }, "test/e2e/skip-trailing-slash-redirect/index.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/ssr-react-context/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["React Context should render a page with context"] + }, "test/e2e/streaming-ssr-edge/streaming-ssr-edge.test.ts": { "reason": "The edge runtime is not supported" }, @@ -314,10 +1612,153 @@ "test/e2e/switchable-runtime/index.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/test-template/{{ toFileName name }}/{{ toFileName name }}.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "{{name}} should work using browser", + "{{name}} should work using cheerio", + "{{name}} should work with fetch", + "{{name}} should work with html" + ] + }, + "test/e2e/test-utils-tests/basic/basic.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["nextTestSetup should work"] + }, "test/e2e/testmode/testmode.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/trailing-slashes/with-trailing-slash.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Trailing slashes with trailingSlash: true / should client side render /index.js, with router path /", + "Trailing slashes with trailingSlash: true / should resolve to /index.js, with router path /", + "Trailing slashes with trailingSlash: true /about/ should client side render /about.js, with router path /about", + "Trailing slashes with trailingSlash: true /about/ should resolve to /about.js, with router path /about", + "Trailing slashes with trailingSlash: true /about/?hello=world should client side render /about.js, with router path /about", + "Trailing slashes with trailingSlash: true /about/?hello=world should resolve to /about.js, with router path /about", + "Trailing slashes with trailingSlash: true /catch-all/hello/world/ should client side render /catch-all/[...slug].js, with router path /catch-all/[...slug]", + "Trailing slashes with trailingSlash: true /catch-all/hello/world/ should resolve to /catch-all/[...slug].js, with router path /catch-all/[...slug]", + "Trailing slashes with trailingSlash: true /external-linker?href=https://nextjs.org should have href https://nextjs.org", + "Trailing slashes with trailingSlash: true /external-linker?href=https://nextjs.org/ should have href https://nextjs.org/", + "Trailing slashes with trailingSlash: true /linker?href=/ should have href /", + "Trailing slashes with trailingSlash: true /linker?href=/ should navigate to /", + "Trailing slashes with trailingSlash: true /linker?href=/ should push route to /", + "Trailing slashes with trailingSlash: true /linker?href=/about should have href /about/", + "Trailing slashes with trailingSlash: true /linker?href=/about should navigate to /about/", + "Trailing slashes with trailingSlash: true /linker?href=/about should push route to /about/", + "Trailing slashes with trailingSlash: true /linker?href=/about/ should have href /about/", + "Trailing slashes with trailingSlash: true /linker?href=/about/ should navigate to /about/", + "Trailing slashes with trailingSlash: true /linker?href=/about/ should push route to /about/", + "Trailing slashes with trailingSlash: true /linker?href=/about/?hello=world should have href /about/?hello=world", + "Trailing slashes with trailingSlash: true /linker?href=/about/?hello=world should navigate to /about/?hello=world", + "Trailing slashes with trailingSlash: true /linker?href=/about/?hello=world should push route to /about/?hello=world", + "Trailing slashes with trailingSlash: true /linker?href=/about?hello=world should have href /about/?hello=world", + "Trailing slashes with trailingSlash: true /linker?href=/about?hello=world should navigate to /about/?hello=world", + "Trailing slashes with trailingSlash: true /linker?href=/about?hello=world should push route to /about/?hello=world", + "Trailing slashes with trailingSlash: true /linker?href=/catch-all/hello.world/ should have href /catch-all/hello.world", + "Trailing slashes with trailingSlash: true /linker?href=/catch-all/hello.world/ should navigate to /catch-all/hello.world", + "Trailing slashes with trailingSlash: true /linker?href=/catch-all/hello.world/ should push route to /catch-all/hello.world", + "Trailing slashes with trailingSlash: true /linker?href=/catch-all/hello/ should have href /catch-all/hello/", + "Trailing slashes with trailingSlash: true /linker?href=/catch-all/hello/ should navigate to /catch-all/hello/", + "Trailing slashes with trailingSlash: true /linker?href=/catch-all/hello/ should push route to /catch-all/hello/" + ] + }, + "test/e2e/trailing-slashes/without-trailing-slash.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Trailing slashes with trailingSlash: false / should client side render /index.js, with router path /", + "Trailing slashes with trailingSlash: false / should resolve to /index.js, with router path /", + "Trailing slashes with trailingSlash: false /about should client side render /about.js, with router path /about", + "Trailing slashes with trailingSlash: false /about should resolve to /about.js, with router path /about", + "Trailing slashes with trailingSlash: false /about?hello=world should client side render /about.js, with router path /about", + "Trailing slashes with trailingSlash: false /about?hello=world should resolve to /about.js, with router path /about", + "Trailing slashes with trailingSlash: false /catch-all/hello/world should client side render /catch-all/[...slug].js, with router path /catch-all/[...slug]", + "Trailing slashes with trailingSlash: false /catch-all/hello/world should resolve to /catch-all/[...slug].js, with router path /catch-all/[...slug]", + "Trailing slashes with trailingSlash: false /external-linker?href=https://nextjs.org should have href https://nextjs.org", + "Trailing slashes with trailingSlash: false /external-linker?href=https://nextjs.org/ should have href https://nextjs.org/", + "Trailing slashes with trailingSlash: false /linker?href=/ should have href /", + "Trailing slashes with trailingSlash: false /linker?href=/ should navigate to /", + "Trailing slashes with trailingSlash: false /linker?href=/ should push route to /", + "Trailing slashes with trailingSlash: false /linker?href=/about should have href /about", + "Trailing slashes with trailingSlash: false /linker?href=/about should navigate to /about", + "Trailing slashes with trailingSlash: false /linker?href=/about should push route to /about", + "Trailing slashes with trailingSlash: false /linker?href=/about/ should have href /about", + "Trailing slashes with trailingSlash: false /linker?href=/about/ should navigate to /about", + "Trailing slashes with trailingSlash: false /linker?href=/about/ should push route to /about", + "Trailing slashes with trailingSlash: false /linker?href=/about/?hello=world should have href /about?hello=world", + "Trailing slashes with trailingSlash: false /linker?href=/about/?hello=world should navigate to /about?hello=world", + "Trailing slashes with trailingSlash: false /linker?href=/about/?hello=world should push route to /about?hello=world", + "Trailing slashes with trailingSlash: false /linker?href=/about?hello=world should have href /about?hello=world", + "Trailing slashes with trailingSlash: false /linker?href=/about?hello=world should navigate to /about?hello=world", + "Trailing slashes with trailingSlash: false /linker?href=/about?hello=world should push route to /about?hello=world", + "Trailing slashes with trailingSlash: false /linker?href=/catch-all/hello.world/ should have href /catch-all/hello.world", + "Trailing slashes with trailingSlash: false /linker?href=/catch-all/hello.world/ should navigate to /catch-all/hello.world", + "Trailing slashes with trailingSlash: false /linker?href=/catch-all/hello.world/ should push route to /catch-all/hello.world", + "Trailing slashes with trailingSlash: false /linker?href=/catch-all/hello/ should have href /catch-all/hello", + "Trailing slashes with trailingSlash: false /linker?href=/catch-all/hello/ should navigate to /catch-all/hello", + "Trailing slashes with trailingSlash: false /linker?href=/catch-all/hello/ should push route to /catch-all/hello" + ] + }, + "test/e2e/tsconfig-path/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["specified tsconfig pages router: allows a user-specific tsconfig via the next config"] + }, + "test/e2e/twoslash/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "twoslash should annotate twoslash types default", + "twoslash should annotate twoslash types esnext" + ] + }, + "test/e2e/type-module-interop/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Type module interop should render server-side", + "Type module interop should render server-side with modules" + ] + }, + "test/e2e/typescript-custom-tsconfig/test/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["Custom TypeScript Config pages router: allows a user-specific tsconfig via the next config"] + }, + "test/e2e/undici-fetch/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "undici fetch undici global Headers should return true when undici is used", + "undici fetch undici global Request should return true when undici is used", + "undici fetch undici global Response should return true when undici is used" + ] + }, "test/e2e/url/url.test.ts": { "reason": "The edge runtime is not supported" + }, + "test/e2e/use-router-with-rewrites/use-router-with-rewrites.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "use-router-with-rewrites rewrite to another segment should preserve current pathname when using Link with rewrites on dynamic route", + "use-router-with-rewrites rewrite to another segment should preserve current pathname when using useRouter.push with rewrites on dynamic route", + "use-router-with-rewrites rewrite to another segment should preserve current pathname when using useRouter.replace with rewrites on dynamic route", + "use-router-with-rewrites rewrite to same segment should preserve current pathname when using Link with rewrites on dynamic route", + "use-router-with-rewrites rewrite to same segment should preserve current pathname when using useRouter.push with rewrites on dynamic route", + "use-router-with-rewrites rewrite to same segment should preserve current pathname when using useRouter.replace with rewrites on dynamic route", + "use-router-with-rewrites should preserve current pathname when using Link with rewrites", + "use-router-with-rewrites should preserve current pathname when using useRouter.push with rewrites", + "use-router-with-rewrites should preserve current pathname when using useRouter.replace with rewrites" + ] + }, + "test/e2e/useselectedlayoutsegment-s-in-pages-router/useselectedlayoutsegment-s-in-pages-router.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "useSelectedLayoutSegment(s) in Pages Router Should render with `useSelectedLayoutSegment(s) hooks" + ] + }, + "test/e2e/with-router/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "withRouter production mode allows observation of navigation events using top level Router", + "withRouter production mode allows observation of navigation events using top level Router deprecated behavior", + "withRouter production mode allows observation of navigation events using withRouter" + ] } } diff --git a/packages/tests-next-suite/disabled/core.json b/packages/tests-next-suite/disabled/core.json index 787cb87e..446d3846 100644 --- a/packages/tests-next-suite/disabled/core.json +++ b/packages/tests-next-suite/disabled/core.json @@ -26,6 +26,20 @@ "test/e2e/app-dir/actions/app-action.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/app-dir/app-basepath/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "app dir - basepath should properly stream an internal server action redirect() with a absolute URL", + "app dir - basepath should properly stream an internal server action redirect() with a relative URL", + "app dir - basepath should successfully hard navigate from pages -> app", + "app dir - basepath should support Link with basePath prefixed", + "app dir - basepath should support `basePath`" + ] + }, + "test/e2e/app-dir/app-catch-all-optional/app-catch-all-optional.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["app-catch-all-optional should handle optional catchall with no params"] + }, "test/e2e/app-dir/app-css/index.test.ts": { "reason": "The edge runtime is not supported" }, @@ -38,6 +52,10 @@ "test/e2e/app-dir/app-edge/app-edge.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/app-dir/app-esm-js/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["app-dir - esm js extension should be able to use nextjs api in pages router"] + }, "test/e2e/app-dir/app-middleware-proxy/app-middleware-proxy-in-src-dir.test.ts": { "reason": "The edge runtime is not supported" }, @@ -56,6 +74,19 @@ "test/e2e/app-dir/app-middleware/app-middleware.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/app-dir/app-prefetch/prefetching.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "app dir - prefetching fetch priority should have an auto priority for all other fetch operations", + "app dir - prefetching fetch priority should prefetch links in viewport with low priority", + "app dir - prefetching fetch priority should respect multiple prefetch types to the same URL", + "app dir - prefetching should not unintentionally modify the requested prefetch by escaping the uri encoded query params" + ] + }, + "test/e2e/app-dir/app-root-params-getters/generate-static-params.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["app-root-param-getters - generateStaticParams should be statically prerenderable"] + }, "test/e2e/app-dir/app-routes-trailing-slash/app-routes-trailing-slash.test.ts": { "reason": "The edge runtime is not supported" }, @@ -89,6 +120,25 @@ "test/e2e/app-dir/app/useReportWebVitals.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/app-dir/asset-prefix-absolute/asset-prefix-absolute.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["app-dir absolute assetPrefix bundles should return 200 on served assetPrefix"] + }, + "test/e2e/app-dir/asset-prefix-with-basepath/asset-prefix-with-basepath.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "app-dir assetPrefix with basePath handling bundles should return 200 on served assetPrefix", + "app-dir assetPrefix with basePath handling should redirect route when clicking link", + "app-dir assetPrefix with basePath handling should render link" + ] + }, + "test/e2e/app-dir/asset-prefix/asset-prefix.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Test execution failure: could be caused by test hooks like 'afterAll'.", + "app-dir assetPrefix handling rewrites rewrites that do not start with assetPrefix should still work" + ] + }, "test/e2e/app-dir/bun-externals/bun-externals.test.ts": { "reason": "The edge runtime is not supported" }, @@ -98,6 +148,26 @@ "test/e2e/app-dir/cache-components-segment-configs/cache-components-segment-configs.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/app-dir/catch-error/catch-error-react-compiler.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "app-dir - unstable_catchError with react compiler should recover after reset on Pages Router", + "app-dir - unstable_catchError with react compiler should throw when unstable_retry is called on Pages Router" + ] + }, + "test/e2e/app-dir/catch-error/catch-error.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "app-dir - unstable_catchError should recover after reset on Pages Router", + "app-dir - unstable_catchError should throw when unstable_retry is called on Pages Router" + ] + }, + "test/e2e/app-dir/concurrent-navigations/mismatching-prefetch.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "mismatching prefetch recovers when a navigation rewrites to a different route than the one that was prefetched" + ] + }, "test/e2e/app-dir/dedupe-rsc-error-log/dedupe-rsc-error-log.test.ts": { "reason": "The edge runtime is not supported" }, @@ -119,15 +189,74 @@ "test/e2e/app-dir/edge-runtime-node-compatibility/edge-runtime-node-compatibility.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/app-dir/fallback-shells/fallback-shells.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "fallback-shells with cached IO with generateStaticParams and the page wrapped in Suspense and params.then/catch/finally passed to a cached function resumes a postponed fallback shell", + "fallback-shells with cached IO with generateStaticParams and the page wrapped in Suspense and the params accessed in cached non-page function resumes a postponed fallback shell", + "fallback-shells with cached IO with generateStaticParams and the page wrapped in Suspense and the params accessed in the cached page does not produce hydration errors when resuming a fallback shell containing a layout with unused params", + "fallback-shells with cached IO with generateStaticParams and the page wrapped in Suspense and the params accessed in the cached page resumes a postponed fallback shell", + "fallback-shells with cached IO with generateStaticParams and the page wrapped in Suspense and the params transformed with an async function and then passed to a cached function resumes a postponed fallback shell", + "fallback-shells with cached IO without generateStaticParams and params.then/catch/finally passed to a cached function resumes a postponed fallback shell", + "fallback-shells with cached IO without generateStaticParams and the params accessed in cached non-page function resumes a postponed fallback shell", + "fallback-shells with cached IO without generateStaticParams and the params accessed in the cached page resumes a postponed fallback shell" + ] + }, + "test/e2e/app-dir/front-redirect-issue/front-redirect-issue.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["app dir - front redirect issue should redirect"] + }, + "test/e2e/app-dir/hooks/hooks.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "app dir - hooks from pages should have the correct hooks at /adapter-hooks/1", + "app dir - hooks from pages should have the correct hooks at /adapter-hooks/1/account", + "app dir - hooks from pages should have the correct hooks at /adapter-hooks/2", + "app dir - hooks from pages should have the correct hooks at /adapter-hooks/static", + "app dir - hooks usePathname should have the canonical url pathname on rewrite" + ] + }, "test/e2e/app-dir/interception-route-prefetch-cache/interception-route-prefetch-cache.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/app-dir/interoperability-with-pages/navigation.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "navigation between pages and app dir It should be able to navigate app -> pages", + "navigation between pages and app dir It should be able to navigate pages -> app" + ] + }, + "test/e2e/app-dir/javascript-urls/javascript-urls.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "javascript-urls should prevent javascript URLs in pages router Link as prop", + "javascript-urls should prevent javascript URLs in pages router Link component", + "javascript-urls should prevent javascript URLs in pages router router.push", + "javascript-urls should prevent javascript URLs in pages router router.replace" + ] + }, + "test/e2e/app-dir/layout-params/layout-params.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "app dir - layout params catchall params should give empty optional catchall params won't give params to any layout" + ] + }, "test/e2e/app-dir/logging/fetch-logging.test.ts": { "reason": "The edge runtime is not supported" }, "test/e2e/app-dir/logging/fetch-warning.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/app-dir/mdx-no-mdx-components/mdx.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["mdx pages directory should work in initial html"] + }, + "test/e2e/app-dir/metadata-dynamic-routes-async-deps/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "app dir - metadata dynamic routes with async deps should serve the opengraph-image route as a valid image" + ] + }, "test/e2e/app-dir/metadata-dynamic-routes/index.test.ts": { "reason": "The edge runtime is not supported" }, @@ -137,15 +266,194 @@ "test/e2e/app-dir/metadata-font/metadata-font.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/app-dir/metadata-icons-parallel-routes/metadata-icons-parallel-routes.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["app-dir - metadata-icons-parallel-routes should serve both icon formats"] + }, + "test/e2e/app-dir/metadata-thrown/metadata-thrown.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "app dir - metadata thrown should not crash from error thrown during preloading nested generateMetadata" + ] + }, "test/e2e/app-dir/metadata/metadata.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/app-dir/middleware-rewrite-dynamic/middleware-rewrite-dynamic.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["app dir - middleware rewrite dynamic should properly rewrite for /favicon.ico"] + }, + "test/e2e/app-dir/middleware-sitemap/matcher-exclude-sitemap/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "middleware-sitemap should not be affected by middleware if sitemap.xml is excluded from the matcher" + ] + }, + "test/e2e/app-dir/navigation/navigation.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "app dir - navigation navigation between pages and app should not contain _rsc query while navigating from app to pages", + "app dir - navigation navigation between pages and app should not contain _rsc query while navigating from pages to app", + "app dir - navigation navigation between pages and app should not omit the hash while navigating from app to pages", + "app dir - navigation query string useParams identity between renders should be stable in pages" + ] + }, "test/e2e/app-dir/next-after-app-deploy/index.test.ts": { "reason": "The edge runtime is not supported" }, "test/e2e/app-dir/next-after-app/index.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/app-dir/next-config-ts-native-mts/async-function/async-function-cjs.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-async-function-cjs should support config as async function (CJS)"] + }, + "test/e2e/app-dir/next-config-ts-native-mts/async-function/async-function-esm.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-async-function-esm should support config as async function (ESM)"] + }, + "test/e2e/app-dir/next-config-ts-native-mts/dynamic-import-esm/next-config-ts-dynamic-import-esm.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-dynamic-import-esm should support dynamic import (ESM)"] + }, + "test/e2e/app-dir/next-config-ts-native-mts/export-as-default/next-config-ts-export-as-default-cjs.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-export-as-default-cjs should support export as default (CJS)"] + }, + "test/e2e/app-dir/next-config-ts-native-mts/export-as-default/next-config-ts-export-as-default-esm.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-export-as-default-esm should support export as default (ESM)"] + }, + "test/e2e/app-dir/next-config-ts-native-mts/export-default/next-config-ts-export-default-cjs.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-export-default-cjs should support export default (CJS)"] + }, + "test/e2e/app-dir/next-config-ts-native-mts/export-default/next-config-ts-export-default-esm.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-export-default-esm should support export default (ESM)"] + }, + "test/e2e/app-dir/next-config-ts-native-mts/import-from-node-modules/next-config-ts-import-from-node-modules-cjs.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-import-from-node-modules-cjs should import from node_modules (CJS)"] + }, + "test/e2e/app-dir/next-config-ts-native-mts/import-from-node-modules/next-config-ts-import-from-node-modules-esm.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-import-from-node-modules-esm should import from node_modules (ESM)"] + }, + "test/e2e/app-dir/next-config-ts-native-mts/import-js-extensions-cjs/next-config-ts-import-js-extensions-cjs.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-import-js-extensions-cjs should import js extensions (CJS)"] + }, + "test/e2e/app-dir/next-config-ts-native-mts/import-js-extensions-esm/next-config-ts-import-js-extensions-esm.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-import-js-extensions-esm should import js extensions (ESM)"] + }, + "test/e2e/app-dir/next-config-ts-native-mts/import-json/next-config-ts-import-json-cjs.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-import-json-cjs should support import json (CJS)"] + }, + "test/e2e/app-dir/next-config-ts-native-mts/import-json/next-config-ts-import-json-esm.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-import-json-esm should support import json (ESM)"] + }, + "test/e2e/app-dir/next-config-ts-native-mts/nested-imports/next-config-ts-nested-imports-cjs.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-nested-imports-cjs should handle nested imports (CJS)"] + }, + "test/e2e/app-dir/next-config-ts-native-mts/nested-imports/next-config-ts-nested-imports-esm.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-nested-imports-esm should handle nested imports (ESM)"] + }, + "test/e2e/app-dir/next-config-ts-native-mts/node-api-cjs/next-config-ts-node-api-cjs.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-node-api-cjs should be able to use Node.js API (CJS)"] + }, + "test/e2e/app-dir/next-config-ts-native-mts/node-api-esm/next-config-ts-node-api-esm.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-node-api-esm should be able to use Node.js API (ESM)"] + }, + "test/e2e/app-dir/next-config-ts-native-mts/top-level-await-esm/next-config-ts-top-level-await-esm.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-top-level-await-esm should support top-level await (ESM)"] + }, + "test/e2e/app-dir/next-config-ts-native-ts/async-function/async-function-cjs.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-async-function-cjs should support config as async function (CJS)"] + }, + "test/e2e/app-dir/next-config-ts-native-ts/async-function/async-function-esm.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-async-function-esm should support config as async function (ESM)"] + }, + "test/e2e/app-dir/next-config-ts-native-ts/dynamic-import-esm/next-config-ts-dynamic-import-esm.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-dynamic-import-esm should support dynamic import (ESM)"] + }, + "test/e2e/app-dir/next-config-ts-native-ts/export-as-default/next-config-ts-export-as-default-cjs.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-export-as-default-cjs should support export as default (CJS)"] + }, + "test/e2e/app-dir/next-config-ts-native-ts/export-as-default/next-config-ts-export-as-default-esm.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-export-as-default-esm should support export as default (ESM)"] + }, + "test/e2e/app-dir/next-config-ts-native-ts/export-default/next-config-ts-export-default-cjs.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-export-default-cjs should support export default (CJS)"] + }, + "test/e2e/app-dir/next-config-ts-native-ts/export-default/next-config-ts-export-default-esm.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-export-default-esm should support export default (ESM)"] + }, + "test/e2e/app-dir/next-config-ts-native-ts/import-from-node-modules/next-config-ts-import-from-node-modules-cjs.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-import-from-node-modules-cjs should import from node_modules (CJS)"] + }, + "test/e2e/app-dir/next-config-ts-native-ts/import-from-node-modules/next-config-ts-import-from-node-modules-esm.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-import-from-node-modules-esm should import from node_modules (ESM)"] + }, + "test/e2e/app-dir/next-config-ts-native-ts/import-js-extensions-cjs/next-config-ts-import-js-extensions-cjs.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-import-js-extensions-cjs should import js extensions (CJS)"] + }, + "test/e2e/app-dir/next-config-ts-native-ts/import-js-extensions-esm/next-config-ts-import-js-extensions-esm.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-import-js-extensions-esm should import js extensions (ESM)"] + }, + "test/e2e/app-dir/next-config-ts-native-ts/import-json/next-config-ts-import-json-cjs.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-import-json-cjs should support import json (CJS)"] + }, + "test/e2e/app-dir/next-config-ts-native-ts/import-json/next-config-ts-import-json-esm.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-import-json-esm should support import json (ESM)"] + }, + "test/e2e/app-dir/next-config-ts-native-ts/nested-imports/next-config-ts-nested-imports-cjs.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-nested-imports-cjs should handle nested imports (CJS)"] + }, + "test/e2e/app-dir/next-config-ts-native-ts/nested-imports/next-config-ts-nested-imports-esm.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-nested-imports-esm should handle nested imports (ESM)"] + }, + "test/e2e/app-dir/next-config-ts-native-ts/node-api-cjs/next-config-ts-node-api-cjs.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-node-api-cjs should be able to use Node.js API (CJS)"] + }, + "test/e2e/app-dir/next-config-ts-native-ts/node-api-esm/next-config-ts-node-api-esm.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-node-api-esm should be able to use Node.js API (ESM)"] + }, + "test/e2e/app-dir/next-config-ts-native-ts/top-level-await-esm/next-config-ts-top-level-await-esm.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["next-config-ts-top-level-await-esm should support top-level await (ESM)"] + }, + "test/e2e/app-dir/next-dist-client-esm-import/next-dist-client-esm-import.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "next-dist-client-esm-import should resolve ESM modules that have \"next/dist/client\" in their filename" + ] + }, "test/e2e/app-dir/next-font/next-font.test.ts": { "reason": "The edge runtime is not supported" }, @@ -158,9 +466,23 @@ "test/e2e/app-dir/next-image/next-image.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/app-dir/no-duplicate-headers-middleware/no-duplicate-headers-middleware.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["no-duplicate-headers-next-config should prioritise headers in middleware for static assets"] + }, + "test/e2e/app-dir/no-duplicate-headers-next-config/no-duplicate-headers-next-config.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["no-duplicate-headers-next-config should prioritise headers in next config for static assets"] + }, "test/e2e/app-dir/node-extensions/node-extensions.random.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/app-dir/not-found-with-pages-i18n/not-found-with-pages.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "not-found-with-pages-i18n should prefer the app router 404 over the pages router 404 when both are present - SSR /app-dir/foo" + ] + }, "test/e2e/app-dir/not-found/basic/index.test.ts": { "reason": "The edge runtime is not supported" }, @@ -170,27 +492,308 @@ "test/e2e/app-dir/not-found/group-route/index.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/app-dir/parallel-route-not-found-params/parallel-route-not-found-params.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["parallel-route-not-found should behave correctly without any errors"] + }, + "test/e2e/app-dir/parallel-routes-and-interception-basepath/parallel-routes-and-interception-basepath.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["parallel-routes-and-interception-basepath should show parallel intercepted slot with basepath"] + }, "test/e2e/app-dir/parallel-routes-and-interception-from-root/parallel-routes-and-interception-from-root.test.ts": { "reason": "The edge runtime is not supported" }, "test/e2e/app-dir/parallel-routes-and-interception/parallel-routes-and-interception.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/app-dir/parallel-routes-catchall-slotted-non-catchalls/parallel-routes-catchall-slotted-non-catchalls.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "parallel-routes-catchall-slotted-non-catchalls should match default and dynamic segment paths before catch-all" + ] + }, + "test/e2e/app-dir/parallel-routes-generate-static-params/parallel-routes-generate-static-params.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["parallel-routes-generate-static-params should render the intercepted/non-intercepted modal"] + }, + "test/e2e/app-dir/parallel-routes-revalidation/parallel-routes-revalidation.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "parallel-routes-revalidation router.refresh (dynamic) - searchParams: false should correctly refresh data for previously intercepted modal and active page slot", + "parallel-routes-revalidation router.refresh (dynamic) - searchParams: false should correctly refresh data for the intercepted route and previously active page slot", + "parallel-routes-revalidation router.refresh (dynamic) - searchParams: true should correctly refresh data for previously intercepted modal and active page slot", + "parallel-routes-revalidation router.refresh (dynamic) - searchParams: true should correctly refresh data for the intercepted route and previously active page slot" + ] + }, + "test/e2e/app-dir/params-hooks-compat/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "app-dir - params hooks compat should only access path params with useParams", + "app-dir - params hooks compat should only access search params with useSearchParams" + ] + }, + "test/e2e/app-dir/ppr-root-param-fallback/ppr-root-param-fallback.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "ppr-root-param-fallback should have use-cache content in fallback shells for all pregenerated locales" + ] + }, "test/e2e/app-dir/ppr/ppr.test.ts": { "reason": "The edge runtime is not supported" }, "test/e2e/app-dir/preferred-region/preferred-region.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/app-dir/prerender-encoding/prerender-encoding.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["prerender-encoding should respond with the prerendered page correctly"] + }, "test/e2e/app-dir/proxy-runtime/proxy-runtime.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/app-dir/resource-url-encoding/resource-url-encoding.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["scripts encodes characters in pages router", "styles encodes characters in pages router"] + }, + "test/e2e/app-dir/resume-data-cache/resume-data-cache.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "resume-data-cache should have consistent data between static and dynamic renders with fetch cache", + "resume-data-cache should have consistent data between static and dynamic renders with use cache", + "resume-data-cache should see fresh data after updateTag in server action with fetch cache", + "resume-data-cache should see fresh data after updateTag in server action with use cache", + "resume-data-cache should use RDC for server action re-renders" + ] + }, "test/e2e/app-dir/rsc-basic/rsc-basic-react-experimental.test.ts": { "reason": "The edge runtime is not supported" }, "test/e2e/app-dir/rsc-basic/rsc-basic.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/app-dir/rsc-redirect/rsc-redirect.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["rsc-redirect should get 200 status code for rsc request"] + }, + "test/e2e/app-dir/scss/3rd-party-module/3rd-party-module.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "3rd Party CSS Module Support ({\"sass\": \"1.54.0\"}) should render the module", + "3rd Party CSS Module Support ({\"sass-embedded\": \"1.75.0\"}) should render the module" + ] + }, + "test/e2e/app-dir/scss/basic-module-additional-data/basic-module-additional-data.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Basic Module Additional Data Support ({\"sass\": \"1.54.0\"}) should render the module", + "Basic Module Additional Data Support ({\"sass-embedded\": \"1.75.0\"}) should render the module" + ] + }, + "test/e2e/app-dir/scss/basic-module-include-paths/basic-module-include-paths.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Basic Module Include Paths Support ({\"sass\": \"1.54.0\"}) should render the module", + "Basic Module Include Paths Support ({\"sass-embedded\": \"1.75.0\"}) should render the module" + ] + }, + "test/e2e/app-dir/scss/basic-module-prepend-data/basic-module-prepend-data.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Basic Module Prepend Data Support ({\"sass\": \"1.54.0\"}) should render the module", + "Basic Module Prepend Data Support ({\"sass-embedded\": \"1.75.0\"}) should render the module" + ] + }, + "test/e2e/app-dir/scss/basic-module/basic-module.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Basic SCSS Module Support ({\"sass\": \"1.54.0\"}) should render the module", + "Basic SCSS Module Support ({\"sass-embedded\": \"1.75.0\"}) should render the module" + ] + }, + "test/e2e/app-dir/scss/catch-all-module/catch-all-module.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Catch-all Route CSS Module Usage ({\"sass\": \"1.54.0\"}) should render the module", + "Catch-all Route CSS Module Usage ({\"sass-embedded\": \"1.75.0\"}) should render the module" + ] + }, + "test/e2e/app-dir/scss/composes-basic/composes-basic.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "CSS Module Composes Usage (Basic) ({\"sass\": \"1.54.0\"}) should render the module", + "CSS Module Composes Usage (Basic) ({\"sass-embedded\": \"1.75.0\"}) should render the module" + ] + }, + "test/e2e/app-dir/scss/composes-external/composes-external.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "CSS Module Composes Usage (External) ({\"sass\": \"1.54.0\"}) should render the module", + "CSS Module Composes Usage (External) ({\"sass-embedded\": \"1.75.0\"}) should render the module" + ] + }, + "test/e2e/app-dir/scss/data-url/data-url.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "SCSS Support loader handling Data Urls ({\"sass\": \"1.54.0\"}) should render the module", + "SCSS Support loader handling Data Urls ({\"sass-embedded\": \"1.75.0\"}) should render the module" + ] + }, + "test/e2e/app-dir/scss/dev-module/dev-module.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Has CSS Module in computed styles in Development ({\"sass\": \"1.54.0\"}) should have CSS for page", + "Has CSS Module in computed styles in Development ({\"sass-embedded\": \"1.75.0\"}) should have CSS for page" + ] + }, + "test/e2e/app-dir/scss/dynamic-route-module/dynamic-route-module.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Dynamic Route CSS Module Usage ({\"sass\": \"1.54.0\"}) should apply styles correctly", + "Dynamic Route CSS Module Usage ({\"sass-embedded\": \"1.75.0\"}) should apply styles correctly" + ] + }, + "test/e2e/app-dir/scss/external-url/external-url.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "SCSS Support loader handling External imports ({\"sass\": \"1.54.0\"}) should include font on the page", + "SCSS Support loader handling External imports ({\"sass-embedded\": \"1.75.0\"}) should include font on the page" + ] + }, + "test/e2e/app-dir/scss/loader-order/loader-order.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "SCSS Support loader handling Preprocessor loader order ({\"sass\": \"1.54.0\"}) should render the module", + "SCSS Support loader handling Preprocessor loader order ({\"sass-embedded\": \"1.75.0\"}) should render the module" + ] + }, + "test/e2e/app-dir/scss/multi-global-reversed/multi-global-reversed.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "(SCSS) Multi Global Support (reversed) ({\"sass\": \"1.54.0\"}) should render the page", + "(SCSS) Multi Global Support (reversed) ({\"sass-embedded\": \"1.75.0\"}) should render the page" + ] + }, + "test/e2e/app-dir/scss/multi-global/multi-global.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Multi Global Support ({\"sass\": \"1.54.0\"}) should render the page", + "Multi Global Support ({\"sass-embedded\": \"1.75.0\"}) should render the page" + ] + }, + "test/e2e/app-dir/scss/multi-page/multi-page.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "SCSS Support ({\"sass\": \"1.54.0\"}) Has CSS in computed styles in Development should have CSS for page", + "SCSS Support ({\"sass\": \"1.54.0\"}) Has CSS in computed styles in Production should have CSS for page", + "SCSS Support ({\"sass-embedded\": \"1.75.0\"}) Has CSS in computed styles in Development should have CSS for page", + "SCSS Support ({\"sass-embedded\": \"1.75.0\"}) Has CSS in computed styles in Production should have CSS for page" + ] + }, + "test/e2e/app-dir/scss/nested-global/nested-global.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Nested @import() Global Support ({\"sass\": \"1.54.0\"}) should render the page", + "Nested @import() Global Support ({\"sass-embedded\": \"1.75.0\"}) should render the page" + ] + }, + "test/e2e/app-dir/scss/nm-module-nested/nm-module-nested.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Valid Nested CSS Module Usage from within node_modules ({\"sass\": \"1.54.0\"}) should render the page", + "Valid Nested CSS Module Usage from within node_modules ({\"sass-embedded\": \"1.75.0\"}) should render the page" + ] + }, + "test/e2e/app-dir/scss/nm-module/nm-module.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Valid CSS Module Usage from within node_modules ({\"sass\": \"1.54.0\"}) should render the page", + "Valid CSS Module Usage from within node_modules ({\"sass-embedded\": \"1.75.0\"}) should render the page" + ] + }, + "test/e2e/app-dir/scss/npm-import-nested/npm-import-nested.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Good Nested CSS Import from node_modules ({\"sass\": \"1.54.0\"}) should render the page", + "Good Nested CSS Import from node_modules ({\"sass-embedded\": \"1.75.0\"}) should render the page" + ] + }, + "test/e2e/app-dir/scss/npm-import-tilde/npm-import-tilde.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Good CSS Import from node_modules with tilde ({\"sass\": \"1.54.0\"}) should render the page", + "Good CSS Import from node_modules with tilde ({\"sass-embedded\": \"1.75.0\"}) should render the page" + ] + }, + "test/e2e/app-dir/scss/npm-import/npm-import.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Good CSS Import from node_modules ({\"sass\": \"1.54.0\"}) should render the page", + "Good CSS Import from node_modules ({\"sass-embedded\": \"1.75.0\"}) should render the page" + ] + }, + "test/e2e/app-dir/scss/prod-module/prod-module.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Has CSS Module in computed styles in Production ({\"sass\": \"1.54.0\"}) should render the page", + "Has CSS Module in computed styles in Production ({\"sass-embedded\": \"1.75.0\"}) should render the page" + ] + }, + "test/e2e/app-dir/scss/single-global-src/single-global-src.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Basic Global Support with src/ dir ({\"sass\": \"1.54.0\"}) should render the page", + "Basic Global Support with src/ dir ({\"sass-embedded\": \"1.75.0\"}) should render the page" + ] + }, + "test/e2e/app-dir/scss/single-global/single-global.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Basic Global Support scss ({\"sass\": \"1.54.0\"}) should render the page", + "Basic Global Support scss ({\"sass-embedded\": \"1.75.0\"}) should render the page" + ] + }, + "test/e2e/app-dir/scss/url-global-partial/url-global-partial.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "SCSS Support loader handling CSS URL via file-loader sass partial ({\"sass\": \"1.54.0\"}) should render the page", + "SCSS Support loader handling CSS URL via file-loader sass partial ({\"sass-embedded\": \"1.75.0\"}) should render the page" + ] + }, + "test/e2e/app-dir/scss/url-global/url-global.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "SCSS Support loader handling ({\"sass\": \"1.54.0\"}) CSS URL via `file-loader` should render the page", + "SCSS Support loader handling ({\"sass-embedded\": \"1.75.0\"}) CSS URL via `file-loader` should render the page" + ] + }, + "test/e2e/app-dir/scss/with-styled-jsx/with-styled-jsx.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Ordering with styled-jsx ({\"sass\": \"1.54.0\"}) should have the correct color (css ordering)", + "Ordering with styled-jsx ({\"sass-embedded\": \"1.75.0\"}) should have the correct color (css ordering)" + ] + }, + "test/e2e/app-dir/searchparams-reuse-loading/searchparams-reuse-loading.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["searchparams-reuse-loading when aliasing is skipped should work for navigating to pages dir"] + }, + "test/e2e/app-dir/segment-cache/memory-pressure/segment-cache-memory-pressure.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["segment cache memory pressure does not leak memory when repeatedly triggering prefetches"] + }, + "test/e2e/app-dir/segment-cache/search-params/segment-cache-search-params.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "segment cache (search params) handles rewrites to the same page but with different search params", + "segment cache (search params) stores prefetched data by its rewritten search params, not the original ones", + "segment cache (search params) when fetching with PPR, does not include search params in the cache key", + "segment cache (search params) when fetching without PPR (e.g. prefetch=\"unstable_forceStale\"), includes the search params in the cache key" + ] + }, + "test/e2e/app-dir/segment-cache/vary-params/vary-params.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["segment cache - vary params does not reuse prefetched segment when page accesses searchParams"] + }, "test/e2e/app-dir/server-actions-redirect-middleware-rewrite/server-actions-redirect-middleware-rewrite.test.ts": { "reason": "The edge runtime is not supported" }, @@ -203,24 +806,172 @@ "test/e2e/app-dir/set-cookies/set-cookies.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/app-dir/sitemap-group/sitemap-group.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "sitemap-group should not add suffix to sitemap under group routes", + "sitemap-group should not add suffix to static sitemap.xml under group routes" + ] + }, + "test/e2e/app-dir/static-siblings/static-siblings.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "static-siblings cross-route-group siblings should include static sibling info in the server response", + "static-siblings parallel route siblings should include static sibling info in the server response", + "static-siblings same-directory siblings should include static sibling info in the server response" + ] + }, "test/e2e/app-dir/temporary-references/temporary-references.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/app-dir/turbopack-reports/turbopack-reports.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["turbopack-reports should render page importing sqlite3"] + }, + "test/e2e/app-dir/underscore-ignore-app-paths/underscore-ignore-app-paths.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["underscore-ignore-app-paths should serve pages path with underscore"] + }, + "test/e2e/app-dir/use-cache-metadata-route-handler/use-cache-metadata-route-handler.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "use-cache-metadata-route-handler should generate manifest.json with a metadata route handler that uses \"use cache\"", + "use-cache-metadata-route-handler should generate robots.txt with a metadata route handler that uses \"use cache\"", + "use-cache-metadata-route-handler should generate sitemaps with a metadata route handler that uses \"use cache\"" + ] + }, "test/e2e/app-dir/use-cache-segment-configs/use-cache-segment-configs.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/app-dir/use-params/use-params.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "use-params should work for nested dynamic params", + "use-params should work for nested dynamic params client navigating", + "use-params should work on pages router" + ] + }, "test/e2e/app-dir/with-exported-function-config/with-exported-function-config.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/app-document/rendering.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Document and App - Rendering via HTTP _app shows a custom tag", + "Document and App - Rendering via HTTP _document Document.getInitialProps returns html prop representing app shell", + "Document and App - Rendering via HTTP _document renders ctx.renderPage with enhanceApp and enhanceComponent correctly", + "Document and App - Rendering via HTTP _document renders ctx.renderPage with enhanceApp correctly", + "Document and App - Rendering via HTTP _document renders ctx.renderPage with enhanceComponent correctly", + "Document and App - Rendering via HTTP _document renders ctx.renderPage with enhancer correctly", + "Document and App - Rendering via HTTP _document should include required elements in rendered html" + ] + }, + "test/e2e/async-modules/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Async modules can render async 404 pages", + "Async modules can render async error page", + "Async modules csr async page modules", + "Async modules ssr async page modules", + "Async modules works on async api routes", + "Async modules works with getServerSideProps" + ] + }, + "test/e2e/babel/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["Babel Should compile a page with flowtype correctly"] + }, + "test/e2e/basepath/error-pages.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "basePath client-side navigation should navigate to /404 correctly client-side", + "basePath client-side navigation should navigate to /_error correctly client-side", + "basePath manually added basePath in application logic should 404 when manually adding basePath with ", + "basePath manually added basePath in application logic should 404 when manually adding basePath with router.push", + "basePath manually added basePath in application logic should 404 when manually adding basePath with router.replace" + ] + }, + "test/e2e/basepath/query-hash.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "basePath query/hash handling is correct during query updating ## $search", + "basePath query/hash handling is correct during query updating ##? $search", + "basePath query/hash handling is correct during query updating ##hello $search", + "basePath query/hash handling is correct during query updating ##hello? $search", + "basePath query/hash handling is correct during query updating #? $search", + "basePath query/hash handling is correct during query updating #a ?hello", + "basePath query/hash handling is correct during query updating #a ?hello=", + "basePath query/hash handling is correct during query updating #a ?hello=world", + "basePath query/hash handling is correct during query updating #hello? $search", + "basePath query/hash handling is correct during query updating #hello?world $search", + "basePath query/hash handling should work with hash links" + ] + }, + "test/e2e/basepath/redirect-and-rewrite.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "basePath should not redirect with basePath when set to false", + "basePath should not rewrite with basePath when set to false", + "basePath should rewrite with basePath by default", + "basePath should rewrite without basePath when set to false" + ] + }, + "test/e2e/basepath/router-events.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "basePath should use urls with basepath in router events", + "basePath should use urls with basepath in router events for cancelled routes", + "basePath should use urls with basepath in router events for failed route change", + "basePath should use urls with basepath in router events for hash changes" + ] + }, + "test/e2e/basepath/trailing-slash.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["basePath + trailingSlash should allow URL query strings without refresh"] + }, + "test/e2e/browserslist-extends/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["browserslist-extends should work"] + }, "test/e2e/cache-handlers-upstream-wiring/index.test.ts": { "reason": "The edge runtime is not supported" }, "test/e2e/cancel-request/stream-cancel.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/children-page/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["children-page with pages dir should show the content if you have a page named children"] + }, + "test/e2e/chrome-devtools-workspace/chrome-devtools-workspace-custom-disable.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["chrome-devtools-workspace custom disable can be disabled by providing your own endpoint"] + }, + "test/e2e/config-promise-export/async-function.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["async export should work"] + }, + "test/e2e/config-promise-export/promise.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["promise export should work"] + }, + "test/e2e/css-data-url-global-pages/css-data-url-global-pages.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["css-data-url-global-pages should apply styles from data url correctly"] + }, "test/e2e/deferred-entries/deferred-entries.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/deprecation-warnings/deprecation-warnings.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "deprecation-warnings without next.config.js should not emit any deprecation warnings when no config file exists" + ] + }, + "test/e2e/disable-js-preload/test/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["disabled JS preloads should render the page"] + }, "test/e2e/edge-api-endpoints-can-receive-body/index.test.ts": { "reason": "The edge runtime is not supported" }, @@ -248,30 +999,422 @@ "test/e2e/edge-runtime-uses-edge-light-import-specifier-for-packages/edge-runtime-uses-edge-light-import-specifier-for-packages.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/error-handler-not-found-req-url/error-handler-not-found-req-url.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "error-handler-not-found-req-url should log the correct request url and asPath for not found _error page" + ] + }, + "test/e2e/esm-externals/esm-externals.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "esm-externals pages url /ssr should render the correct page", + "esm-externals pages url /ssr should return the correct SSR HTML", + "esm-externals pages url /static should render the correct page", + "esm-externals pages url /static should return the correct SSR HTML" + ] + }, "test/e2e/fetch-failures-have-good-stack-traces-in-edge-runtime/fetch-failures-have-good-stack-traces-in-edge-runtime.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/getserversideprops/test/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "getServerSideProps should SSR normal page correctly", + "getServerSideProps should allow POST request for getServerSideProps page", + "getServerSideProps should dedupe server data requests", + "getServerSideProps should handle throw ENOENT correctly", + "getServerSideProps should have correct req.url and query for direct visit dynamic page rewrite direct", + "getServerSideProps should have correct req.url and query for direct visit dynamic page rewrite direct with internal query", + "getServerSideProps should have correct req.url and query for direct visit dynamic page rewrite param", + "getServerSideProps should have gssp in __NEXT_DATA__", + "getServerSideProps should navigate between pages successfully", + "getServerSideProps should navigate to a normal page and back", + "getServerSideProps should not include rewrite query params in `asPath` and `req.url`", + "getServerSideProps should not show error for invalid JSON returned from getStaticProps on CST", + "getServerSideProps should not trigger an error when a data request is cancelled due to another navigation", + "getServerSideProps should pass query for data request on navigation", + "getServerSideProps should reload page on failed data request", + "getServerSideProps should render 404 correctly when notFound is returned client-transition (dynamic)", + "getServerSideProps should render 404 correctly when notFound is returned client-transition (non-dynamic)" + ] + }, + "test/e2e/handle-non-hoisted-swc-helpers/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["handle-non-hoisted-swc-helpers should work"] + }, + "test/e2e/hello-world/hello-world.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "hello-world should work using browser", + "hello-world should work using cheerio", + "hello-world should work with fetch", + "hello-world should work with html" + ] + }, + "test/e2e/i18n-default-locale-redirect/i18n-default-locale-redirect.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "i18-default-locale-redirect should not request a path prefixed with default locale", + "i18-default-locale-redirect should request a path prefixed with non-default locale" + ] + }, + "test/e2e/i18n-ignore-redirect-source-locale/redirects-with-basepath.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "i18n-ignore-redirect-source-locale with basepath get redirected to the new page, from and to:", + "i18n-ignore-redirect-source-locale with basepath get redirected to the new page, from and to: /en", + "i18n-ignore-redirect-source-locale with basepath get redirected to the new page, from and to: /nl", + "i18n-ignore-redirect-source-locale with basepath get redirected to the new page, from and to: /sv", + "i18n-ignore-redirect-source-locale with basepath get redirected to the new page, from: to: /", + "i18n-ignore-redirect-source-locale with basepath get redirected to the new page, from: to: en", + "i18n-ignore-redirect-source-locale with basepath get redirected to the new page, from: to: sv", + "i18n-ignore-redirect-source-locale with basepath get redirected to the new page, from: /en to: /", + "i18n-ignore-redirect-source-locale with basepath get redirected to the new page, from: /en to: en", + "i18n-ignore-redirect-source-locale with basepath get redirected to the new page, from: /en to: sv", + "i18n-ignore-redirect-source-locale with basepath get redirected to the new page, from: /nl to: /", + "i18n-ignore-redirect-source-locale with basepath get redirected to the new page, from: /nl to: en", + "i18n-ignore-redirect-source-locale with basepath get redirected to the new page, from: /nl to: sv", + "i18n-ignore-redirect-source-locale with basepath get redirected to the new page, from: /sv to: /", + "i18n-ignore-redirect-source-locale with basepath get redirected to the new page, from: /sv to: en", + "i18n-ignore-redirect-source-locale with basepath get redirected to the new page, from: /sv to: sv" + ] + }, + "test/e2e/i18n-ignore-redirect-source-locale/redirects.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "i18n-ignore-redirect-source-locale get redirected to the new page, from and to:", + "i18n-ignore-redirect-source-locale get redirected to the new page, from and to: /en", + "i18n-ignore-redirect-source-locale get redirected to the new page, from and to: /nl", + "i18n-ignore-redirect-source-locale get redirected to the new page, from and to: /sv", + "i18n-ignore-redirect-source-locale get redirected to the new page, from: to: /", + "i18n-ignore-redirect-source-locale get redirected to the new page, from: to: en", + "i18n-ignore-redirect-source-locale get redirected to the new page, from: to: sv", + "i18n-ignore-redirect-source-locale get redirected to the new page, from: /en to: /", + "i18n-ignore-redirect-source-locale get redirected to the new page, from: /en to: en", + "i18n-ignore-redirect-source-locale get redirected to the new page, from: /en to: sv", + "i18n-ignore-redirect-source-locale get redirected to the new page, from: /nl to: /", + "i18n-ignore-redirect-source-locale get redirected to the new page, from: /nl to: en", + "i18n-ignore-redirect-source-locale get redirected to the new page, from: /nl to: sv", + "i18n-ignore-redirect-source-locale get redirected to the new page, from: /sv to: /", + "i18n-ignore-redirect-source-locale get redirected to the new page, from: /sv to: en", + "i18n-ignore-redirect-source-locale get redirected to the new page, from: /sv to: sv" + ] + }, + "test/e2e/i18n-ignore-rewrite-source-locale/rewrites.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "i18n-ignore-rewrite-source-locale get public file by skipping locale in rewrite, locale:", + "i18n-ignore-rewrite-source-locale get public file by skipping locale in rewrite, locale: /en", + "i18n-ignore-rewrite-source-locale get public file by skipping locale in rewrite, locale: /nl", + "i18n-ignore-rewrite-source-locale get public file by skipping locale in rewrite, locale: /sv" + ] + }, + "test/e2e/i18n-navigations-middleware/i18n-navigations-middleware.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "i18n-navigations-middleware should respect selected locale when navigating to a dynamic route", + "i18n-navigations-middleware should respect selected locale when navigating to a static route" + ] + }, + "test/e2e/i18n-preferred-locale-detection/i18n-preferred-locale-detection.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "i18-preferred-locale-redirect should not request a path prefixed with my preferred detected locale when clicking link to index from a non-locale-prefixed path" + ] + }, + "test/e2e/ignore-invalid-popstateevent/with-i18n.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "i18n: Event with stale state - static route previously was dynamic Don't ignore event with different locale", + "i18n: Event with stale state - static route previously was dynamic Ignore event with query param", + "i18n: Event with stale state - static route previously was dynamic Ignore event without query param" + ] + }, + "test/e2e/ignore-invalid-popstateevent/without-i18n.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Event with stale state - static route previously was dynamic Ignore event with query param", + "Event with stale state - static route previously was dynamic Ignore event without query param" + ] + }, "test/e2e/import-conditions/import-conditions.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/import-meta/import-meta.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "import-meta import.meta.url should work in browser", + "import-meta import.meta.url should work on the server" + ] + }, + "test/e2e/instrumentation-client-hook/instrumentation-client-hook.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Instrumentation Client Hook App Router should execute instrumentation-client from app router before hydration", + "Instrumentation Client Hook Pages Router should execute instrumentation-client from pages router before hydration", + "Instrumentation Client Hook With src folder should execute instrumentation-client from with src folder before hydration" + ] + }, "test/e2e/instrumentation-hook-src/instrumentation-hook-src.test.ts": { "reason": "The edge runtime is not supported" }, "test/e2e/instrumentation-hook/instrumentation-hook.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/invalid-static-asset-404-app/invalid-static-asset-404-app-asset-prefix.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "invalid-static-asset-404-app-asset-prefix should return 404 with plain text when fetching invalid asset path", + "invalid-static-asset-404-app-asset-prefix should return correct output with status 200 on valid asset path" + ] + }, + "test/e2e/invalid-static-asset-404-app/invalid-static-asset-404-app-base-path.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "invalid-static-asset-404-app-base-path should return custom 404 page when fetching invalid non-asset path" + ] + }, + "test/e2e/invalid-static-asset-404-app/invalid-static-asset-404-app.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "invalid-static-asset-404-app should return 404 with plain text when fetching invalid asset path" + ] + }, + "test/e2e/invalid-static-asset-404-pages/invalid-static-asset-404-pages-asset-prefix.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "invalid-static-asset-404-pages-asset-prefix should return correct output with status 200 on valid asset path", + "invalid-static-asset-404-pages-asset-prefix should return custom 404 page when fetching invalid non-asset path" + ] + }, + "test/e2e/invalid-static-asset-404-pages/invalid-static-asset-404-pages-base-path.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "invalid-static-asset-404-pages-base-path should return custom 404 page when fetching invalid non-asset path" + ] + }, + "test/e2e/invalid-static-asset-404-pages/invalid-static-asset-404-pages.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "invalid-static-asset-404-pages should return custom 404 page when fetching invalid non-asset path" + ] + }, + "test/e2e/legacy-link-behavior-pages/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Link with legacyBehavior errors when calling onClick without the event", + "Link with legacyBehavior if the child is an tag forwards the href attribute", + "Link with legacyBehavior if the child is an tag navigates correctly", + "Link with legacyBehavior passHref forwards the href attribute", + "Link with legacyBehavior passHref navigates correctly", + "Link with legacyBehavior works if the child is a number", + "Link with legacyBehavior works if the child is a string" + ] + }, + "test/e2e/link-on-navigate-prop/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + " onNavigate prop Pages Router should only trigger both onClick for external links", + " onNavigate prop Pages Router should only trigger onClick for download links", + " onNavigate prop Pages Router should only trigger onClick for external links with target=\"_blank\"", + " onNavigate prop Pages Router should prevent navigation when onNavigate calls preventDefault", + " onNavigate prop Pages Router should replace history state for external links with replace prop", + " onNavigate prop Pages Router should trigger both onClick and onNavigate for internal navigation", + " onNavigate prop Pages Router should trigger onClick but not onNavigate when using modifier key" + ] + }, + "test/e2e/link-with-api-rewrite/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "link-with-api-rewrite should perform hard navigation for direct urls", + "link-with-api-rewrite should perform hard navigation for rewritten urls" + ] + }, + "test/e2e/middleware-base-path/test/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Middleware base tests router.query must exist when Link clicked page routing", + "Middleware base tests should allow client-side navigation to the root", + "Middleware base tests should execute from absolute paths" + ] + }, + "test/e2e/middleware-custom-matchers/test/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Middleware custom matchers should match has cookie", + "Middleware custom matchers should match has header", + "Middleware custom matchers should match has header value", + "Middleware custom matchers should match has query", + "Middleware custom matchers should match missing header correctly", + "Middleware custom matchers should match missing query correctly", + "Middleware custom matchers should match source path" + ] + }, + "test/e2e/middleware-fetches-with-body/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Middleware fetches with body should return 413 for body equal to 10mb", + "Middleware fetches with body with bodyParser = false should be able to send and return with body greater than 16KiB", + "Middleware fetches with body with bodyParser = false should be able to send and return with body size equal to 16KiB", + "Middleware fetches with body with custom bodyParser sizeLimit (5kb) should be able to send and return body size equal to 5kb", + "Middleware fetches with body with custom bodyParser sizeLimit (5kb) should return 413 for body greater than 5kb", + "Middleware fetches with body with custom bodyParser sizeLimit (5mb) should return 413 for body greater than 5mb", + "Middleware fetches with body with default bodyParser sizeLimit (1mb) should be able to send and return body greater than default highWaterMark (16KiB)", + "Middleware fetches with body with default bodyParser sizeLimit (1mb) should be able to send and return body size equal to 1mb", + "Middleware fetches with body with default bodyParser sizeLimit (1mb) should return 413 for body greater than 1mb" + ] + }, "test/e2e/middleware-general/test/index.test.ts": { "reason": "The edge runtime is not supported" }, "test/e2e/middleware-general/test/node-runtime.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/middleware-redirects/test/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Middleware Redirect /fr should implement internal redirects", + "Middleware Redirect /fr should redirect", + "Middleware Redirect /fr should redirect multiple times", + "Middleware Redirect /fr should redirect to api route with locale", + "Middleware Redirect /fr should redirect with a fragment", + "Middleware Redirect should implement internal redirects", + "Middleware Redirect should redirect", + "Middleware Redirect should redirect correctly with redirect in next.config.js", + "Middleware Redirect should redirect multiple times", + "Middleware Redirect should redirect to api route with locale", + "Middleware Redirect should redirect to external urls with data requests and external redirects", + "Middleware Redirect should redirect with a fragment" + ] + }, + "test/e2e/middleware-redirects/test/node-runtime.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Middleware Redirect /fr should implement internal redirects", + "Middleware Redirect /fr should redirect", + "Middleware Redirect /fr should redirect multiple times", + "Middleware Redirect /fr should redirect to api route with locale", + "Middleware Redirect /fr should redirect with a fragment", + "Middleware Redirect should implement internal redirects", + "Middleware Redirect should redirect", + "Middleware Redirect should redirect correctly with redirect in next.config.js", + "Middleware Redirect should redirect multiple times", + "Middleware Redirect should redirect to api route with locale", + "Middleware Redirect should redirect to external urls with data requests and external redirects", + "Middleware Redirect should redirect with a fragment" + ] + }, "test/e2e/middleware-request-header-overrides/test/index.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/middleware-rewrites/test/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Middleware Rewrite /fr should correctly rewriting to a different dynamic path", + "Middleware Rewrite should behave consistently on recursive rewrites", + "Middleware Rewrite should correctly rewriting to a different dynamic path", + "Middleware Rewrite should hard navigate on 404 for data request", + "Middleware Rewrite should override with rewrite externally correctly", + "Middleware Rewrite should rewrite to fallback: true page successfully" + ] + }, + "test/e2e/middleware-shallow-link/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["browser-shallow-navigation should render the correct page"] + }, + "test/e2e/middleware-static-files/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Middleware Runtime should match middleware correctly for /another%2ffile.svg", + "Middleware Runtime should match middleware correctly for /another/file.svg", + "Middleware Runtime should match middleware correctly for /file.svg", + "Middleware Runtime should match middleware correctly for /glob%2ffile.svg", + "Middleware Runtime should match middleware correctly for /glob/file.svg", + "Middleware Runtime should match middleware correctly for /vercel copy.svg", + "Middleware Runtime should match middleware correctly for /vercel%20copy.svg" + ] + }, + "test/e2e/middleware-trailing-slash/test/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Middleware Runtime trailing slash allows shallow linking with middleware", + "Middleware Runtime trailing slash should add a rewrite header on data requests for rewrites", + "Middleware Runtime trailing slash should have correct dynamic route params for middleware rewrite to dynamic route", + "Middleware Runtime trailing slash should have correct dynamic route params on client-transition to dynamic route", + "Middleware Runtime trailing slash should have correct query values for rewrite to ssg page", + "Middleware Runtime trailing slash should have correct route params for chained rewrite from middleware to config rewrite", + "Middleware Runtime trailing slash should have correct route params for rewrite from config dynamic route", + "Middleware Runtime trailing slash should have correct route params for rewrite from config non-dynamic route", + "Middleware Runtime trailing slash should normalize data requests into page requests", + "Middleware Runtime trailing slash should respond with 400 on decode failure", + "Middleware Runtime trailing slash should rewrite correctly for non-SSG/SSP page", + "Middleware Runtime trailing slash should rewrite the same for direct visit and client-transition", + "Middleware Runtime trailing slash should trigger middleware for data requests", + "Middleware Runtime trailing slash with .html extension should work when navigating", + "Middleware Runtime trailing slash without .html extension should work when navigating" + ] + }, "test/e2e/module-layer/module-layer.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/new-link-behavior/child-a-tag-error.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["New Link Behavior with child should throw error with child"] + }, + "test/e2e/new-link-behavior/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "New Link Behavior should handle onclick", + "New Link Behavior should handle preventdefault", + "New Link Behavior should navigate to /about", + "New Link Behavior should render link with ", + "New Link Behavior should render link with classname", + "New Link Behavior should render link with id", + "New Link Behavior should render link with multiple children" + ] + }, + "test/e2e/next-form/default/app-dir.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "next-form - app dir functions passed to action runs server action", + "next-form - app dir functions passed to action runs server action (closure)", + "next-form - app dir functions passed to formAction runs server action (closure) from submitter and doesn't warn about unsupported attributes", + "next-form - app dir functions passed to formAction runs server action from submitter and doesn't warn about unsupported attributes" + ] + }, + "test/e2e/next-form/default/pages-dir.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "next-form - pages dir does not navigate if preventDefault is called in onSubmit", + "next-form - pages dir does not push a new history entry if `replace` is passed", + "next-form - pages dir functions passed to action runs client action", + "next-form - pages dir functions passed to formAction runs client action from submitter and doesn't warn about unsupported attributes", + "next-form - pages dir should soft-navigate on submit", + "next-form - pages dir should soft-navigate to the formAction url of the submitter", + "next-form - pages dir unsupported attributes on submitter should warn if submitter sets \"formEncType\" to an unsupported value and fall back to default submit behavior", + "next-form - pages dir unsupported attributes on submitter should warn if submitter sets \"formMethod\" to an unsupported value and fall back to default submit behavior", + "next-form - pages dir unsupported attributes on submitter should warn if submitter sets \"formTarget\" to an unsupported value and fall back to default submit behavior", + "next-form - pages dir url-encodes file inputs, but warns about them" + ] + }, + "test/e2e/next-head/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "next/head should have correct head tags after hydration", + "next/head should have correct head tags from a fragment", + "next/head should have correct head tags in initial document", + "next/head should have current head tags from a _document getInitialProps", + "next/head should place charset element at the top of " + ] + }, + "test/e2e/nonce-head-manager/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "nonce head manager should not re-execute the script when re-rendering", + "nonce head manager should not re-execute the script when re-rendering with CSP header" + ] + }, "test/e2e/og-api/index.test.ts": { "reason": "The edge runtime is not supported" }, @@ -284,12 +1427,30 @@ "test/e2e/on-request-error/server-action-error/server-action-error.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/opentelemetry/client-trace-metadata/client-trace-metadata.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "clientTraceMetadata pages router next start only soft navigating to a dynamic page should not transform previous propagation data", + "clientTraceMetadata pages router next start only soft navigating to a static page should not transform previous propagation data" + ] + }, "test/e2e/opentelemetry/instrumentation/instrumentation-pages-app-only.test.ts": { "reason": "The edge runtime is not supported" }, "test/e2e/opentelemetry/instrumentation/opentelemetry.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/optimized-loading/test/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Optimized loading page / should load scripts with defer in head", + "Optimized loading page / should render the page /" + ] + }, + "test/e2e/postcss-config-package/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["postcss-config-json works with postcss config specified in package.json"] + }, "test/e2e/prerender-crawler.test.ts": { "reason": "The edge runtime is not supported" }, @@ -302,9 +1463,20 @@ "test/e2e/react-version/react-version.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/revalidate-reason/revalidate-reason.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "revalidate-reason should support revalidateReason: \"on-demand\"", + "revalidate-reason should support revalidateReason: \"stale\"" + ] + }, "test/e2e/skip-trailing-slash-redirect/index.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/ssr-react-context/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["React Context should render a page with context"] + }, "test/e2e/streaming-ssr-edge/streaming-ssr-edge.test.ts": { "reason": "The edge runtime is not supported" }, @@ -314,10 +1486,91 @@ "test/e2e/switchable-runtime/index.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/test-template/{{ toFileName name }}/{{ toFileName name }}.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "{{name}} should work using browser", + "{{name}} should work using cheerio", + "{{name}} should work with fetch", + "{{name}} should work with html" + ] + }, + "test/e2e/test-utils-tests/basic/basic.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["nextTestSetup should work"] + }, "test/e2e/testmode/testmode.test.ts": { "reason": "The edge runtime is not supported" }, + "test/e2e/trailing-slashes/with-trailing-slash.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Trailing slashes with trailingSlash: true / should client side render /index.js, with router path /", + "Trailing slashes with trailingSlash: true / should resolve to /index.js, with router path /", + "Trailing slashes with trailingSlash: true /about/ should client side render /about.js, with router path /about", + "Trailing slashes with trailingSlash: true /about/ should resolve to /about.js, with router path /about", + "Trailing slashes with trailingSlash: true /about/?hello=world should client side render /about.js, with router path /about", + "Trailing slashes with trailingSlash: true /about/?hello=world should resolve to /about.js, with router path /about", + "Trailing slashes with trailingSlash: true /catch-all/hello/world/ should client side render /catch-all/[...slug].js, with router path /catch-all/[...slug]", + "Trailing slashes with trailingSlash: true /catch-all/hello/world/ should resolve to /catch-all/[...slug].js, with router path /catch-all/[...slug]" + ] + }, + "test/e2e/trailing-slashes/without-trailing-slash.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Trailing slashes with trailingSlash: false / should client side render /index.js, with router path /", + "Trailing slashes with trailingSlash: false / should resolve to /index.js, with router path /", + "Trailing slashes with trailingSlash: false /about should client side render /about.js, with router path /about", + "Trailing slashes with trailingSlash: false /about should resolve to /about.js, with router path /about", + "Trailing slashes with trailingSlash: false /about?hello=world should client side render /about.js, with router path /about", + "Trailing slashes with trailingSlash: false /about?hello=world should resolve to /about.js, with router path /about", + "Trailing slashes with trailingSlash: false /catch-all/hello/world should client side render /catch-all/[...slug].js, with router path /catch-all/[...slug]", + "Trailing slashes with trailingSlash: false /catch-all/hello/world should resolve to /catch-all/[...slug].js, with router path /catch-all/[...slug]" + ] + }, + "test/e2e/tsconfig-path/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["specified tsconfig pages router: allows a user-specific tsconfig via the next config"] + }, + "test/e2e/twoslash/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "twoslash should annotate twoslash types default", + "twoslash should annotate twoslash types esnext" + ] + }, + "test/e2e/type-module-interop/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Type module interop should render server-side", + "Type module interop should render server-side with modules" + ] + }, + "test/e2e/typescript-custom-tsconfig/test/index.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": ["Custom TypeScript Config pages router: allows a user-specific tsconfig via the next config"] + }, "test/e2e/url/url.test.ts": { "reason": "The edge runtime is not supported" + }, + "test/e2e/use-router-with-rewrites/use-router-with-rewrites.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "use-router-with-rewrites rewrite to another segment should preserve current pathname when using Link with rewrites on dynamic route", + "use-router-with-rewrites rewrite to another segment should preserve current pathname when using useRouter.push with rewrites on dynamic route", + "use-router-with-rewrites rewrite to another segment should preserve current pathname when using useRouter.replace with rewrites on dynamic route", + "use-router-with-rewrites rewrite to same segment should preserve current pathname when using Link with rewrites on dynamic route", + "use-router-with-rewrites rewrite to same segment should preserve current pathname when using useRouter.push with rewrites on dynamic route", + "use-router-with-rewrites rewrite to same segment should preserve current pathname when using useRouter.replace with rewrites on dynamic route", + "use-router-with-rewrites should preserve current pathname when using Link with rewrites", + "use-router-with-rewrites should preserve current pathname when using useRouter.push with rewrites", + "use-router-with-rewrites should preserve current pathname when using useRouter.replace with rewrites" + ] + }, + "test/e2e/useselectedlayoutsegment-s-in-pages-router/useselectedlayoutsegment-s-in-pages-router.test.ts": { + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "useSelectedLayoutSegment(s) in Pages Router Should render with `useSelectedLayoutSegment(s) hooks" + ] } } From 573b386de7a0fe5e6454af14c473ddd9d38c7e95 Mon Sep 17 00:00:00 2001 From: Nicolas Dorseuil Date: Sun, 1 Nov 2026 19:17:08 +0100 Subject: [PATCH 14/21] test: keep exact case names when seeding Next.js suite disable lists Co-Authored-By: Claude Opus 5.5 (1M context) --- packages/tests-next-suite/README.md | 10 +++++- .../tests-next-suite/disabled/cloudflare.json | 32 +++---------------- packages/tests-next-suite/disabled/core.json | 12 +++---- packages/tests-next-suite/src/junit.spec.ts | 26 +++++++++++++++ packages/tests-next-suite/src/junit.ts | 16 ++++++++-- 5 files changed, 57 insertions(+), 39 deletions(-) diff --git a/packages/tests-next-suite/README.md b/packages/tests-next-suite/README.md index a35af55f..0fe5361d 100644 --- a/packages/tests-next-suite/README.md +++ b/packages/tests-next-suite/README.md @@ -25,7 +25,7 @@ pnpm next-suite run --target cloudflare -c 1 test/e2e/app-dir/hello-world/hello- pnpm next-suite run --target core --group 1/16 -c 2 ``` -The whole suite is about 800 test files, each one building an app, so it is meant for CI. Only do one run at a time on a checkout, as each run rebuilds and packs the OpenNext packages. +The whole suite is about 800 test files, a run takes about 1 hour on `core` and 3 hours on `cloudflare`. Only do one run at a time on a checkout, as each run rebuilds and packs the OpenNext packages. | Option | Purpose | | -------------------------- | --------------------------------------------------------------------- | @@ -68,6 +68,14 @@ A run warns about entries for files which no longer exist, as can happen after u Each run uploads a `next-suite-disabled` artifact: the current lists with what failed in that run added to them. Entries already in a list are kept. To accept these failures, copy the files over `disabled/`. +The same can be done from a local run, the JUnit reports are in `test/turbopack-test-junit-report` (`core`) and `test/test-junit-report` (`cloudflare`) of the Next.js checkout: + +```bash +pnpm next-suite disabled-from-junit --target core --input packages/tests-next-suite/.cache/next.js/test/turbopack-test-junit-report --output packages/tests-next-suite/disabled/core.json --reason "Failing on Next.js 16.2.1" +``` + +Reports add up between runs, delete these directories first to only use the latest run. + ## How it works The harness of Next.js copies each test app to a directory and calls three scripts with that directory as `cwd`: diff --git a/packages/tests-next-suite/disabled/cloudflare.json b/packages/tests-next-suite/disabled/cloudflare.json index 6d9ae2b3..a14cbd9b 100644 --- a/packages/tests-next-suite/disabled/cloudflare.json +++ b/packages/tests-next-suite/disabled/cloudflare.json @@ -1153,7 +1153,7 @@ "test/e2e/i18n-ignore-redirect-source-locale/redirects-with-basepath.test.ts": { "reason": "Failing on Next.js 16.2.1, not triaged yet", "cases": [ - "i18n-ignore-redirect-source-locale with basepath get redirected to the new page, from and to:", + "i18n-ignore-redirect-source-locale with basepath get redirected to the new page, from and to: ", "i18n-ignore-redirect-source-locale with basepath get redirected to the new page, from and to: /en", "i18n-ignore-redirect-source-locale with basepath get redirected to the new page, from and to: /nl", "i18n-ignore-redirect-source-locale with basepath get redirected to the new page, from and to: /sv", @@ -1174,7 +1174,7 @@ "test/e2e/i18n-ignore-redirect-source-locale/redirects.test.ts": { "reason": "Failing on Next.js 16.2.1, not triaged yet", "cases": [ - "i18n-ignore-redirect-source-locale get redirected to the new page, from and to:", + "i18n-ignore-redirect-source-locale get redirected to the new page, from and to: ", "i18n-ignore-redirect-source-locale get redirected to the new page, from and to: /en", "i18n-ignore-redirect-source-locale get redirected to the new page, from and to: /nl", "i18n-ignore-redirect-source-locale get redirected to the new page, from and to: /sv", @@ -1195,7 +1195,7 @@ "test/e2e/i18n-ignore-rewrite-source-locale/rewrites.test.ts": { "reason": "Failing on Next.js 16.2.1, not triaged yet", "cases": [ - "i18n-ignore-rewrite-source-locale get public file by skipping locale in rewrite, locale:", + "i18n-ignore-rewrite-source-locale get public file by skipping locale in rewrite, locale: ", "i18n-ignore-rewrite-source-locale get public file by skipping locale in rewrite, locale: /en", "i18n-ignore-rewrite-source-locale get public file by skipping locale in rewrite, locale: /nl", "i18n-ignore-rewrite-source-locale get public file by skipping locale in rewrite, locale: /sv" @@ -1383,29 +1383,7 @@ ] }, "test/e2e/middleware-redirects/test/node-runtime.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "Middleware Redirect /fr should implement internal redirects", - "Middleware Redirect /fr should redirect", - "Middleware Redirect /fr should redirect (infinite-loop)", - "Middleware Redirect /fr should redirect cleanly with the original url param", - "Middleware Redirect /fr should redirect multiple times", - "Middleware Redirect /fr should redirect to api route with locale", - "Middleware Redirect /fr should redirect with a fragment", - "Middleware Redirect does not include the locale in redirects by default", - "Middleware Redirect should have relative path for same host redirect", - "Middleware Redirect should implement internal redirects", - "Middleware Redirect should redirect", - "Middleware Redirect should redirect (infinite-loop)", - "Middleware Redirect should redirect cleanly with the original url param", - "Middleware Redirect should redirect correctly with redirect in next.config.js", - "Middleware Redirect should redirect multiple times", - "Middleware Redirect should redirect to api route with locale", - "Middleware Redirect should redirect to data urls with data requests and internal redirects", - "Middleware Redirect should redirect to external urls with data requests and external redirects", - "Middleware Redirect should redirect with a fragment", - "Test execution failure: could be caused by test hooks like 'afterAll'." - ] + "reason": "Failing on Next.js 16.2.1, not triaged yet" }, "test/e2e/middleware-request-header-overrides/test/index.test.ts": { "reason": "The edge runtime is not supported" @@ -1578,7 +1556,7 @@ "test/e2e/proxy-request-with-middleware/test/index.test.ts": { "reason": "Failing on Next.js 16.2.1, not triaged yet", "cases": [ - "Requests not effected when middleware used should proxy GET request", + "Requests not effected when middleware used should proxy GET request ", "Requests not effected when middleware used should proxy POST request with body" ] }, diff --git a/packages/tests-next-suite/disabled/core.json b/packages/tests-next-suite/disabled/core.json index 446d3846..bdc6b559 100644 --- a/packages/tests-next-suite/disabled/core.json +++ b/packages/tests-next-suite/disabled/core.json @@ -133,11 +133,7 @@ ] }, "test/e2e/app-dir/asset-prefix/asset-prefix.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "Test execution failure: could be caused by test hooks like 'afterAll'.", - "app-dir assetPrefix handling rewrites rewrites that do not start with assetPrefix should still work" - ] + "reason": "Failing on Next.js 16.2.1, not triaged yet" }, "test/e2e/app-dir/bun-externals/bun-externals.test.ts": { "reason": "The edge runtime is not supported" @@ -1062,7 +1058,7 @@ "test/e2e/i18n-ignore-redirect-source-locale/redirects-with-basepath.test.ts": { "reason": "Failing on Next.js 16.2.1, not triaged yet", "cases": [ - "i18n-ignore-redirect-source-locale with basepath get redirected to the new page, from and to:", + "i18n-ignore-redirect-source-locale with basepath get redirected to the new page, from and to: ", "i18n-ignore-redirect-source-locale with basepath get redirected to the new page, from and to: /en", "i18n-ignore-redirect-source-locale with basepath get redirected to the new page, from and to: /nl", "i18n-ignore-redirect-source-locale with basepath get redirected to the new page, from and to: /sv", @@ -1083,7 +1079,7 @@ "test/e2e/i18n-ignore-redirect-source-locale/redirects.test.ts": { "reason": "Failing on Next.js 16.2.1, not triaged yet", "cases": [ - "i18n-ignore-redirect-source-locale get redirected to the new page, from and to:", + "i18n-ignore-redirect-source-locale get redirected to the new page, from and to: ", "i18n-ignore-redirect-source-locale get redirected to the new page, from and to: /en", "i18n-ignore-redirect-source-locale get redirected to the new page, from and to: /nl", "i18n-ignore-redirect-source-locale get redirected to the new page, from and to: /sv", @@ -1104,7 +1100,7 @@ "test/e2e/i18n-ignore-rewrite-source-locale/rewrites.test.ts": { "reason": "Failing on Next.js 16.2.1, not triaged yet", "cases": [ - "i18n-ignore-rewrite-source-locale get public file by skipping locale in rewrite, locale:", + "i18n-ignore-rewrite-source-locale get public file by skipping locale in rewrite, locale: ", "i18n-ignore-rewrite-source-locale get public file by skipping locale in rewrite, locale: /en", "i18n-ignore-rewrite-source-locale get public file by skipping locale in rewrite, locale: /nl", "i18n-ignore-rewrite-source-locale get public file by skipping locale in rewrite, locale: /sv" diff --git a/packages/tests-next-suite/src/junit.spec.ts b/packages/tests-next-suite/src/junit.spec.ts index 343d9491..7f5c2d61 100644 --- a/packages/tests-next-suite/src/junit.spec.ts +++ b/packages/tests-next-suite/src/junit.spec.ts @@ -47,6 +47,13 @@ describe("disabledFromJUnit", () => { expect(disabledFromJUnit([report], "/x/next.js", "r")).toEqual({}); }); + test("keeps a failure when a later run skipped the case", () => { + const failingRun = writeReport([{ name: "broken", body: FAILURE }]); + const skippingRun = writeReport([{ name: "broken", body: "" }]); + + expect(disabledFromJUnit([failingRun, skippingRun], "/x/next.js", "r")[FILE]?.cases).toEqual(["broken"]); + }); + test("omits a case which passed on a retry", () => { const firstAttempt = writeReport([{ name: "flaky", body: FAILURE }]); const secondAttempt = writeReport([{ name: "flaky" }]); @@ -85,6 +92,25 @@ describe("disabledFromJUnit", () => { expect(disabledFromJUnit([report], "/x/next.js", "r")[FILE]?.cases).toEqual(['renders "a" & b']); }); + test("keeps the trailing space of a case name, as names have to match exactly", () => { + const report = writeReport([{ name: "redirected, locale: ", body: FAILURE }]); + + expect(disabledFromJUnit([report], "/x/next.js", "r")[FILE]?.cases).toEqual(["redirected, locale: "]); + }); + + test("disables a whole file when a hook failed", () => { + const report = writeReport([ + { name: "passing" }, + { + name: "Test execution failure: could be caused by test hooks like 'afterAll'.", + classname: "Test execution failure: could be caused by test hooks like 'afterAll'.", + body: "boom", + }, + ]); + + expect(disabledFromJUnit([report], "/x/next.js", "r")).toEqual({ [FILE]: { reason: "r" } }); + }); + test("sorts and de-duplicates cases", () => { const report = writeReport([ { name: "b", body: FAILURE }, diff --git a/packages/tests-next-suite/src/junit.ts b/packages/tests-next-suite/src/junit.ts index 797f6740..66b85a6a 100644 --- a/packages/tests-next-suite/src/junit.ts +++ b/packages/tests-next-suite/src/junit.ts @@ -6,15 +6,25 @@ import { XMLParser } from "fast-xml-parser"; import type { DisabledEntry, DisabledList } from "./disabled.js"; const SUITE_ERROR_CASE = "Test suite failed to run"; +const HOOK_ERROR_CASE = "Test execution failure"; const REPORT_NAME_PREFIX = "deploy:e2e:"; -type TestCase = { name: string; classname?: string; file?: string; failure?: unknown; error?: unknown }; +type TestCase = { + name: string; + classname?: string; + file?: string; + failure?: unknown; + error?: unknown; + skipped?: unknown; +}; type TestSuite = { testcase?: TestCase[] }; type Report = { testsuites?: { name?: string; testsuite?: TestSuite[] } }; const parser = new XMLParser({ ignoreAttributes: false, attributeNamePrefix: "", + // Case names have to match exactly, some end with a space. + trimValues: false, // The limit protects against hostile documents, these reports have long failure messages. processEntities: { enabled: true, maxTotalExpansions: Number.MAX_SAFE_INTEGER }, isArray: (name) => name === "testsuite" || name === "testcase", @@ -58,11 +68,11 @@ export function disabledFromJUnit(xmlFiles: string[], nextDir: string, reason: s const brokenFiles = new Set(); for (const { file, testCase } of xmlFiles.flatMap((xmlFile) => readCases(xmlFile, nextDir))) { - if (testCase.classname === SUITE_ERROR_CASE) { + if (testCase.classname === SUITE_ERROR_CASE || testCase.name.includes(HOOK_ERROR_CASE)) { brokenFiles.add(file); } else if (testCase.failure !== undefined || testCase.error !== undefined) { failed.set(file, [...(failed.get(file) ?? []), testCase.name]); - } else { + } else if (testCase.skipped === undefined) { passed.add(`${file}\0${testCase.name}`); } } From 64fe5df1231cc124d2565900869fadef375ea803 Mon Sep 17 00:00:00 2001 From: Nicolas Dorseuil Date: Sun, 1 Nov 2026 19:38:13 +0100 Subject: [PATCH 15/21] test: only disable tests using the edge runtime A test at the root of the e2e directory scanned every fixture, and a test file could disable its siblings. Co-Authored-By: Claude Opus 5.5 (1M context) --- packages/tests-next-suite/README.md | 2 +- .../tests-next-suite/disabled/cloudflare.json | 39 ++++++++++++++++--- packages/tests-next-suite/disabled/core.json | 23 +++++++---- packages/tests-next-suite/src/edge.spec.ts | 29 ++++++++++++++ packages/tests-next-suite/src/edge.ts | 27 ++++++++++--- packages/tests-next-suite/src/junit.spec.ts | 6 +++ packages/tests-next-suite/src/junit.ts | 6 ++- 7 files changed, 110 insertions(+), 22 deletions(-) diff --git a/packages/tests-next-suite/README.md b/packages/tests-next-suite/README.md index 0fe5361d..5429328c 100644 --- a/packages/tests-next-suite/README.md +++ b/packages/tests-next-suite/README.md @@ -58,7 +58,7 @@ Each adapter has its own list, `disabled/core.json` and `disabled/cloudflare.jso - The key is an exact path, globs are not supported. - A reason is required. -The edge runtime is not supported, so `pnpm next-suite disable-edge` adds every test whose app declares it to both lists, as whole files. Run it again after updating the Next.js ref. Middleware does not count. Fixtures are shared, so one edge page in a fixture disables all of its tests. +The edge runtime is not supported, so `pnpm next-suite disable-edge` adds every test whose app declares it to both lists, as whole files. Run it again after updating the Next.js ref. Middleware does not count. Fixtures are shared, so one edge page in a fixture disables all the tests of its directory. A run warns about entries for files which no longer exist, as can happen after updating the Next.js ref. Entries for cases are not checked, so remove them once the test is fixed: use `--include-disabled` to find out. diff --git a/packages/tests-next-suite/disabled/cloudflare.json b/packages/tests-next-suite/disabled/cloudflare.json index a14cbd9b..e9230699 100644 --- a/packages/tests-next-suite/disabled/cloudflare.json +++ b/packages/tests-next-suite/disabled/cloudflare.json @@ -261,9 +261,6 @@ "test/e2e/app-dir/logging/fetch-logging.test.ts": { "reason": "The edge runtime is not supported" }, - "test/e2e/app-dir/logging/fetch-warning.test.ts": { - "reason": "The edge runtime is not supported" - }, "test/e2e/app-dir/mdx-no-mdx-components/mdx.test.ts": { "reason": "Failing on Next.js 16.2.1, not triaged yet", "cases": ["mdx pages directory should work in initial html"] @@ -1545,13 +1542,43 @@ "cases": ["postcss-config-json works with postcss config specified in package.json"] }, "test/e2e/prerender-crawler.test.ts": { - "reason": "The edge runtime is not supported" + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Prerender crawler handling should block for crawler correctly", + "Prerender crawler handling should return fallback for non-crawler correctly" + ] }, "test/e2e/prerender-native-module.test.ts": { - "reason": "The edge runtime is not supported" + "reason": "Failing on Next.js 16.2.1, not triaged yet" }, "test/e2e/prerender.test.ts": { - "reason": "The edge runtime is not supported" + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Prerender should 404 for a missing catchall explicit route", + "Prerender should SSR blocking path correctly (blocking)", + "Prerender should allow rewriting to SSG page with fallback: 'blocking'", + "Prerender should handle fallback only page correctly HTML", + "Prerender should handle revalidating HTML correctly", + "Prerender should handle revalidating HTML correctly with blocking", + "Prerender should handle revalidating HTML correctly with blocking and seed", + "Prerender should handle revalidating JSON correctly", + "Prerender should handle revalidating JSON correctly with blocking", + "Prerender should handle revalidating JSON correctly with blocking and seed", + "Prerender should navigate between pages successfully", + "Prerender should not error when rewriting to fallback dynamic SSG page", + "Prerender should not have gsp in __NEXT_DATA__ for non-GSP page", + "Prerender should not show error for invalid JSON returned from getStaticProps on SSR", + "Prerender should render correctly for SSG pages that starts with api-docs", + "Prerender should respond for catch-all deep folder", + "Prerender should respond with 405 for POST to static page", + "Prerender should return data correctly for dynamic page (non-seeded)", + "Prerender should support lazy catchall route", + "Prerender should support nested lazy catchall route", + "Prerender should use correct caching headers for a fallback-true page (lazy)", + "Prerender should use correct caching headers for a fallback-true page (prerendered)", + "Prerender should use correct caching headers for a no-revalidate page", + "Prerender should use correct caching headers for a revalidate page" + ] }, "test/e2e/proxy-request-with-middleware/test/index.test.ts": { "reason": "Failing on Next.js 16.2.1, not triaged yet", diff --git a/packages/tests-next-suite/disabled/core.json b/packages/tests-next-suite/disabled/core.json index bdc6b559..714c399a 100644 --- a/packages/tests-next-suite/disabled/core.json +++ b/packages/tests-next-suite/disabled/core.json @@ -240,9 +240,6 @@ "test/e2e/app-dir/logging/fetch-logging.test.ts": { "reason": "The edge runtime is not supported" }, - "test/e2e/app-dir/logging/fetch-warning.test.ts": { - "reason": "The edge runtime is not supported" - }, "test/e2e/app-dir/mdx-no-mdx-components/mdx.test.ts": { "reason": "Failing on Next.js 16.2.1, not triaged yet", "cases": ["mdx pages directory should work in initial html"] @@ -1447,14 +1444,24 @@ "reason": "Failing on Next.js 16.2.1, not triaged yet", "cases": ["postcss-config-json works with postcss config specified in package.json"] }, - "test/e2e/prerender-crawler.test.ts": { - "reason": "The edge runtime is not supported" - }, "test/e2e/prerender-native-module.test.ts": { - "reason": "The edge runtime is not supported" + "reason": "Failing on Next.js 16.2.1, not triaged yet" }, "test/e2e/prerender.test.ts": { - "reason": "The edge runtime is not supported" + "reason": "Failing on Next.js 16.2.1, not triaged yet", + "cases": [ + "Prerender should 404 for a missing catchall explicit route", + "Prerender should navigate between pages successfully", + "Prerender should not have gsp in __NEXT_DATA__ for non-GSP page", + "Prerender should respond with 405 for POST to static page", + "Prerender should revalidate on-demand revalidate with preview cookie", + "Prerender should support lazy catchall route", + "Prerender should support nested lazy catchall route", + "Prerender should use correct caching headers for a fallback-true page (lazy)", + "Prerender should use correct caching headers for a fallback-true page (prerendered)", + "Prerender should use correct caching headers for a no-revalidate page", + "Prerender should use correct caching headers for a revalidate page" + ] }, "test/e2e/react-version/react-version.test.ts": { "reason": "The edge runtime is not supported" diff --git a/packages/tests-next-suite/src/edge.spec.ts b/packages/tests-next-suite/src/edge.spec.ts index 241143ac..5a2fb720 100644 --- a/packages/tests-next-suite/src/edge.spec.ts +++ b/packages/tests-next-suite/src/edge.spec.ts @@ -68,6 +68,35 @@ describe("findEdgeRuntimeTests", () => { expect(findEdgeRuntimeTests(nextDir)).toEqual([]); }); + test("does not scan all tests for a test at the root of the e2e directory", () => { + write("test/e2e/prerender.test.ts"); + write("test/e2e/other/other.test.ts"); + write("test/e2e/other/app/page.tsx", `export const runtime = 'edge'`); + + expect(findEdgeRuntimeTests(nextDir)).toEqual(["test/e2e/other/other.test.ts"]); + }); + + test("finds the fixture of a test at the root of the e2e directory", () => { + write("test/e2e/prerender.test.ts"); + write("test/e2e/prerender/pages/a.tsx", `export const config = { runtime: 'edge' }`); + + expect(findEdgeRuntimeTests(nextDir)).toEqual(["test/e2e/prerender.test.ts"]); + }); + + test("does not scan all tests for a test at the root of the app-dir directory", () => { + write("test/e2e/app-dir/root.test.ts"); + write("test/e2e/app-dir/other/app/page.tsx", `export const runtime = 'edge'`); + + expect(findEdgeRuntimeTests(nextDir)).toEqual([]); + }); + + test("ignores an edge runtime declared by a sibling test file", () => { + write("test/e2e/a/a.test.ts"); + write("test/e2e/a/b.test.ts", `export const runtime = 'edge'`); + + expect(findEdgeRuntimeTests(nextDir)).toEqual(["test/e2e/a/b.test.ts"]); + }); + test("keeps sibling test directories apart", () => { write("test/e2e/a/a.test.ts"); write("test/e2e/a/app/page.tsx", `export const runtime = 'edge'`); diff --git a/packages/tests-next-suite/src/edge.ts b/packages/tests-next-suite/src/edge.ts index a6ffd961..01b42730 100644 --- a/packages/tests-next-suite/src/edge.ts +++ b/packages/tests-next-suite/src/edge.ts @@ -10,6 +10,7 @@ const TEST_FILE = /\.test\.(js|ts|tsx)$/; /** Middleware runs in the edge sandbox whatever it declares, and is supported. */ const MIDDLEWARE_FILE = /^(middleware|proxy)\.[a-z]+$/; const IGNORED_DIRS = new Set(["node_modules", ".next"]); +const ROOT_DIRS = new Set(["test/e2e", "test/e2e/app-dir"]); function listFiles(dir: string): string[] { return fs.readdirSync(dir, { withFileTypes: true }).flatMap((entry) => { @@ -29,15 +30,27 @@ function declaresEdgeRuntime(file: string): boolean { ); } -/** Returns the directory of a test's fixture, tests can be in a `test` directory next to the app. */ -function getFixtureDir(testFile: string): string { +/** + * Returns the directory of a test's fixture, if it has one. + * + * Tests can be in a `test` directory next to the app. The fixture of a test at the root of a directory + * holding other tests is named after it, as the directory itself holds the apps of all the others. + */ +function getFixtureDir(testFile: string, nextDir: string): string | undefined { const dir = path.dirname(testFile); - return ["test", "tests"].includes(path.basename(dir)) ? path.dirname(dir) : dir; + const fixture = ["test", "tests"].includes(path.basename(dir)) ? path.dirname(dir) : dir; + if (![...ROOT_DIRS].some((root) => fixture === path.join(nextDir, root))) { + return fixture; + } + const named = path.join(fixture, path.basename(testFile).replace(TEST_FILE, "")); + return fs.existsSync(named) ? named : undefined; } /** * Finds the e2e tests with an app declaring the edge runtime. * + * The apps of a directory are shared by its tests, an app inlined in a test file only concerns that test. + * * @param nextDir The Next.js checkout. * @returns The test paths relative to the checkout, sorted. */ @@ -48,13 +61,17 @@ export function findEdgeRuntimeTests(nextDir: string): string[] { if (known !== undefined) { return known; } - const result = listFiles(dir).some(declaresEdgeRuntime); + const result = listFiles(dir).some((file) => !TEST_FILE.test(file) && declaresEdgeRuntime(file)); edgeDirs.set(dir, result); return result; }; return listFiles(path.join(nextDir, "test/e2e")) - .filter((file) => TEST_FILE.test(file) && usesEdgeRuntime(getFixtureDir(file))) + .filter((file) => TEST_FILE.test(file)) + .filter((file) => { + const fixture = getFixtureDir(file, nextDir); + return declaresEdgeRuntime(file) || (fixture !== undefined && usesEdgeRuntime(fixture)); + }) .map((file) => path.relative(nextDir, file)) .sort(); } diff --git a/packages/tests-next-suite/src/junit.spec.ts b/packages/tests-next-suite/src/junit.spec.ts index 7f5c2d61..3a85bcce 100644 --- a/packages/tests-next-suite/src/junit.spec.ts +++ b/packages/tests-next-suite/src/junit.spec.ts @@ -92,6 +92,12 @@ describe("disabledFromJUnit", () => { expect(disabledFromJUnit([report], "/x/next.js", "r")[FILE]?.cases).toEqual(['renders "a" & b']); }); + test("drops the space jest-junit adds before tests outside of a describe", () => { + const report = writeReport([{ name: " top level, locale: ", body: FAILURE }]); + + expect(disabledFromJUnit([report], "/x/next.js", "r")[FILE]?.cases).toEqual(["top level, locale: "]); + }); + test("keeps the trailing space of a case name, as names have to match exactly", () => { const report = writeReport([{ name: "redirected, locale: ", body: FAILURE }]); diff --git a/packages/tests-next-suite/src/junit.ts b/packages/tests-next-suite/src/junit.ts index 66b85a6a..1a2ee684 100644 --- a/packages/tests-next-suite/src/junit.ts +++ b/packages/tests-next-suite/src/junit.ts @@ -68,12 +68,14 @@ export function disabledFromJUnit(xmlFiles: string[], nextDir: string, reason: s const brokenFiles = new Set(); for (const { file, testCase } of xmlFiles.flatMap((xmlFile) => readCases(xmlFile, nextDir))) { + // jest-junit joins the describe blocks and the title with a space, even without describe blocks. + const name = testCase.name.replace(/^ /, ""); if (testCase.classname === SUITE_ERROR_CASE || testCase.name.includes(HOOK_ERROR_CASE)) { brokenFiles.add(file); } else if (testCase.failure !== undefined || testCase.error !== undefined) { - failed.set(file, [...(failed.get(file) ?? []), testCase.name]); + failed.set(file, [...(failed.get(file) ?? []), name]); } else if (testCase.skipped === undefined) { - passed.add(`${file}\0${testCase.name}`); + passed.add(`${file}\0${name}`); } } From bdf7df8cac5c77c0fb8aae4f4a6dd4c3292934d0 Mon Sep 17 00:00:00 2001 From: Nicolas Dorseuil Date: Sun, 1 Nov 2026 19:45:48 +0100 Subject: [PATCH 16/21] fix: fail the request for a missing image with the fs-dev loader The read stream emitted an error nothing listened to, which killed the server. Co-Authored-By: Claude Opus 5.5 (1M context) --- .changeset/core-fs-dev-missing-image.md | 5 +++ .../core/src/overrides/imageLoader/fs-dev.ts | 2 ++ .../overrides/imageLoader/fs-dev.test.ts | 34 +++++++++++++++++++ 3 files changed, 41 insertions(+) create mode 100644 .changeset/core-fs-dev-missing-image.md create mode 100644 packages/tests-unit/tests/overrides/imageLoader/fs-dev.test.ts diff --git a/.changeset/core-fs-dev-missing-image.md b/.changeset/core-fs-dev-missing-image.md new file mode 100644 index 00000000..e8304c36 --- /dev/null +++ b/.changeset/core-fs-dev-missing-image.md @@ -0,0 +1,5 @@ +--- +"@opennextjs/core": patch +--- + +Fail the request for a missing image with the `fs-dev` image loader, it used to crash the server. diff --git a/packages/core/src/overrides/imageLoader/fs-dev.ts b/packages/core/src/overrides/imageLoader/fs-dev.ts index cdf0b77e..386cd36c 100644 --- a/packages/core/src/overrides/imageLoader/fs-dev.ts +++ b/packages/core/src/overrides/imageLoader/fs-dev.ts @@ -10,6 +10,8 @@ export default { load: async (url: string) => { const urlWithoutBasePath = NextConfig.basePath ? url.slice(NextConfig.basePath.length) : url; const imagePath = path.join(getMonorepoRelativePath(), "assets", urlWithoutBasePath); + // A stream emits this as an `error` event nothing listens to, which would kill the server. + await fs.promises.access(imagePath); const body = fs.createReadStream(imagePath); const contentType = url.endsWith(".png") ? "image/png" : "image/jpeg"; return { diff --git a/packages/tests-unit/tests/overrides/imageLoader/fs-dev.test.ts b/packages/tests-unit/tests/overrides/imageLoader/fs-dev.test.ts new file mode 100644 index 00000000..29fceb2e --- /dev/null +++ b/packages/tests-unit/tests/overrides/imageLoader/fs-dev.test.ts @@ -0,0 +1,34 @@ +import fs from "node:fs"; +import os from "node:os"; +import path from "node:path"; +import { text } from "node:stream/consumers"; + +import loader from "@opennextjs/core/overrides/imageLoader/fs-dev.js"; +import { beforeEach, describe, expect, it, vi } from "vitest"; + +const { root } = vi.hoisted(() => ({ root: { dir: "" } })); + +vi.mock("@opennextjs/core/adapters/config/index.js", () => ({ NextConfig: {} })); +vi.mock("@opennextjs/core/utils/normalize-path.js", () => ({ + getMonorepoRelativePath: () => root.dir, +})); + +describe("fs-dev image loader", () => { + beforeEach(() => { + root.dir = fs.mkdtempSync(path.join(os.tmpdir(), "fs-dev-loader-")); + fs.mkdirSync(path.join(root.dir, "assets")); + }); + + it("loads an image from the assets", async () => { + fs.writeFileSync(path.join(root.dir, "assets/a.png"), "image"); + + const { body, contentType } = await loader.load("/a.png"); + + expect(await text(body!)).toBe("image"); + expect(contentType).toBe("image/png"); + }); + + it("rejects for a missing image instead of emitting an error nothing handles", async () => { + await expect(loader.load("/missing.png")).rejects.toThrow(/ENOENT/); + }); +}); From 7c7630a9a5799da8c57d5fa9b4a7b86dfe5d0694 Mon Sep 17 00:00:00 2001 From: Nicolas Dorseuil Date: Sun, 1 Nov 2026 19:47:02 +0100 Subject: [PATCH 17/21] fix: reject image paths which are not files with the fs-dev loader Co-Authored-By: Claude Opus 5.5 (1M context) --- packages/core/src/overrides/imageLoader/fs-dev.ts | 5 ++++- .../tests-unit/tests/overrides/imageLoader/fs-dev.test.ts | 6 ++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/packages/core/src/overrides/imageLoader/fs-dev.ts b/packages/core/src/overrides/imageLoader/fs-dev.ts index 386cd36c..cdd96753 100644 --- a/packages/core/src/overrides/imageLoader/fs-dev.ts +++ b/packages/core/src/overrides/imageLoader/fs-dev.ts @@ -11,7 +11,10 @@ export default { const urlWithoutBasePath = NextConfig.basePath ? url.slice(NextConfig.basePath.length) : url; const imagePath = path.join(getMonorepoRelativePath(), "assets", urlWithoutBasePath); // A stream emits this as an `error` event nothing listens to, which would kill the server. - await fs.promises.access(imagePath); + const stats = await fs.promises.stat(imagePath); + if (!stats.isFile()) { + throw new Error(`The image is not a file: ${imagePath}`); + } const body = fs.createReadStream(imagePath); const contentType = url.endsWith(".png") ? "image/png" : "image/jpeg"; return { diff --git a/packages/tests-unit/tests/overrides/imageLoader/fs-dev.test.ts b/packages/tests-unit/tests/overrides/imageLoader/fs-dev.test.ts index 29fceb2e..373017a5 100644 --- a/packages/tests-unit/tests/overrides/imageLoader/fs-dev.test.ts +++ b/packages/tests-unit/tests/overrides/imageLoader/fs-dev.test.ts @@ -28,6 +28,12 @@ describe("fs-dev image loader", () => { expect(contentType).toBe("image/png"); }); + it("rejects for a directory, which can be opened but not read", async () => { + fs.mkdirSync(path.join(root.dir, "assets/images")); + + await expect(loader.load("/images")).rejects.toThrow(/not a file/); + }); + it("rejects for a missing image instead of emitting an error nothing handles", async () => { await expect(loader.load("/missing.png")).rejects.toThrow(/ENOENT/); }); From 7b19e83100537506f65da068067fae2229cdfad2 Mon Sep 17 00:00:00 2001 From: Nicolas Dorseuil Date: Sun, 1 Nov 2026 19:55:14 +0100 Subject: [PATCH 18/21] fix: serve the pages router pages rendered to HTML at build time Next.js reports them as static files with no route to reach them, and the cache assets skip them. Their content is inlined in the route dispatch as the runtime can not always read from a filesystem. Co-Authored-By: Claude Opus 5.5 (1M context) --- .changeset/core-static-html-pages.md | 5 ++ .../core/src/build/createRoutingConfig.ts | 7 +- packages/core/src/build/staticPages.ts | 31 ++++++++ .../core/src/core/routing/adapterHandler.ts | 24 ++++++ .../core/src/plugins/inlineRouteHandlers.ts | 26 ++++++- packages/core/src/types/adapter.ts | 2 +- packages/core/src/types/open-next.ts | 2 +- .../tests/build/createRoutingConfig.test.ts | 31 ++++++++ .../tests/build/staticPages.test.ts | 74 +++++++++++++++++++ .../routing/adapterHandler.staticPage.test.ts | 51 +++++++++++++ 10 files changed, 249 insertions(+), 4 deletions(-) create mode 100644 .changeset/core-static-html-pages.md create mode 100644 packages/core/src/build/staticPages.ts create mode 100644 packages/tests-unit/tests/build/staticPages.test.ts create mode 100644 packages/tests-unit/tests/core/routing/adapterHandler.staticPage.test.ts diff --git a/.changeset/core-static-html-pages.md b/.changeset/core-static-html-pages.md new file mode 100644 index 00000000..4e073105 --- /dev/null +++ b/.changeset/core-static-html-pages.md @@ -0,0 +1,5 @@ +--- +"@opennextjs/core": patch +--- + +Serve the pages router pages Next.js renders to HTML at build time, they returned a 404. diff --git a/packages/core/src/build/createRoutingConfig.ts b/packages/core/src/build/createRoutingConfig.ts index b1bdde4b..c669233b 100644 --- a/packages/core/src/build/createRoutingConfig.ts +++ b/packages/core/src/build/createRoutingConfig.ts @@ -6,6 +6,7 @@ import type { RuntimeRoutingConfig } from "../types/adapter.js"; import type { BuildCompleteContext } from "./adapter.js"; import type * as buildHelper from "./helper.js"; import { normalizeRouting } from "./normalizeRouting.js"; +import { getStaticPages } from "./staticPages.js"; const EXECUTABLE_OUTPUT_TYPES = ["pages", "pagesApi", "appPages", "appRoutes"] as const; const PATHNAME_OUTPUT_TYPES = [...EXECUTABLE_OUTPUT_TYPES, "staticFiles"] as const; @@ -142,6 +143,10 @@ export function createRoutingConfig( // The set has to be snapshotted before the prerendered pathnames are indexed - they are servable // but not executable, and may never be the resolution target of another prerendered pathname. const executableRoutes = new Set(Object.keys(routeIndex)); + const staticPageRoutes = getStaticPages(context.outputs).map(({ route }) => route); + for (const route of staticPageRoutes) { + routeIndex[route] = { type: "static", isFallback: false, isISR: false }; + } const resolvePrerenderRoute = createPrerenderRouteResolver(context, executableRoutes); const prerenderPathnames: string[] = []; @@ -162,7 +167,7 @@ export function createRoutingConfig( const outputPathnames = PATHNAME_OUTPUT_TYPES.flatMap((outputType) => (context.outputs[outputType] ?? []).map((output) => output.pathname) ); - const servablePathnames = [...outputPathnames, ...prerenderPathnames]; + const servablePathnames = [...outputPathnames, ...prerenderPathnames, ...staticPageRoutes]; const pathnames = [ ...new Set( context.config.trailingSlash ? withTrailingSlashVariants(servablePathnames) : servablePathnames diff --git a/packages/core/src/build/staticPages.ts b/packages/core/src/build/staticPages.ts new file mode 100644 index 00000000..73f27b5a --- /dev/null +++ b/packages/core/src/build/staticPages.ts @@ -0,0 +1,31 @@ +import type { NextAdapterOutputs } from "../types/adapter.js"; + +export type StaticPage = { + /** The pathname the page is served on. */ + route: string; + filePath: string; +}; + +const ERROR_PAGES = new Set(["/404", "/500"]); + +/** + * Lists the pages Next.js fully rendered to HTML at build time, i.e. pages without data fetching. + * + * Next.js reports them as static files with no route to reach them, and with `/index` as the pathname + * of an index page. The html files of the public directory are static files too, those are assets + * whose pathname is their file name. + * + * @param outputs The outputs of the build. + * @returns The pages, with the pathname they are served on. + */ +export function getStaticPages(outputs: Pick): StaticPage[] { + return (outputs.staticFiles ?? []) + .filter( + ({ pathname, filePath }) => + filePath.endsWith(".html") && !pathname.endsWith(".html") && !ERROR_PAGES.has(pathname) + ) + .map(({ pathname, filePath }) => ({ + route: pathname.replace(/\/index$/, "") || "/", + filePath, + })); +} diff --git a/packages/core/src/core/routing/adapterHandler.ts b/packages/core/src/core/routing/adapterHandler.ts index 81b7e341..c3a68a23 100644 --- a/packages/core/src/core/routing/adapterHandler.ts +++ b/packages/core/src/core/routing/adapterHandler.ts @@ -61,6 +61,30 @@ export async function adapterHandler( } } +/** + * Creates the handler of a page Next.js rendered to HTML at build time. + * + * @param html The content of the page. + * @returns The handler, it answers like the Next.js server does. + */ +export function createStaticPageHandler(html: string) { + return { + handler: async (req: IncomingMessage, res: OpenNextNodeResponse) => { + const isHead = req.method === "HEAD"; + if (req.method !== "GET" && !isHead) { + res.statusCode = 405; + res.setHeader("allow", "GET, HEAD"); + res.end(); + } else { + res.statusCode = 200; + res.setHeader("content-type", "text/html; charset=utf-8"); + res.end(isHead ? undefined : html); + } + await finished(res); + }, + }; +} + async function handle404(req: IncomingMessage, res: OpenNextNodeResponse, waitUntil?: WaitUntil) { try { // TODO: find the correct one to use. diff --git a/packages/core/src/plugins/inlineRouteHandlers.ts b/packages/core/src/plugins/inlineRouteHandlers.ts index ccce78c0..07793a63 100644 --- a/packages/core/src/plugins/inlineRouteHandlers.ts +++ b/packages/core/src/plugins/inlineRouteHandlers.ts @@ -1,7 +1,10 @@ +import fs from "node:fs"; + import type { NextAdapterOutputs } from "@/types/adapter.js"; import { getCrossPlatformPathRegex } from "@/utils/regex.js"; import { patchCode } from "../build/patch/astCodePatcher.js"; +import { getStaticPages } from "../build/staticPages.js"; import type { ContentUpdater, Plugin } from "./content-updater.js"; @@ -18,7 +21,8 @@ export function inlineRouteHandler( escape: false, }), contentFilter: /getHandler/, - callback: ({ contents }) => patchCode(contents, inlineRule(outputs)), + callback: ({ contents }) => + `${patchCode(contents, inlineRule(outputs))}\n${renderStaticPages(outputs)}`, }, // For turbopack, we need to also patch the `[turbopack]_runtime.js` file. { @@ -49,6 +53,9 @@ rule: pattern: "function getHandler($ROUTE) { $$$BODY }" fix: |- function getHandler($ROUTE) { + if ($ROUTE.type === "static") { + return createStaticPageHandler(staticPages[$ROUTE.route]); + } switch($ROUTE.route) { ${Object.entries(routeToHandlerPath) .map(([route, file]) => ` case "${route}": return require("${file}");`) @@ -60,6 +67,23 @@ ${Object.entries(routeToHandlerPath) }`; } +/** + * Generates the map of the static pages, `getHandler` serves them from it. + * + * Their content has to be in the bundle as the runtime can not always read from a filesystem. This is + * appended to the file and not part of the patch, which would interpret the `$` of the pages. + * + * @param outputs The outputs of the build. + * @returns The JavaScript declaring the map. + */ +export function renderStaticPages(outputs: Pick): string { + const pages = getStaticPages(outputs).map(({ route, filePath }) => [ + route, + fs.readFileSync(filePath, "utf8"), + ]); + return `const staticPages = ${JSON.stringify(Object.fromEntries(pages))};`; +} + //TODO: Make this one more resilient to code changes const inlineChunksRule = ` rule: diff --git a/packages/core/src/types/adapter.ts b/packages/core/src/types/adapter.ts index 15ec4fd8..ee35b7dc 100644 --- a/packages/core/src/types/adapter.ts +++ b/packages/core/src/types/adapter.ts @@ -45,7 +45,7 @@ export type RuntimeRoutingConfig = { routeIndex: Record< string, { - type: "page" | "app" | "route"; + type: "page" | "app" | "route" | "static"; isFallback: boolean; /** * Whether the route is prerendered - it either has a build time cache entry or is a diff --git a/packages/core/src/types/open-next.ts b/packages/core/src/types/open-next.ts index e1850db9..bcbc0698 100644 --- a/packages/core/src/types/open-next.ts +++ b/packages/core/src/types/open-next.ts @@ -130,7 +130,7 @@ export type IncludedConverter = | "sqs-revalidate" | "dummy"; -export type RouteType = "route" | "page" | "app"; +export type RouteType = "route" | "page" | "app" | "static"; export interface ResolvedRoute { route: string; diff --git a/packages/tests-unit/tests/build/createRoutingConfig.test.ts b/packages/tests-unit/tests/build/createRoutingConfig.test.ts index e3611e3d..c12afffe 100644 --- a/packages/tests-unit/tests/build/createRoutingConfig.test.ts +++ b/packages/tests-unit/tests/build/createRoutingConfig.test.ts @@ -7,6 +7,37 @@ import { vi } from "vitest"; vi.mock("node:fs"); describe("createRoutingConfig", () => { + it("indexes static html pages as servable routes", () => { + const context = { + buildId: "build-id", + config: {}, + routing: { + beforeMiddleware: [], + beforeFiles: [], + afterFiles: [], + dynamicRoutes: [], + onMatch: [], + fallback: [], + }, + outputs: { + pages: [], + pagesApi: [], + appPages: [], + appRoutes: [], + staticFiles: [ + { id: "index", pathname: "/index", filePath: "/app/.next/server/pages/index.html", assets: {} }, + { id: "about", pathname: "/about", filePath: "/app/.next/server/pages/about.html", assets: {} }, + ], + }, + } as unknown as BuildCompleteContext; + + const result = createRoutingConfig({ appBuildOutputPath: "/app" } as never, context); + + expect(result.pathnames).toContain("/"); + expect(result.routeIndex["/"]).toEqual({ type: "static", isFallback: false, isISR: false }); + expect(result.routeIndex["/about"]).toEqual({ type: "static", isFallback: false, isISR: false }); + }); + it("serializes routing metadata and executable route classifications", () => { const context = { buildId: "build-id", diff --git a/packages/tests-unit/tests/build/staticPages.test.ts b/packages/tests-unit/tests/build/staticPages.test.ts new file mode 100644 index 00000000..aae5f1d2 --- /dev/null +++ b/packages/tests-unit/tests/build/staticPages.test.ts @@ -0,0 +1,74 @@ +import fs from "node:fs"; +import os from "node:os"; +import path from "node:path"; + +import { getStaticPages } from "@opennextjs/core/build/staticPages.js"; +import { renderStaticPages } from "@opennextjs/core/plugins/inlineRouteHandlers.js"; +import { describe, expect, it, vi } from "vitest"; + +vi.mock("@opennextjs/core/adapters/config/index.js", () => ({})); + +function staticFile(pathname: string, filePath: string) { + return { id: pathname, pathname, filePath, assets: {} }; +} + +function outputs(...staticFiles: ReturnType[]) { + return { pages: [], pagesApi: [], appPages: [], appRoutes: [], staticFiles }; +} + +describe("getStaticPages", () => { + it("lists the html pages with the route they are served on", () => { + const pages = getStaticPages(outputs(staticFile("/about", "/app/.next/server/pages/about.html"))); + + expect(pages).toEqual([{ route: "/about", filePath: "/app/.next/server/pages/about.html" }]); + }); + + it.each([ + ["/index", "/"], + ["/docs/index", "/docs"], + ["/en/index", "/en"], + ["/blog/index-of-posts", "/blog/index-of-posts"], + ])("serves %s on %s", (pathname, route) => { + const pages = getStaticPages(outputs(staticFile(pathname, `/app/.next/server/pages${pathname}.html`))); + + expect(pages.map((page) => page.route)).toEqual([route]); + }); + + it("leaves out the error pages, which are not routes", () => { + const pages = getStaticPages( + outputs( + staticFile("/404", "/app/.next/server/pages/404.html"), + staticFile("/500", "/app/.next/server/pages/500.html") + ) + ); + + expect(pages).toEqual([]); + }); + + it("leaves out assets, including the html files of the public directory", () => { + const pages = getStaticPages( + outputs( + staticFile("/_next/static/a.js", "/app/.next/static/a.js"), + staticFile("/page.html", "/app/public/page.html") + ) + ); + + expect(pages).toEqual([]); + }); + + it("handles builds without static files", () => { + expect(getStaticPages({ pages: [], pagesApi: [], appPages: [], appRoutes: [] })).toEqual([]); + }); +}); + +describe("renderStaticPages", () => { + it("generates the content of the pages, whatever characters they hold", () => { + const dir = fs.mkdtempSync(path.join(os.tmpdir(), "static-pages-")); + const html = `

$& costs $1 \`now\`

\n`; + fs.writeFileSync(path.join(dir, "index.html"), html); + + const code = renderStaticPages(outputs(staticFile("/index", path.join(dir, "index.html")))); + + expect(new Function(`${code}; return staticPages;`)()).toEqual({ "/": html }); + }); +}); diff --git a/packages/tests-unit/tests/core/routing/adapterHandler.staticPage.test.ts b/packages/tests-unit/tests/core/routing/adapterHandler.staticPage.test.ts new file mode 100644 index 00000000..9b080ace --- /dev/null +++ b/packages/tests-unit/tests/core/routing/adapterHandler.staticPage.test.ts @@ -0,0 +1,51 @@ +import { Writable } from "node:stream"; + +import { createStaticPageHandler } from "@opennextjs/core/core/routing/adapterHandler.js"; +import { describe, expect, it } from "vitest"; + +function createResponse() { + const chunks: Buffer[] = []; + const headers: Record = {}; + const res = new Writable({ + write(chunk, _encoding, callback) { + chunks.push(Buffer.from(chunk)); + callback(); + }, + }) as Writable & { statusCode: number; setHeader: (name: string, value: string) => void }; + res.statusCode = 0; + res.setHeader = (name, value) => { + headers[name] = value; + }; + return { res, headers, body: () => Buffer.concat(chunks).toString() }; +} + +async function serve(method: string) { + const response = createResponse(); + await createStaticPageHandler("

hello

").handler({ method } as never, response.res as never); + return response; +} + +describe("createStaticPageHandler", () => { + it("serves the page", async () => { + const { res, headers, body } = await serve("GET"); + + expect(res.statusCode).toBe(200); + expect(headers["content-type"]).toBe("text/html; charset=utf-8"); + expect(body()).toBe("

hello

"); + }); + + it("sends no body to a HEAD request", async () => { + const { res, body } = await serve("HEAD"); + + expect(res.statusCode).toBe(200); + expect(body()).toBe(""); + }); + + it("refuses other methods as Next.js does", async () => { + const { res, headers, body } = await serve("POST"); + + expect(res.statusCode).toBe(405); + expect(headers.allow).toBe("GET, HEAD"); + expect(body()).toBe(""); + }); +}); From 45c9e98064bbd0e8f12e64dc8e400258b0741c92 Mon Sep 17 00:00:00 2001 From: Nicolas Dorseuil Date: Mon, 2 Nov 2026 10:53:03 +0100 Subject: [PATCH 19/21] test: reseed the Next.js suite baseline after the static page fix Co-Authored-By: Claude Opus 5.5 (1M context) --- .../tests-next-suite/disabled/cloudflare.json | 543 +--------------- packages/tests-next-suite/disabled/core.json | 578 +----------------- 2 files changed, 16 insertions(+), 1105 deletions(-) diff --git a/packages/tests-next-suite/disabled/cloudflare.json b/packages/tests-next-suite/disabled/cloudflare.json index e9230699..2e807c90 100644 --- a/packages/tests-next-suite/disabled/cloudflare.json +++ b/packages/tests-next-suite/disabled/cloudflare.json @@ -33,20 +33,13 @@ "app dir - basepath should only make a single RSC call to the current page (/base/refresh?foo=bar)", "app dir - basepath should properly stream an internal server action redirect() with a absolute URL", "app dir - basepath should properly stream an internal server action redirect() with a relative URL", - "app dir - basepath should redirect externally when encountering absolute URLs on the same host outside the basePath", - "app dir - basepath should successfully hard navigate from pages -> app" + "app dir - basepath should redirect externally when encountering absolute URLs on the same host outside the basePath" ] }, "test/e2e/app-dir/app-catch-all-optional/app-catch-all-optional.test.ts": { "reason": "Failing on Next.js 16.2.1, not triaged yet", "cases": ["app-catch-all-optional should handle optional catchall with no params"] }, - "test/e2e/app-dir/app-client-cache/client-cache.original.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "app dir client cache semantics (30s/5min) prefetch={undefined} - default should refetch the full page after 5 mins" - ] - }, "test/e2e/app-dir/app-css/index.test.ts": { "reason": "The edge runtime is not supported" }, @@ -59,10 +52,6 @@ "test/e2e/app-dir/app-edge/app-edge.test.ts": { "reason": "The edge runtime is not supported" }, - "test/e2e/app-dir/app-esm-js/index.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": ["app-dir - esm js extension should be able to use nextjs api in pages router"] - }, "test/e2e/app-dir/app-middleware-proxy/app-middleware-proxy-in-src-dir.test.ts": { "reason": "The edge runtime is not supported" }, @@ -157,20 +146,6 @@ "test/e2e/app-dir/cache-components-segment-configs/cache-components-segment-configs.test.ts": { "reason": "The edge runtime is not supported" }, - "test/e2e/app-dir/catch-error/catch-error-react-compiler.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "app-dir - unstable_catchError with react compiler should recover after reset on Pages Router", - "app-dir - unstable_catchError with react compiler should throw when unstable_retry is called on Pages Router" - ] - }, - "test/e2e/app-dir/catch-error/catch-error.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "app-dir - unstable_catchError should recover after reset on Pages Router", - "app-dir - unstable_catchError should throw when unstable_retry is called on Pages Router" - ] - }, "test/e2e/app-dir/concurrent-navigations/mismatching-prefetch.test.ts": { "reason": "Failing on Next.js 16.2.1, not triaged yet", "cases": [ @@ -225,33 +200,11 @@ }, "test/e2e/app-dir/hooks/hooks.test.ts": { "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "app dir - hooks from pages should have the correct hooks at /adapter-hooks/1", - "app dir - hooks from pages should have the correct hooks at /adapter-hooks/1/account", - "app dir - hooks from pages should have the correct hooks at /adapter-hooks/2", - "app dir - hooks from pages should have the correct hooks at /adapter-hooks/static", - "app dir - hooks usePathname should have the canonical url pathname on rewrite" - ] + "cases": ["app dir - hooks usePathname should have the canonical url pathname on rewrite"] }, "test/e2e/app-dir/interception-route-prefetch-cache/interception-route-prefetch-cache.test.ts": { "reason": "The edge runtime is not supported" }, - "test/e2e/app-dir/interoperability-with-pages/navigation.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "navigation between pages and app dir It should be able to navigate app -> pages", - "navigation between pages and app dir It should be able to navigate pages -> app" - ] - }, - "test/e2e/app-dir/javascript-urls/javascript-urls.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "javascript-urls should prevent javascript URLs in pages router Link as prop", - "javascript-urls should prevent javascript URLs in pages router Link component", - "javascript-urls should prevent javascript URLs in pages router router.push", - "javascript-urls should prevent javascript URLs in pages router router.replace" - ] - }, "test/e2e/app-dir/layout-params/layout-params.test.ts": { "reason": "Failing on Next.js 16.2.1, not triaged yet", "cases": [ @@ -261,10 +214,6 @@ "test/e2e/app-dir/logging/fetch-logging.test.ts": { "reason": "The edge runtime is not supported" }, - "test/e2e/app-dir/mdx-no-mdx-components/mdx.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": ["mdx pages directory should work in initial html"] - }, "test/e2e/app-dir/metadata-dynamic-routes-async-deps/index.test.ts": { "reason": "Failing on Next.js 16.2.1, not triaged yet", "cases": [ @@ -303,15 +252,6 @@ "middleware-sitemap should not be affected by middleware if sitemap.xml is excluded from the matcher" ] }, - "test/e2e/app-dir/navigation/navigation.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "app dir - navigation navigation between pages and app should not contain _rsc query while navigating from app to pages", - "app dir - navigation navigation between pages and app should not contain _rsc query while navigating from pages to app", - "app dir - navigation navigation between pages and app should not omit the hash while navigating from app to pages", - "app dir - navigation query string useParams identity between renders should be stable in pages" - ] - }, "test/e2e/app-dir/next-after-app-deploy/index.test.ts": { "reason": "The edge runtime is not supported" }, @@ -551,13 +491,6 @@ "parallel-routes-revalidation router.refresh (dynamic) - searchParams: true should correctly refresh data for the intercepted route and previously active page slot" ] }, - "test/e2e/app-dir/params-hooks-compat/index.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "app-dir - params hooks compat should only access path params with useParams", - "app-dir - params hooks compat should only access search params with useSearchParams" - ] - }, "test/e2e/app-dir/ppr-root-param-fallback/ppr-root-param-fallback.test.ts": { "reason": "Failing on Next.js 16.2.1, not triaged yet", "cases": [ @@ -605,208 +538,6 @@ "reason": "Failing on Next.js 16.2.1, not triaged yet", "cases": ["rsc-redirect should get 200 status code for rsc request"] }, - "test/e2e/app-dir/scss/3rd-party-module/3rd-party-module.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "3rd Party CSS Module Support ({\"sass\": \"1.54.0\"}) should render the module", - "3rd Party CSS Module Support ({\"sass-embedded\": \"1.75.0\"}) should render the module" - ] - }, - "test/e2e/app-dir/scss/basic-module-additional-data/basic-module-additional-data.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "Basic Module Additional Data Support ({\"sass\": \"1.54.0\"}) should render the module", - "Basic Module Additional Data Support ({\"sass-embedded\": \"1.75.0\"}) should render the module" - ] - }, - "test/e2e/app-dir/scss/basic-module-include-paths/basic-module-include-paths.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "Basic Module Include Paths Support ({\"sass\": \"1.54.0\"}) should render the module", - "Basic Module Include Paths Support ({\"sass-embedded\": \"1.75.0\"}) should render the module" - ] - }, - "test/e2e/app-dir/scss/basic-module-prepend-data/basic-module-prepend-data.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "Basic Module Prepend Data Support ({\"sass\": \"1.54.0\"}) should render the module", - "Basic Module Prepend Data Support ({\"sass-embedded\": \"1.75.0\"}) should render the module" - ] - }, - "test/e2e/app-dir/scss/basic-module/basic-module.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "Basic SCSS Module Support ({\"sass\": \"1.54.0\"}) should render the module", - "Basic SCSS Module Support ({\"sass-embedded\": \"1.75.0\"}) should render the module" - ] - }, - "test/e2e/app-dir/scss/catch-all-module/catch-all-module.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "Catch-all Route CSS Module Usage ({\"sass\": \"1.54.0\"}) should render the module", - "Catch-all Route CSS Module Usage ({\"sass-embedded\": \"1.75.0\"}) should render the module" - ] - }, - "test/e2e/app-dir/scss/composes-basic/composes-basic.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "CSS Module Composes Usage (Basic) ({\"sass\": \"1.54.0\"}) should render the module", - "CSS Module Composes Usage (Basic) ({\"sass-embedded\": \"1.75.0\"}) should render the module" - ] - }, - "test/e2e/app-dir/scss/composes-external/composes-external.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "CSS Module Composes Usage (External) ({\"sass\": \"1.54.0\"}) should render the module", - "CSS Module Composes Usage (External) ({\"sass-embedded\": \"1.75.0\"}) should render the module" - ] - }, - "test/e2e/app-dir/scss/data-url/data-url.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "SCSS Support loader handling Data Urls ({\"sass\": \"1.54.0\"}) should render the module", - "SCSS Support loader handling Data Urls ({\"sass-embedded\": \"1.75.0\"}) should render the module" - ] - }, - "test/e2e/app-dir/scss/dev-module/dev-module.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "Has CSS Module in computed styles in Development ({\"sass\": \"1.54.0\"}) should have CSS for page", - "Has CSS Module in computed styles in Development ({\"sass-embedded\": \"1.75.0\"}) should have CSS for page" - ] - }, - "test/e2e/app-dir/scss/dynamic-route-module/dynamic-route-module.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "Dynamic Route CSS Module Usage ({\"sass\": \"1.54.0\"}) should apply styles correctly", - "Dynamic Route CSS Module Usage ({\"sass-embedded\": \"1.75.0\"}) should apply styles correctly" - ] - }, - "test/e2e/app-dir/scss/external-url/external-url.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "SCSS Support loader handling External imports ({\"sass\": \"1.54.0\"}) should include font on the page", - "SCSS Support loader handling External imports ({\"sass-embedded\": \"1.75.0\"}) should include font on the page" - ] - }, - "test/e2e/app-dir/scss/loader-order/loader-order.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "SCSS Support loader handling Preprocessor loader order ({\"sass\": \"1.54.0\"}) should render the module", - "SCSS Support loader handling Preprocessor loader order ({\"sass-embedded\": \"1.75.0\"}) should render the module" - ] - }, - "test/e2e/app-dir/scss/multi-global-reversed/multi-global-reversed.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "(SCSS) Multi Global Support (reversed) ({\"sass\": \"1.54.0\"}) should render the page", - "(SCSS) Multi Global Support (reversed) ({\"sass-embedded\": \"1.75.0\"}) should render the page" - ] - }, - "test/e2e/app-dir/scss/multi-global/multi-global.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "Multi Global Support ({\"sass\": \"1.54.0\"}) should render the page", - "Multi Global Support ({\"sass-embedded\": \"1.75.0\"}) should render the page" - ] - }, - "test/e2e/app-dir/scss/multi-page/multi-page.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "SCSS Support ({\"sass\": \"1.54.0\"}) Has CSS in computed styles in Development should have CSS for page", - "SCSS Support ({\"sass\": \"1.54.0\"}) Has CSS in computed styles in Production should have CSS for page", - "SCSS Support ({\"sass-embedded\": \"1.75.0\"}) Has CSS in computed styles in Development should have CSS for page", - "SCSS Support ({\"sass-embedded\": \"1.75.0\"}) Has CSS in computed styles in Production should have CSS for page" - ] - }, - "test/e2e/app-dir/scss/nested-global/nested-global.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "Nested @import() Global Support ({\"sass\": \"1.54.0\"}) should render the page", - "Nested @import() Global Support ({\"sass-embedded\": \"1.75.0\"}) should render the page" - ] - }, - "test/e2e/app-dir/scss/nm-module-nested/nm-module-nested.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "Valid Nested CSS Module Usage from within node_modules ({\"sass\": \"1.54.0\"}) should render the page", - "Valid Nested CSS Module Usage from within node_modules ({\"sass-embedded\": \"1.75.0\"}) should render the page" - ] - }, - "test/e2e/app-dir/scss/nm-module/nm-module.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "Valid CSS Module Usage from within node_modules ({\"sass\": \"1.54.0\"}) should render the page", - "Valid CSS Module Usage from within node_modules ({\"sass-embedded\": \"1.75.0\"}) should render the page" - ] - }, - "test/e2e/app-dir/scss/npm-import-nested/npm-import-nested.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "Good Nested CSS Import from node_modules ({\"sass\": \"1.54.0\"}) should render the page", - "Good Nested CSS Import from node_modules ({\"sass-embedded\": \"1.75.0\"}) should render the page" - ] - }, - "test/e2e/app-dir/scss/npm-import-tilde/npm-import-tilde.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "Good CSS Import from node_modules with tilde ({\"sass\": \"1.54.0\"}) should render the page", - "Good CSS Import from node_modules with tilde ({\"sass-embedded\": \"1.75.0\"}) should render the page" - ] - }, - "test/e2e/app-dir/scss/npm-import/npm-import.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "Good CSS Import from node_modules ({\"sass\": \"1.54.0\"}) should render the page", - "Good CSS Import from node_modules ({\"sass-embedded\": \"1.75.0\"}) should render the page" - ] - }, - "test/e2e/app-dir/scss/prod-module/prod-module.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "Has CSS Module in computed styles in Production ({\"sass\": \"1.54.0\"}) should render the page", - "Has CSS Module in computed styles in Production ({\"sass-embedded\": \"1.75.0\"}) should render the page" - ] - }, - "test/e2e/app-dir/scss/single-global-src/single-global-src.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "Basic Global Support with src/ dir ({\"sass\": \"1.54.0\"}) should render the page", - "Basic Global Support with src/ dir ({\"sass-embedded\": \"1.75.0\"}) should render the page" - ] - }, - "test/e2e/app-dir/scss/single-global/single-global.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "Basic Global Support scss ({\"sass\": \"1.54.0\"}) should render the page", - "Basic Global Support scss ({\"sass-embedded\": \"1.75.0\"}) should render the page" - ] - }, - "test/e2e/app-dir/scss/url-global-partial/url-global-partial.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "SCSS Support loader handling CSS URL via file-loader sass partial ({\"sass\": \"1.54.0\"}) should render the page", - "SCSS Support loader handling CSS URL via file-loader sass partial ({\"sass-embedded\": \"1.75.0\"}) should render the page" - ] - }, - "test/e2e/app-dir/scss/url-global/url-global.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "SCSS Support loader handling ({\"sass\": \"1.54.0\"}) CSS URL via `file-loader` should render the page", - "SCSS Support loader handling ({\"sass-embedded\": \"1.75.0\"}) CSS URL via `file-loader` should render the page" - ] - }, - "test/e2e/app-dir/scss/with-styled-jsx/with-styled-jsx.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "Ordering with styled-jsx ({\"sass\": \"1.54.0\"}) should have the correct color (css ordering)", - "Ordering with styled-jsx ({\"sass-embedded\": \"1.75.0\"}) should have the correct color (css ordering)" - ] - }, - "test/e2e/app-dir/searchparams-reuse-loading/searchparams-reuse-loading.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": ["searchparams-reuse-loading when aliasing is skipped should work for navigating to pages dir"] - }, "test/e2e/app-dir/segment-cache/cached-navigations/cached-navigations.test.ts": { "reason": "Failing on Next.js 16.2.1, not triaged yet", "cases": [ @@ -870,10 +601,6 @@ "reason": "Failing on Next.js 16.2.1, not triaged yet", "cases": ["turbopack-reports should render page importing sqlite3"] }, - "test/e2e/app-dir/underscore-ignore-app-paths/underscore-ignore-app-paths.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": ["underscore-ignore-app-paths should serve pages path with underscore"] - }, "test/e2e/app-dir/use-cache-metadata-route-handler/use-cache-metadata-route-handler.test.ts": { "reason": "Failing on Next.js 16.2.1, not triaged yet", "cases": [ @@ -931,16 +658,10 @@ "cases": [ "Async modules can render async 404 pages", "Async modules can render async error page", - "Async modules csr async page modules", - "Async modules ssr async page modules", "Async modules works on async api routes", "Async modules works with getServerSideProps" ] }, - "test/e2e/babel/index.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": ["Babel Should compile a page with flowtype correctly"] - }, "test/e2e/basepath/error-pages.test.ts": { "reason": "Failing on Next.js 16.2.1, not triaged yet", "cases": [ @@ -963,15 +684,12 @@ "basePath query/hash handling is correct during query updating #a ?hello=", "basePath query/hash handling is correct during query updating #a ?hello=world", "basePath query/hash handling is correct during query updating #hello? $search", - "basePath query/hash handling is correct during query updating #hello?world $search", - "basePath query/hash handling should work with hash links" + "basePath query/hash handling is correct during query updating #hello?world $search" ] }, "test/e2e/basepath/redirect-and-rewrite.test.ts": { "reason": "Failing on Next.js 16.2.1, not triaged yet", "cases": [ - "basePath should not redirect with basePath when set to false", - "basePath should not rewrite with basePath when set to false", "basePath should rewrite with basePath by default", "basePath should rewrite without basePath when set to false" ] @@ -992,32 +710,16 @@ "basePath + trailingSlash should correctly replace state when same asPath but different url" ] }, - "test/e2e/browserslist-extends/index.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": ["browserslist-extends should work"] - }, "test/e2e/cache-handlers-upstream-wiring/index.test.ts": { "reason": "The edge runtime is not supported" }, "test/e2e/cancel-request/stream-cancel.test.ts": { "reason": "The edge runtime is not supported" }, - "test/e2e/children-page/index.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": ["children-page with pages dir should show the content if you have a page named children"] - }, "test/e2e/chrome-devtools-workspace/chrome-devtools-workspace.test.ts": { "reason": "Failing on Next.js 16.2.1, not triaged yet", "cases": ["chrome-devtools-workspace proxy should be able to connect to Chrome DevTools in dev"] }, - "test/e2e/config-promise-export/async-function.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": ["async export should work"] - }, - "test/e2e/config-promise-export/promise.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": ["promise export should work"] - }, "test/e2e/deferred-entries/deferred-entries.test.ts": { "reason": "The edge runtime is not supported" }, @@ -1027,10 +729,6 @@ "deprecation-warnings without next.config.js should not emit any deprecation warnings when no config file exists" ] }, - "test/e2e/disable-js-preload/test/index.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": ["disabled JS preloads should render the page"] - }, "test/e2e/dynamic-route-interpolation/index.test.ts": { "reason": "Failing on Next.js 16.2.1, not triaged yet", "cases": [ @@ -1131,15 +829,6 @@ "reason": "Failing on Next.js 16.2.1, not triaged yet", "cases": ["handle-non-hoisted-swc-helpers should work"] }, - "test/e2e/hello-world/hello-world.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "hello-world should work using browser", - "hello-world should work using cheerio", - "hello-world should work with fetch", - "hello-world should work with html" - ] - }, "test/e2e/i18n-default-locale-redirect/i18n-default-locale-redirect.test.ts": { "reason": "Failing on Next.js 16.2.1, not triaged yet", "cases": [ @@ -1168,27 +857,6 @@ "i18n-ignore-redirect-source-locale with basepath get redirected to the new page, from: /sv to: sv" ] }, - "test/e2e/i18n-ignore-redirect-source-locale/redirects.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "i18n-ignore-redirect-source-locale get redirected to the new page, from and to: ", - "i18n-ignore-redirect-source-locale get redirected to the new page, from and to: /en", - "i18n-ignore-redirect-source-locale get redirected to the new page, from and to: /nl", - "i18n-ignore-redirect-source-locale get redirected to the new page, from and to: /sv", - "i18n-ignore-redirect-source-locale get redirected to the new page, from: to: /", - "i18n-ignore-redirect-source-locale get redirected to the new page, from: to: en", - "i18n-ignore-redirect-source-locale get redirected to the new page, from: to: sv", - "i18n-ignore-redirect-source-locale get redirected to the new page, from: /en to: /", - "i18n-ignore-redirect-source-locale get redirected to the new page, from: /en to: en", - "i18n-ignore-redirect-source-locale get redirected to the new page, from: /en to: sv", - "i18n-ignore-redirect-source-locale get redirected to the new page, from: /nl to: /", - "i18n-ignore-redirect-source-locale get redirected to the new page, from: /nl to: en", - "i18n-ignore-redirect-source-locale get redirected to the new page, from: /nl to: sv", - "i18n-ignore-redirect-source-locale get redirected to the new page, from: /sv to: /", - "i18n-ignore-redirect-source-locale get redirected to the new page, from: /sv to: en", - "i18n-ignore-redirect-source-locale get redirected to the new page, from: /sv to: sv" - ] - }, "test/e2e/i18n-ignore-rewrite-source-locale/rewrites.test.ts": { "reason": "Failing on Next.js 16.2.1, not triaged yet", "cases": [ @@ -1213,31 +881,9 @@ "i18-preferred-locale-redirect should request a path prefixed with my preferred detected locale when clicking link to index from a locale-prefixed path" ] }, - "test/e2e/ignore-invalid-popstateevent/with-i18n.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "i18n: Event with stale state - static route previously was dynamic Don't ignore event with different locale", - "i18n: Event with stale state - static route previously was dynamic Ignore event with query param", - "i18n: Event with stale state - static route previously was dynamic Ignore event without query param" - ] - }, - "test/e2e/ignore-invalid-popstateevent/without-i18n.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "Event with stale state - static route previously was dynamic Ignore event with query param", - "Event with stale state - static route previously was dynamic Ignore event without query param" - ] - }, "test/e2e/import-conditions/import-conditions.test.ts": { "reason": "The edge runtime is not supported" }, - "test/e2e/import-meta/import-meta.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "import-meta import.meta.url should work in browser", - "import-meta import.meta.url should work on the server" - ] - }, "test/e2e/instrumentation-client-hook/instrumentation-client-hook.test.ts": { "reason": "Failing on Next.js 16.2.1, not triaged yet", "cases": [ @@ -1292,43 +938,15 @@ "invalid-static-asset-404-pages should return custom 404 page when fetching invalid non-asset path" ] }, - "test/e2e/legacy-link-behavior-pages/index.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "Link with legacyBehavior errors when calling onClick without the event", - "Link with legacyBehavior if the child is an
tag forwards the href attribute", - "Link with legacyBehavior if the child is an tag navigates correctly", - "Link with legacyBehavior passHref forwards the href attribute", - "Link with legacyBehavior passHref navigates correctly", - "Link with legacyBehavior works if the child is a number", - "Link with legacyBehavior works if the child is a string" - ] - }, - "test/e2e/link-on-navigate-prop/index.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - " onNavigate prop Pages Router should only trigger both onClick for external links", - " onNavigate prop Pages Router should only trigger onClick for download links", - " onNavigate prop Pages Router should only trigger onClick for external links with target=\"_blank\"", - " onNavigate prop Pages Router should prevent navigation when onNavigate calls preventDefault", - " onNavigate prop Pages Router should replace history state for external links with replace prop", - " onNavigate prop Pages Router should trigger both onClick and onNavigate for internal navigation", - " onNavigate prop Pages Router should trigger onClick but not onNavigate when using modifier key" - ] - }, "test/e2e/link-with-api-rewrite/index.test.ts": { "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "link-with-api-rewrite should perform hard navigation for direct urls", - "link-with-api-rewrite should perform hard navigation for rewritten urls" - ] + "cases": ["link-with-api-rewrite should perform hard navigation for rewritten urls"] }, "test/e2e/middleware-base-path/test/index.test.ts": { "reason": "Failing on Next.js 16.2.1, not triaged yet", "cases": [ "Middleware base tests router.query must exist when Link clicked page routing", - "Middleware base tests should allow client-side navigation to the root", - "Middleware base tests should execute from absolute paths" + "Middleware base tests should allow client-side navigation to the root" ] }, "test/e2e/middleware-custom-matchers/test/index.test.ts": { @@ -1346,6 +964,7 @@ "test/e2e/middleware-fetches-with-body/index.test.ts": { "reason": "Failing on Next.js 16.2.1, not triaged yet", "cases": [ + "Middleware fetches with body should return 413 for body equal to 10mb", "Middleware fetches with body with bodyParser = false should be able to send and return with body greater than 16KiB", "Middleware fetches with body with bodyParser = false should be able to send and return with body size equal to 16KiB", "Middleware fetches with body with custom bodyParser sizeLimit (5kb) should be able to send and return body size equal to 5kb", @@ -1366,17 +985,10 @@ "reason": "Failing on Next.js 16.2.1, not triaged yet", "cases": [ "Middleware Redirect /fr should implement internal redirects", - "Middleware Redirect /fr should redirect", - "Middleware Redirect /fr should redirect multiple times", - "Middleware Redirect /fr should redirect to api route with locale", - "Middleware Redirect /fr should redirect with a fragment", "Middleware Redirect should implement internal redirects", - "Middleware Redirect should redirect", "Middleware Redirect should redirect correctly with redirect in next.config.js", - "Middleware Redirect should redirect multiple times", "Middleware Redirect should redirect to api route with locale", - "Middleware Redirect should redirect to external urls with data requests and external redirects", - "Middleware Redirect should redirect with a fragment" + "Middleware Redirect should redirect to external urls with data requests and external redirects" ] }, "test/e2e/middleware-redirects/test/node-runtime.test.ts": { @@ -1388,7 +1000,6 @@ "test/e2e/middleware-rewrites/test/index.test.ts": { "reason": "Failing on Next.js 16.2.1, not triaged yet", "cases": [ - "Middleware Rewrite /fr should correctly rewriting to a different dynamic path", "Middleware Rewrite /fr should not call middleware with shallow push", "Middleware Rewrite /fr should rewrite without hard navigation", "Middleware Rewrite should allow to opt-out prefetch caching", @@ -1396,7 +1007,6 @@ "Middleware Rewrite should allow to rewrite to a `beforeFiles` rewrite config", "Middleware Rewrite should allow to switch locales", "Middleware Rewrite should behave consistently on recursive rewrites", - "Middleware Rewrite should correctly rewriting to a different dynamic path", "Middleware Rewrite should handle static dynamic rewrite from middleware correctly", "Middleware Rewrite should hard navigate on 404 for data request", "Middleware Rewrite should not call middleware with shallow push", @@ -1411,10 +1021,6 @@ "Middleware Rewrite should rewrite without hard navigation" ] }, - "test/e2e/middleware-shallow-link/index.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": ["browser-shallow-navigation should render the correct page"] - }, "test/e2e/middleware-static-files/index.test.ts": { "reason": "Failing on Next.js 16.2.1, not triaged yet", "cases": [ @@ -1450,22 +1056,6 @@ "test/e2e/module-layer/module-layer.test.ts": { "reason": "The edge runtime is not supported" }, - "test/e2e/new-link-behavior/child-a-tag-error.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": ["New Link Behavior with child should throw error with child"] - }, - "test/e2e/new-link-behavior/index.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "New Link Behavior should handle onclick", - "New Link Behavior should handle preventdefault", - "New Link Behavior should navigate to /about", - "New Link Behavior should render link with ", - "New Link Behavior should render link with classname", - "New Link Behavior should render link with id", - "New Link Behavior should render link with multiple children" - ] - }, "test/e2e/next-form/basepath/next-form-basepath.test.ts": { "reason": "Failing on Next.js 16.2.1, not triaged yet", "cases": [ @@ -1473,38 +1063,6 @@ "app dir - form - with basepath should not add basePath to a submitter's formAction" ] }, - "test/e2e/next-form/default/pages-dir.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "next-form - pages dir does not navigate if preventDefault is called in onSubmit", - "next-form - pages dir does not push a new history entry if `replace` is passed", - "next-form - pages dir functions passed to action runs client action", - "next-form - pages dir functions passed to formAction runs client action from submitter and doesn't warn about unsupported attributes", - "next-form - pages dir should soft-navigate on submit", - "next-form - pages dir should soft-navigate to the formAction url of the submitter", - "next-form - pages dir unsupported attributes on submitter should warn if submitter sets \"formEncType\" to an unsupported value and fall back to default submit behavior", - "next-form - pages dir unsupported attributes on submitter should warn if submitter sets \"formMethod\" to an unsupported value and fall back to default submit behavior", - "next-form - pages dir unsupported attributes on submitter should warn if submitter sets \"formTarget\" to an unsupported value and fall back to default submit behavior", - "next-form - pages dir url-encodes file inputs, but warns about them" - ] - }, - "test/e2e/next-head/index.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "next/head should have correct head tags after hydration", - "next/head should have correct head tags from a fragment", - "next/head should have correct head tags in initial document", - "next/head should have current head tags from a _document getInitialProps", - "next/head should place charset element at the top of " - ] - }, - "test/e2e/nonce-head-manager/index.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "nonce head manager should not re-execute the script when re-rendering", - "nonce head manager should not re-execute the script when re-rendering with CSP header" - ] - }, "test/e2e/og-api/index.test.ts": { "reason": "The edge runtime is not supported" }, @@ -1517,30 +1075,12 @@ "test/e2e/on-request-error/server-action-error/server-action-error.test.ts": { "reason": "The edge runtime is not supported" }, - "test/e2e/opentelemetry/client-trace-metadata/client-trace-metadata.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "clientTraceMetadata pages router next start only soft navigating to a dynamic page should not transform previous propagation data", - "clientTraceMetadata pages router next start only soft navigating to a static page should not transform previous propagation data" - ] - }, "test/e2e/opentelemetry/instrumentation/instrumentation-pages-app-only.test.ts": { "reason": "The edge runtime is not supported" }, "test/e2e/opentelemetry/instrumentation/opentelemetry.test.ts": { "reason": "The edge runtime is not supported" }, - "test/e2e/optimized-loading/test/index.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "Optimized loading page / should load scripts with defer in head", - "Optimized loading page / should render the page /" - ] - }, - "test/e2e/postcss-config-package/index.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": ["postcss-config-json works with postcss config specified in package.json"] - }, "test/e2e/prerender-crawler.test.ts": { "reason": "Failing on Next.js 16.2.1, not triaged yet", "cases": [ @@ -1566,7 +1106,6 @@ "Prerender should handle revalidating JSON correctly with blocking and seed", "Prerender should navigate between pages successfully", "Prerender should not error when rewriting to fallback dynamic SSG page", - "Prerender should not have gsp in __NEXT_DATA__ for non-GSP page", "Prerender should not show error for invalid JSON returned from getStaticProps on SSR", "Prerender should render correctly for SSG pages that starts with api-docs", "Prerender should respond for catch-all deep folder", @@ -1604,10 +1143,6 @@ "test/e2e/skip-trailing-slash-redirect/index.test.ts": { "reason": "The edge runtime is not supported" }, - "test/e2e/ssr-react-context/index.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": ["React Context should render a page with context"] - }, "test/e2e/streaming-ssr-edge/streaming-ssr-edge.test.ts": { "reason": "The edge runtime is not supported" }, @@ -1617,33 +1152,12 @@ "test/e2e/switchable-runtime/index.test.ts": { "reason": "The edge runtime is not supported" }, - "test/e2e/test-template/{{ toFileName name }}/{{ toFileName name }}.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "{{name}} should work using browser", - "{{name}} should work using cheerio", - "{{name}} should work with fetch", - "{{name}} should work with html" - ] - }, - "test/e2e/test-utils-tests/basic/basic.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": ["nextTestSetup should work"] - }, "test/e2e/testmode/testmode.test.ts": { "reason": "The edge runtime is not supported" }, "test/e2e/trailing-slashes/with-trailing-slash.test.ts": { "reason": "Failing on Next.js 16.2.1, not triaged yet", "cases": [ - "Trailing slashes with trailingSlash: true / should client side render /index.js, with router path /", - "Trailing slashes with trailingSlash: true / should resolve to /index.js, with router path /", - "Trailing slashes with trailingSlash: true /about/ should client side render /about.js, with router path /about", - "Trailing slashes with trailingSlash: true /about/ should resolve to /about.js, with router path /about", - "Trailing slashes with trailingSlash: true /about/?hello=world should client side render /about.js, with router path /about", - "Trailing slashes with trailingSlash: true /about/?hello=world should resolve to /about.js, with router path /about", - "Trailing slashes with trailingSlash: true /catch-all/hello/world/ should client side render /catch-all/[...slug].js, with router path /catch-all/[...slug]", - "Trailing slashes with trailingSlash: true /catch-all/hello/world/ should resolve to /catch-all/[...slug].js, with router path /catch-all/[...slug]", "Trailing slashes with trailingSlash: true /external-linker?href=https://nextjs.org should have href https://nextjs.org", "Trailing slashes with trailingSlash: true /external-linker?href=https://nextjs.org/ should have href https://nextjs.org/", "Trailing slashes with trailingSlash: true /linker?href=/ should have href /", @@ -1672,14 +1186,6 @@ "test/e2e/trailing-slashes/without-trailing-slash.test.ts": { "reason": "Failing on Next.js 16.2.1, not triaged yet", "cases": [ - "Trailing slashes with trailingSlash: false / should client side render /index.js, with router path /", - "Trailing slashes with trailingSlash: false / should resolve to /index.js, with router path /", - "Trailing slashes with trailingSlash: false /about should client side render /about.js, with router path /about", - "Trailing slashes with trailingSlash: false /about should resolve to /about.js, with router path /about", - "Trailing slashes with trailingSlash: false /about?hello=world should client side render /about.js, with router path /about", - "Trailing slashes with trailingSlash: false /about?hello=world should resolve to /about.js, with router path /about", - "Trailing slashes with trailingSlash: false /catch-all/hello/world should client side render /catch-all/[...slug].js, with router path /catch-all/[...slug]", - "Trailing slashes with trailingSlash: false /catch-all/hello/world should resolve to /catch-all/[...slug].js, with router path /catch-all/[...slug]", "Trailing slashes with trailingSlash: false /external-linker?href=https://nextjs.org should have href https://nextjs.org", "Trailing slashes with trailingSlash: false /external-linker?href=https://nextjs.org/ should have href https://nextjs.org/", "Trailing slashes with trailingSlash: false /linker?href=/ should have href /", @@ -1705,10 +1211,6 @@ "Trailing slashes with trailingSlash: false /linker?href=/catch-all/hello/ should push route to /catch-all/hello" ] }, - "test/e2e/tsconfig-path/index.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": ["specified tsconfig pages router: allows a user-specific tsconfig via the next config"] - }, "test/e2e/twoslash/index.test.ts": { "reason": "Failing on Next.js 16.2.1, not triaged yet", "cases": [ @@ -1716,17 +1218,6 @@ "twoslash should annotate twoslash types esnext" ] }, - "test/e2e/type-module-interop/index.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "Type module interop should render server-side", - "Type module interop should render server-side with modules" - ] - }, - "test/e2e/typescript-custom-tsconfig/test/index.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": ["Custom TypeScript Config pages router: allows a user-specific tsconfig via the next config"] - }, "test/e2e/undici-fetch/index.test.ts": { "reason": "Failing on Next.js 16.2.1, not triaged yet", "cases": [ @@ -1738,26 +1229,6 @@ "test/e2e/url/url.test.ts": { "reason": "The edge runtime is not supported" }, - "test/e2e/use-router-with-rewrites/use-router-with-rewrites.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "use-router-with-rewrites rewrite to another segment should preserve current pathname when using Link with rewrites on dynamic route", - "use-router-with-rewrites rewrite to another segment should preserve current pathname when using useRouter.push with rewrites on dynamic route", - "use-router-with-rewrites rewrite to another segment should preserve current pathname when using useRouter.replace with rewrites on dynamic route", - "use-router-with-rewrites rewrite to same segment should preserve current pathname when using Link with rewrites on dynamic route", - "use-router-with-rewrites rewrite to same segment should preserve current pathname when using useRouter.push with rewrites on dynamic route", - "use-router-with-rewrites rewrite to same segment should preserve current pathname when using useRouter.replace with rewrites on dynamic route", - "use-router-with-rewrites should preserve current pathname when using Link with rewrites", - "use-router-with-rewrites should preserve current pathname when using useRouter.push with rewrites", - "use-router-with-rewrites should preserve current pathname when using useRouter.replace with rewrites" - ] - }, - "test/e2e/useselectedlayoutsegment-s-in-pages-router/useselectedlayoutsegment-s-in-pages-router.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "useSelectedLayoutSegment(s) in Pages Router Should render with `useSelectedLayoutSegment(s) hooks" - ] - }, "test/e2e/with-router/index.test.ts": { "reason": "Failing on Next.js 16.2.1, not triaged yet", "cases": [ diff --git a/packages/tests-next-suite/disabled/core.json b/packages/tests-next-suite/disabled/core.json index 714c399a..7842ebfd 100644 --- a/packages/tests-next-suite/disabled/core.json +++ b/packages/tests-next-suite/disabled/core.json @@ -31,7 +31,6 @@ "cases": [ "app dir - basepath should properly stream an internal server action redirect() with a absolute URL", "app dir - basepath should properly stream an internal server action redirect() with a relative URL", - "app dir - basepath should successfully hard navigate from pages -> app", "app dir - basepath should support Link with basePath prefixed", "app dir - basepath should support `basePath`" ] @@ -52,10 +51,6 @@ "test/e2e/app-dir/app-edge/app-edge.test.ts": { "reason": "The edge runtime is not supported" }, - "test/e2e/app-dir/app-esm-js/index.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": ["app-dir - esm js extension should be able to use nextjs api in pages router"] - }, "test/e2e/app-dir/app-middleware-proxy/app-middleware-proxy-in-src-dir.test.ts": { "reason": "The edge runtime is not supported" }, @@ -79,7 +74,6 @@ "cases": [ "app dir - prefetching fetch priority should have an auto priority for all other fetch operations", "app dir - prefetching fetch priority should prefetch links in viewport with low priority", - "app dir - prefetching fetch priority should respect multiple prefetch types to the same URL", "app dir - prefetching should not unintentionally modify the requested prefetch by escaping the uri encoded query params" ] }, @@ -144,20 +138,6 @@ "test/e2e/app-dir/cache-components-segment-configs/cache-components-segment-configs.test.ts": { "reason": "The edge runtime is not supported" }, - "test/e2e/app-dir/catch-error/catch-error-react-compiler.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "app-dir - unstable_catchError with react compiler should recover after reset on Pages Router", - "app-dir - unstable_catchError with react compiler should throw when unstable_retry is called on Pages Router" - ] - }, - "test/e2e/app-dir/catch-error/catch-error.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "app-dir - unstable_catchError should recover after reset on Pages Router", - "app-dir - unstable_catchError should throw when unstable_retry is called on Pages Router" - ] - }, "test/e2e/app-dir/concurrent-navigations/mismatching-prefetch.test.ts": { "reason": "Failing on Next.js 16.2.1, not triaged yet", "cases": [ @@ -204,33 +184,11 @@ }, "test/e2e/app-dir/hooks/hooks.test.ts": { "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "app dir - hooks from pages should have the correct hooks at /adapter-hooks/1", - "app dir - hooks from pages should have the correct hooks at /adapter-hooks/1/account", - "app dir - hooks from pages should have the correct hooks at /adapter-hooks/2", - "app dir - hooks from pages should have the correct hooks at /adapter-hooks/static", - "app dir - hooks usePathname should have the canonical url pathname on rewrite" - ] + "cases": ["app dir - hooks usePathname should have the canonical url pathname on rewrite"] }, "test/e2e/app-dir/interception-route-prefetch-cache/interception-route-prefetch-cache.test.ts": { "reason": "The edge runtime is not supported" }, - "test/e2e/app-dir/interoperability-with-pages/navigation.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "navigation between pages and app dir It should be able to navigate app -> pages", - "navigation between pages and app dir It should be able to navigate pages -> app" - ] - }, - "test/e2e/app-dir/javascript-urls/javascript-urls.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "javascript-urls should prevent javascript URLs in pages router Link as prop", - "javascript-urls should prevent javascript URLs in pages router Link component", - "javascript-urls should prevent javascript URLs in pages router router.push", - "javascript-urls should prevent javascript URLs in pages router router.replace" - ] - }, "test/e2e/app-dir/layout-params/layout-params.test.ts": { "reason": "Failing on Next.js 16.2.1, not triaged yet", "cases": [ @@ -240,10 +198,6 @@ "test/e2e/app-dir/logging/fetch-logging.test.ts": { "reason": "The edge runtime is not supported" }, - "test/e2e/app-dir/mdx-no-mdx-components/mdx.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": ["mdx pages directory should work in initial html"] - }, "test/e2e/app-dir/metadata-dynamic-routes-async-deps/index.test.ts": { "reason": "Failing on Next.js 16.2.1, not triaged yet", "cases": [ @@ -282,15 +236,6 @@ "middleware-sitemap should not be affected by middleware if sitemap.xml is excluded from the matcher" ] }, - "test/e2e/app-dir/navigation/navigation.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "app dir - navigation navigation between pages and app should not contain _rsc query while navigating from app to pages", - "app dir - navigation navigation between pages and app should not contain _rsc query while navigating from pages to app", - "app dir - navigation navigation between pages and app should not omit the hash while navigating from app to pages", - "app dir - navigation query string useParams identity between renders should be stable in pages" - ] - }, "test/e2e/app-dir/next-after-app-deploy/index.test.ts": { "reason": "The edge runtime is not supported" }, @@ -518,13 +463,6 @@ "parallel-routes-revalidation router.refresh (dynamic) - searchParams: true should correctly refresh data for the intercepted route and previously active page slot" ] }, - "test/e2e/app-dir/params-hooks-compat/index.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "app-dir - params hooks compat should only access path params with useParams", - "app-dir - params hooks compat should only access search params with useSearchParams" - ] - }, "test/e2e/app-dir/ppr-root-param-fallback/ppr-root-param-fallback.test.ts": { "reason": "Failing on Next.js 16.2.1, not triaged yet", "cases": [ @@ -544,10 +482,6 @@ "test/e2e/app-dir/proxy-runtime/proxy-runtime.test.ts": { "reason": "The edge runtime is not supported" }, - "test/e2e/app-dir/resource-url-encoding/resource-url-encoding.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": ["scripts encodes characters in pages router", "styles encodes characters in pages router"] - }, "test/e2e/app-dir/resume-data-cache/resume-data-cache.test.ts": { "reason": "Failing on Next.js 16.2.1, not triaged yet", "cases": [ @@ -568,208 +502,6 @@ "reason": "Failing on Next.js 16.2.1, not triaged yet", "cases": ["rsc-redirect should get 200 status code for rsc request"] }, - "test/e2e/app-dir/scss/3rd-party-module/3rd-party-module.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "3rd Party CSS Module Support ({\"sass\": \"1.54.0\"}) should render the module", - "3rd Party CSS Module Support ({\"sass-embedded\": \"1.75.0\"}) should render the module" - ] - }, - "test/e2e/app-dir/scss/basic-module-additional-data/basic-module-additional-data.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "Basic Module Additional Data Support ({\"sass\": \"1.54.0\"}) should render the module", - "Basic Module Additional Data Support ({\"sass-embedded\": \"1.75.0\"}) should render the module" - ] - }, - "test/e2e/app-dir/scss/basic-module-include-paths/basic-module-include-paths.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "Basic Module Include Paths Support ({\"sass\": \"1.54.0\"}) should render the module", - "Basic Module Include Paths Support ({\"sass-embedded\": \"1.75.0\"}) should render the module" - ] - }, - "test/e2e/app-dir/scss/basic-module-prepend-data/basic-module-prepend-data.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "Basic Module Prepend Data Support ({\"sass\": \"1.54.0\"}) should render the module", - "Basic Module Prepend Data Support ({\"sass-embedded\": \"1.75.0\"}) should render the module" - ] - }, - "test/e2e/app-dir/scss/basic-module/basic-module.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "Basic SCSS Module Support ({\"sass\": \"1.54.0\"}) should render the module", - "Basic SCSS Module Support ({\"sass-embedded\": \"1.75.0\"}) should render the module" - ] - }, - "test/e2e/app-dir/scss/catch-all-module/catch-all-module.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "Catch-all Route CSS Module Usage ({\"sass\": \"1.54.0\"}) should render the module", - "Catch-all Route CSS Module Usage ({\"sass-embedded\": \"1.75.0\"}) should render the module" - ] - }, - "test/e2e/app-dir/scss/composes-basic/composes-basic.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "CSS Module Composes Usage (Basic) ({\"sass\": \"1.54.0\"}) should render the module", - "CSS Module Composes Usage (Basic) ({\"sass-embedded\": \"1.75.0\"}) should render the module" - ] - }, - "test/e2e/app-dir/scss/composes-external/composes-external.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "CSS Module Composes Usage (External) ({\"sass\": \"1.54.0\"}) should render the module", - "CSS Module Composes Usage (External) ({\"sass-embedded\": \"1.75.0\"}) should render the module" - ] - }, - "test/e2e/app-dir/scss/data-url/data-url.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "SCSS Support loader handling Data Urls ({\"sass\": \"1.54.0\"}) should render the module", - "SCSS Support loader handling Data Urls ({\"sass-embedded\": \"1.75.0\"}) should render the module" - ] - }, - "test/e2e/app-dir/scss/dev-module/dev-module.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "Has CSS Module in computed styles in Development ({\"sass\": \"1.54.0\"}) should have CSS for page", - "Has CSS Module in computed styles in Development ({\"sass-embedded\": \"1.75.0\"}) should have CSS for page" - ] - }, - "test/e2e/app-dir/scss/dynamic-route-module/dynamic-route-module.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "Dynamic Route CSS Module Usage ({\"sass\": \"1.54.0\"}) should apply styles correctly", - "Dynamic Route CSS Module Usage ({\"sass-embedded\": \"1.75.0\"}) should apply styles correctly" - ] - }, - "test/e2e/app-dir/scss/external-url/external-url.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "SCSS Support loader handling External imports ({\"sass\": \"1.54.0\"}) should include font on the page", - "SCSS Support loader handling External imports ({\"sass-embedded\": \"1.75.0\"}) should include font on the page" - ] - }, - "test/e2e/app-dir/scss/loader-order/loader-order.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "SCSS Support loader handling Preprocessor loader order ({\"sass\": \"1.54.0\"}) should render the module", - "SCSS Support loader handling Preprocessor loader order ({\"sass-embedded\": \"1.75.0\"}) should render the module" - ] - }, - "test/e2e/app-dir/scss/multi-global-reversed/multi-global-reversed.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "(SCSS) Multi Global Support (reversed) ({\"sass\": \"1.54.0\"}) should render the page", - "(SCSS) Multi Global Support (reversed) ({\"sass-embedded\": \"1.75.0\"}) should render the page" - ] - }, - "test/e2e/app-dir/scss/multi-global/multi-global.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "Multi Global Support ({\"sass\": \"1.54.0\"}) should render the page", - "Multi Global Support ({\"sass-embedded\": \"1.75.0\"}) should render the page" - ] - }, - "test/e2e/app-dir/scss/multi-page/multi-page.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "SCSS Support ({\"sass\": \"1.54.0\"}) Has CSS in computed styles in Development should have CSS for page", - "SCSS Support ({\"sass\": \"1.54.0\"}) Has CSS in computed styles in Production should have CSS for page", - "SCSS Support ({\"sass-embedded\": \"1.75.0\"}) Has CSS in computed styles in Development should have CSS for page", - "SCSS Support ({\"sass-embedded\": \"1.75.0\"}) Has CSS in computed styles in Production should have CSS for page" - ] - }, - "test/e2e/app-dir/scss/nested-global/nested-global.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "Nested @import() Global Support ({\"sass\": \"1.54.0\"}) should render the page", - "Nested @import() Global Support ({\"sass-embedded\": \"1.75.0\"}) should render the page" - ] - }, - "test/e2e/app-dir/scss/nm-module-nested/nm-module-nested.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "Valid Nested CSS Module Usage from within node_modules ({\"sass\": \"1.54.0\"}) should render the page", - "Valid Nested CSS Module Usage from within node_modules ({\"sass-embedded\": \"1.75.0\"}) should render the page" - ] - }, - "test/e2e/app-dir/scss/nm-module/nm-module.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "Valid CSS Module Usage from within node_modules ({\"sass\": \"1.54.0\"}) should render the page", - "Valid CSS Module Usage from within node_modules ({\"sass-embedded\": \"1.75.0\"}) should render the page" - ] - }, - "test/e2e/app-dir/scss/npm-import-nested/npm-import-nested.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "Good Nested CSS Import from node_modules ({\"sass\": \"1.54.0\"}) should render the page", - "Good Nested CSS Import from node_modules ({\"sass-embedded\": \"1.75.0\"}) should render the page" - ] - }, - "test/e2e/app-dir/scss/npm-import-tilde/npm-import-tilde.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "Good CSS Import from node_modules with tilde ({\"sass\": \"1.54.0\"}) should render the page", - "Good CSS Import from node_modules with tilde ({\"sass-embedded\": \"1.75.0\"}) should render the page" - ] - }, - "test/e2e/app-dir/scss/npm-import/npm-import.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "Good CSS Import from node_modules ({\"sass\": \"1.54.0\"}) should render the page", - "Good CSS Import from node_modules ({\"sass-embedded\": \"1.75.0\"}) should render the page" - ] - }, - "test/e2e/app-dir/scss/prod-module/prod-module.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "Has CSS Module in computed styles in Production ({\"sass\": \"1.54.0\"}) should render the page", - "Has CSS Module in computed styles in Production ({\"sass-embedded\": \"1.75.0\"}) should render the page" - ] - }, - "test/e2e/app-dir/scss/single-global-src/single-global-src.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "Basic Global Support with src/ dir ({\"sass\": \"1.54.0\"}) should render the page", - "Basic Global Support with src/ dir ({\"sass-embedded\": \"1.75.0\"}) should render the page" - ] - }, - "test/e2e/app-dir/scss/single-global/single-global.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "Basic Global Support scss ({\"sass\": \"1.54.0\"}) should render the page", - "Basic Global Support scss ({\"sass-embedded\": \"1.75.0\"}) should render the page" - ] - }, - "test/e2e/app-dir/scss/url-global-partial/url-global-partial.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "SCSS Support loader handling CSS URL via file-loader sass partial ({\"sass\": \"1.54.0\"}) should render the page", - "SCSS Support loader handling CSS URL via file-loader sass partial ({\"sass-embedded\": \"1.75.0\"}) should render the page" - ] - }, - "test/e2e/app-dir/scss/url-global/url-global.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "SCSS Support loader handling ({\"sass\": \"1.54.0\"}) CSS URL via `file-loader` should render the page", - "SCSS Support loader handling ({\"sass-embedded\": \"1.75.0\"}) CSS URL via `file-loader` should render the page" - ] - }, - "test/e2e/app-dir/scss/with-styled-jsx/with-styled-jsx.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "Ordering with styled-jsx ({\"sass\": \"1.54.0\"}) should have the correct color (css ordering)", - "Ordering with styled-jsx ({\"sass-embedded\": \"1.75.0\"}) should have the correct color (css ordering)" - ] - }, - "test/e2e/app-dir/searchparams-reuse-loading/searchparams-reuse-loading.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": ["searchparams-reuse-loading when aliasing is skipped should work for navigating to pages dir"] - }, "test/e2e/app-dir/segment-cache/memory-pressure/segment-cache-memory-pressure.test.ts": { "reason": "Failing on Next.js 16.2.1, not triaged yet", "cases": ["segment cache memory pressure does not leak memory when repeatedly triggering prefetches"] @@ -821,10 +553,6 @@ "reason": "Failing on Next.js 16.2.1, not triaged yet", "cases": ["turbopack-reports should render page importing sqlite3"] }, - "test/e2e/app-dir/underscore-ignore-app-paths/underscore-ignore-app-paths.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": ["underscore-ignore-app-paths should serve pages path with underscore"] - }, "test/e2e/app-dir/use-cache-metadata-route-handler/use-cache-metadata-route-handler.test.ts": { "reason": "Failing on Next.js 16.2.1, not triaged yet", "cases": [ @@ -840,8 +568,7 @@ "reason": "Failing on Next.js 16.2.1, not triaged yet", "cases": [ "use-params should work for nested dynamic params", - "use-params should work for nested dynamic params client navigating", - "use-params should work on pages router" + "use-params should work for nested dynamic params client navigating" ] }, "test/e2e/app-dir/with-exported-function-config/with-exported-function-config.test.ts": { @@ -864,21 +591,13 @@ "cases": [ "Async modules can render async 404 pages", "Async modules can render async error page", - "Async modules csr async page modules", - "Async modules ssr async page modules", "Async modules works on async api routes", "Async modules works with getServerSideProps" ] }, - "test/e2e/babel/index.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": ["Babel Should compile a page with flowtype correctly"] - }, "test/e2e/basepath/error-pages.test.ts": { "reason": "Failing on Next.js 16.2.1, not triaged yet", "cases": [ - "basePath client-side navigation should navigate to /404 correctly client-side", - "basePath client-side navigation should navigate to /_error correctly client-side", "basePath manually added basePath in application logic should 404 when manually adding basePath with ", "basePath manually added basePath in application logic should 404 when manually adding basePath with router.push", "basePath manually added basePath in application logic should 404 when manually adding basePath with router.replace" @@ -896,35 +615,19 @@ "basePath query/hash handling is correct during query updating #a ?hello=", "basePath query/hash handling is correct during query updating #a ?hello=world", "basePath query/hash handling is correct during query updating #hello? $search", - "basePath query/hash handling is correct during query updating #hello?world $search", - "basePath query/hash handling should work with hash links" + "basePath query/hash handling is correct during query updating #hello?world $search" ] }, "test/e2e/basepath/redirect-and-rewrite.test.ts": { "reason": "Failing on Next.js 16.2.1, not triaged yet", "cases": [ - "basePath should not redirect with basePath when set to false", - "basePath should not rewrite with basePath when set to false", "basePath should rewrite with basePath by default", "basePath should rewrite without basePath when set to false" ] }, "test/e2e/basepath/router-events.test.ts": { "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "basePath should use urls with basepath in router events", - "basePath should use urls with basepath in router events for cancelled routes", - "basePath should use urls with basepath in router events for failed route change", - "basePath should use urls with basepath in router events for hash changes" - ] - }, - "test/e2e/basepath/trailing-slash.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": ["basePath + trailingSlash should allow URL query strings without refresh"] - }, - "test/e2e/browserslist-extends/index.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": ["browserslist-extends should work"] + "cases": ["basePath should use urls with basepath in router events for failed route change"] }, "test/e2e/cache-handlers-upstream-wiring/index.test.ts": { "reason": "The edge runtime is not supported" @@ -932,10 +635,6 @@ "test/e2e/cancel-request/stream-cancel.test.ts": { "reason": "The edge runtime is not supported" }, - "test/e2e/children-page/index.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": ["children-page with pages dir should show the content if you have a page named children"] - }, "test/e2e/chrome-devtools-workspace/chrome-devtools-workspace-custom-disable.test.ts": { "reason": "Failing on Next.js 16.2.1, not triaged yet", "cases": ["chrome-devtools-workspace custom disable can be disabled by providing your own endpoint"] @@ -948,10 +647,6 @@ "reason": "Failing on Next.js 16.2.1, not triaged yet", "cases": ["promise export should work"] }, - "test/e2e/css-data-url-global-pages/css-data-url-global-pages.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": ["css-data-url-global-pages should apply styles from data url correctly"] - }, "test/e2e/deferred-entries/deferred-entries.test.ts": { "reason": "The edge runtime is not supported" }, @@ -961,10 +656,6 @@ "deprecation-warnings without next.config.js should not emit any deprecation warnings when no config file exists" ] }, - "test/e2e/disable-js-preload/test/index.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": ["disabled JS preloads should render the page"] - }, "test/e2e/edge-api-endpoints-can-receive-body/index.test.ts": { "reason": "The edge runtime is not supported" }, @@ -1002,9 +693,7 @@ "reason": "Failing on Next.js 16.2.1, not triaged yet", "cases": [ "esm-externals pages url /ssr should render the correct page", - "esm-externals pages url /ssr should return the correct SSR HTML", - "esm-externals pages url /static should render the correct page", - "esm-externals pages url /static should return the correct SSR HTML" + "esm-externals pages url /ssr should return the correct SSR HTML" ] }, "test/e2e/fetch-failures-have-good-stack-traces-in-edge-runtime/fetch-failures-have-good-stack-traces-in-edge-runtime.test.ts": { @@ -1036,15 +725,6 @@ "reason": "Failing on Next.js 16.2.1, not triaged yet", "cases": ["handle-non-hoisted-swc-helpers should work"] }, - "test/e2e/hello-world/hello-world.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "hello-world should work using browser", - "hello-world should work using cheerio", - "hello-world should work with fetch", - "hello-world should work with html" - ] - }, "test/e2e/i18n-default-locale-redirect/i18n-default-locale-redirect.test.ts": { "reason": "Failing on Next.js 16.2.1, not triaged yet", "cases": [ @@ -1073,27 +753,6 @@ "i18n-ignore-redirect-source-locale with basepath get redirected to the new page, from: /sv to: sv" ] }, - "test/e2e/i18n-ignore-redirect-source-locale/redirects.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "i18n-ignore-redirect-source-locale get redirected to the new page, from and to: ", - "i18n-ignore-redirect-source-locale get redirected to the new page, from and to: /en", - "i18n-ignore-redirect-source-locale get redirected to the new page, from and to: /nl", - "i18n-ignore-redirect-source-locale get redirected to the new page, from and to: /sv", - "i18n-ignore-redirect-source-locale get redirected to the new page, from: to: /", - "i18n-ignore-redirect-source-locale get redirected to the new page, from: to: en", - "i18n-ignore-redirect-source-locale get redirected to the new page, from: to: sv", - "i18n-ignore-redirect-source-locale get redirected to the new page, from: /en to: /", - "i18n-ignore-redirect-source-locale get redirected to the new page, from: /en to: en", - "i18n-ignore-redirect-source-locale get redirected to the new page, from: /en to: sv", - "i18n-ignore-redirect-source-locale get redirected to the new page, from: /nl to: /", - "i18n-ignore-redirect-source-locale get redirected to the new page, from: /nl to: en", - "i18n-ignore-redirect-source-locale get redirected to the new page, from: /nl to: sv", - "i18n-ignore-redirect-source-locale get redirected to the new page, from: /sv to: /", - "i18n-ignore-redirect-source-locale get redirected to the new page, from: /sv to: en", - "i18n-ignore-redirect-source-locale get redirected to the new page, from: /sv to: sv" - ] - }, "test/e2e/i18n-ignore-rewrite-source-locale/rewrites.test.ts": { "reason": "Failing on Next.js 16.2.1, not triaged yet", "cases": [ @@ -1116,31 +775,9 @@ "i18-preferred-locale-redirect should not request a path prefixed with my preferred detected locale when clicking link to index from a non-locale-prefixed path" ] }, - "test/e2e/ignore-invalid-popstateevent/with-i18n.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "i18n: Event with stale state - static route previously was dynamic Don't ignore event with different locale", - "i18n: Event with stale state - static route previously was dynamic Ignore event with query param", - "i18n: Event with stale state - static route previously was dynamic Ignore event without query param" - ] - }, - "test/e2e/ignore-invalid-popstateevent/without-i18n.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "Event with stale state - static route previously was dynamic Ignore event with query param", - "Event with stale state - static route previously was dynamic Ignore event without query param" - ] - }, "test/e2e/import-conditions/import-conditions.test.ts": { "reason": "The edge runtime is not supported" }, - "test/e2e/import-meta/import-meta.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "import-meta import.meta.url should work in browser", - "import-meta import.meta.url should work on the server" - ] - }, "test/e2e/instrumentation-client-hook/instrumentation-client-hook.test.ts": { "reason": "Failing on Next.js 16.2.1, not triaged yet", "cases": [ @@ -1193,44 +830,13 @@ "invalid-static-asset-404-pages should return custom 404 page when fetching invalid non-asset path" ] }, - "test/e2e/legacy-link-behavior-pages/index.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "Link with legacyBehavior errors when calling onClick without the event", - "Link with legacyBehavior if the child is an tag forwards the href attribute", - "Link with legacyBehavior if the child is an tag navigates correctly", - "Link with legacyBehavior passHref forwards the href attribute", - "Link with legacyBehavior passHref navigates correctly", - "Link with legacyBehavior works if the child is a number", - "Link with legacyBehavior works if the child is a string" - ] - }, - "test/e2e/link-on-navigate-prop/index.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - " onNavigate prop Pages Router should only trigger both onClick for external links", - " onNavigate prop Pages Router should only trigger onClick for download links", - " onNavigate prop Pages Router should only trigger onClick for external links with target=\"_blank\"", - " onNavigate prop Pages Router should prevent navigation when onNavigate calls preventDefault", - " onNavigate prop Pages Router should replace history state for external links with replace prop", - " onNavigate prop Pages Router should trigger both onClick and onNavigate for internal navigation", - " onNavigate prop Pages Router should trigger onClick but not onNavigate when using modifier key" - ] - }, "test/e2e/link-with-api-rewrite/index.test.ts": { "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "link-with-api-rewrite should perform hard navigation for direct urls", - "link-with-api-rewrite should perform hard navigation for rewritten urls" - ] + "cases": ["link-with-api-rewrite should perform hard navigation for rewritten urls"] }, "test/e2e/middleware-base-path/test/index.test.ts": { "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "Middleware base tests router.query must exist when Link clicked page routing", - "Middleware base tests should allow client-side navigation to the root", - "Middleware base tests should execute from absolute paths" - ] + "cases": ["Middleware base tests router.query must exist when Link clicked page routing"] }, "test/e2e/middleware-custom-matchers/test/index.test.ts": { "reason": "Failing on Next.js 16.2.1, not triaged yet", @@ -1268,34 +874,20 @@ "reason": "Failing on Next.js 16.2.1, not triaged yet", "cases": [ "Middleware Redirect /fr should implement internal redirects", - "Middleware Redirect /fr should redirect", - "Middleware Redirect /fr should redirect multiple times", - "Middleware Redirect /fr should redirect to api route with locale", - "Middleware Redirect /fr should redirect with a fragment", "Middleware Redirect should implement internal redirects", - "Middleware Redirect should redirect", "Middleware Redirect should redirect correctly with redirect in next.config.js", - "Middleware Redirect should redirect multiple times", "Middleware Redirect should redirect to api route with locale", - "Middleware Redirect should redirect to external urls with data requests and external redirects", - "Middleware Redirect should redirect with a fragment" + "Middleware Redirect should redirect to external urls with data requests and external redirects" ] }, "test/e2e/middleware-redirects/test/node-runtime.test.ts": { "reason": "Failing on Next.js 16.2.1, not triaged yet", "cases": [ "Middleware Redirect /fr should implement internal redirects", - "Middleware Redirect /fr should redirect", - "Middleware Redirect /fr should redirect multiple times", - "Middleware Redirect /fr should redirect to api route with locale", - "Middleware Redirect /fr should redirect with a fragment", "Middleware Redirect should implement internal redirects", - "Middleware Redirect should redirect", "Middleware Redirect should redirect correctly with redirect in next.config.js", - "Middleware Redirect should redirect multiple times", "Middleware Redirect should redirect to api route with locale", - "Middleware Redirect should redirect to external urls with data requests and external redirects", - "Middleware Redirect should redirect with a fragment" + "Middleware Redirect should redirect to external urls with data requests and external redirects" ] }, "test/e2e/middleware-request-header-overrides/test/index.test.ts": { @@ -1304,18 +896,11 @@ "test/e2e/middleware-rewrites/test/index.test.ts": { "reason": "Failing on Next.js 16.2.1, not triaged yet", "cases": [ - "Middleware Rewrite /fr should correctly rewriting to a different dynamic path", - "Middleware Rewrite should behave consistently on recursive rewrites", - "Middleware Rewrite should correctly rewriting to a different dynamic path", "Middleware Rewrite should hard navigate on 404 for data request", "Middleware Rewrite should override with rewrite externally correctly", "Middleware Rewrite should rewrite to fallback: true page successfully" ] }, - "test/e2e/middleware-shallow-link/index.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": ["browser-shallow-navigation should render the correct page"] - }, "test/e2e/middleware-static-files/index.test.ts": { "reason": "Failing on Next.js 16.2.1, not triaged yet", "cases": [ @@ -1351,22 +936,6 @@ "test/e2e/module-layer/module-layer.test.ts": { "reason": "The edge runtime is not supported" }, - "test/e2e/new-link-behavior/child-a-tag-error.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": ["New Link Behavior with child should throw error with child"] - }, - "test/e2e/new-link-behavior/index.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "New Link Behavior should handle onclick", - "New Link Behavior should handle preventdefault", - "New Link Behavior should navigate to /about", - "New Link Behavior should render link with ", - "New Link Behavior should render link with classname", - "New Link Behavior should render link with id", - "New Link Behavior should render link with multiple children" - ] - }, "test/e2e/next-form/default/app-dir.test.ts": { "reason": "Failing on Next.js 16.2.1, not triaged yet", "cases": [ @@ -1376,38 +945,6 @@ "next-form - app dir functions passed to formAction runs server action from submitter and doesn't warn about unsupported attributes" ] }, - "test/e2e/next-form/default/pages-dir.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "next-form - pages dir does not navigate if preventDefault is called in onSubmit", - "next-form - pages dir does not push a new history entry if `replace` is passed", - "next-form - pages dir functions passed to action runs client action", - "next-form - pages dir functions passed to formAction runs client action from submitter and doesn't warn about unsupported attributes", - "next-form - pages dir should soft-navigate on submit", - "next-form - pages dir should soft-navigate to the formAction url of the submitter", - "next-form - pages dir unsupported attributes on submitter should warn if submitter sets \"formEncType\" to an unsupported value and fall back to default submit behavior", - "next-form - pages dir unsupported attributes on submitter should warn if submitter sets \"formMethod\" to an unsupported value and fall back to default submit behavior", - "next-form - pages dir unsupported attributes on submitter should warn if submitter sets \"formTarget\" to an unsupported value and fall back to default submit behavior", - "next-form - pages dir url-encodes file inputs, but warns about them" - ] - }, - "test/e2e/next-head/index.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "next/head should have correct head tags after hydration", - "next/head should have correct head tags from a fragment", - "next/head should have correct head tags in initial document", - "next/head should have current head tags from a _document getInitialProps", - "next/head should place charset element at the top of " - ] - }, - "test/e2e/nonce-head-manager/index.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "nonce head manager should not re-execute the script when re-rendering", - "nonce head manager should not re-execute the script when re-rendering with CSP header" - ] - }, "test/e2e/og-api/index.test.ts": { "reason": "The edge runtime is not supported" }, @@ -1420,30 +957,12 @@ "test/e2e/on-request-error/server-action-error/server-action-error.test.ts": { "reason": "The edge runtime is not supported" }, - "test/e2e/opentelemetry/client-trace-metadata/client-trace-metadata.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "clientTraceMetadata pages router next start only soft navigating to a dynamic page should not transform previous propagation data", - "clientTraceMetadata pages router next start only soft navigating to a static page should not transform previous propagation data" - ] - }, "test/e2e/opentelemetry/instrumentation/instrumentation-pages-app-only.test.ts": { "reason": "The edge runtime is not supported" }, "test/e2e/opentelemetry/instrumentation/opentelemetry.test.ts": { "reason": "The edge runtime is not supported" }, - "test/e2e/optimized-loading/test/index.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "Optimized loading page / should load scripts with defer in head", - "Optimized loading page / should render the page /" - ] - }, - "test/e2e/postcss-config-package/index.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": ["postcss-config-json works with postcss config specified in package.json"] - }, "test/e2e/prerender-native-module.test.ts": { "reason": "Failing on Next.js 16.2.1, not triaged yet" }, @@ -1452,7 +971,6 @@ "cases": [ "Prerender should 404 for a missing catchall explicit route", "Prerender should navigate between pages successfully", - "Prerender should not have gsp in __NEXT_DATA__ for non-GSP page", "Prerender should respond with 405 for POST to static page", "Prerender should revalidate on-demand revalidate with preview cookie", "Prerender should support lazy catchall route", @@ -1476,10 +994,6 @@ "test/e2e/skip-trailing-slash-redirect/index.test.ts": { "reason": "The edge runtime is not supported" }, - "test/e2e/ssr-react-context/index.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": ["React Context should render a page with context"] - }, "test/e2e/streaming-ssr-edge/streaming-ssr-edge.test.ts": { "reason": "The edge runtime is not supported" }, @@ -1489,52 +1003,9 @@ "test/e2e/switchable-runtime/index.test.ts": { "reason": "The edge runtime is not supported" }, - "test/e2e/test-template/{{ toFileName name }}/{{ toFileName name }}.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "{{name}} should work using browser", - "{{name}} should work using cheerio", - "{{name}} should work with fetch", - "{{name}} should work with html" - ] - }, - "test/e2e/test-utils-tests/basic/basic.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": ["nextTestSetup should work"] - }, "test/e2e/testmode/testmode.test.ts": { "reason": "The edge runtime is not supported" }, - "test/e2e/trailing-slashes/with-trailing-slash.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "Trailing slashes with trailingSlash: true / should client side render /index.js, with router path /", - "Trailing slashes with trailingSlash: true / should resolve to /index.js, with router path /", - "Trailing slashes with trailingSlash: true /about/ should client side render /about.js, with router path /about", - "Trailing slashes with trailingSlash: true /about/ should resolve to /about.js, with router path /about", - "Trailing slashes with trailingSlash: true /about/?hello=world should client side render /about.js, with router path /about", - "Trailing slashes with trailingSlash: true /about/?hello=world should resolve to /about.js, with router path /about", - "Trailing slashes with trailingSlash: true /catch-all/hello/world/ should client side render /catch-all/[...slug].js, with router path /catch-all/[...slug]", - "Trailing slashes with trailingSlash: true /catch-all/hello/world/ should resolve to /catch-all/[...slug].js, with router path /catch-all/[...slug]" - ] - }, - "test/e2e/trailing-slashes/without-trailing-slash.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "Trailing slashes with trailingSlash: false / should client side render /index.js, with router path /", - "Trailing slashes with trailingSlash: false / should resolve to /index.js, with router path /", - "Trailing slashes with trailingSlash: false /about should client side render /about.js, with router path /about", - "Trailing slashes with trailingSlash: false /about should resolve to /about.js, with router path /about", - "Trailing slashes with trailingSlash: false /about?hello=world should client side render /about.js, with router path /about", - "Trailing slashes with trailingSlash: false /about?hello=world should resolve to /about.js, with router path /about", - "Trailing slashes with trailingSlash: false /catch-all/hello/world should client side render /catch-all/[...slug].js, with router path /catch-all/[...slug]", - "Trailing slashes with trailingSlash: false /catch-all/hello/world should resolve to /catch-all/[...slug].js, with router path /catch-all/[...slug]" - ] - }, - "test/e2e/tsconfig-path/index.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": ["specified tsconfig pages router: allows a user-specific tsconfig via the next config"] - }, "test/e2e/twoslash/index.test.ts": { "reason": "Failing on Next.js 16.2.1, not triaged yet", "cases": [ @@ -1542,38 +1013,7 @@ "twoslash should annotate twoslash types esnext" ] }, - "test/e2e/type-module-interop/index.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "Type module interop should render server-side", - "Type module interop should render server-side with modules" - ] - }, - "test/e2e/typescript-custom-tsconfig/test/index.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": ["Custom TypeScript Config pages router: allows a user-specific tsconfig via the next config"] - }, "test/e2e/url/url.test.ts": { "reason": "The edge runtime is not supported" - }, - "test/e2e/use-router-with-rewrites/use-router-with-rewrites.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "use-router-with-rewrites rewrite to another segment should preserve current pathname when using Link with rewrites on dynamic route", - "use-router-with-rewrites rewrite to another segment should preserve current pathname when using useRouter.push with rewrites on dynamic route", - "use-router-with-rewrites rewrite to another segment should preserve current pathname when using useRouter.replace with rewrites on dynamic route", - "use-router-with-rewrites rewrite to same segment should preserve current pathname when using Link with rewrites on dynamic route", - "use-router-with-rewrites rewrite to same segment should preserve current pathname when using useRouter.push with rewrites on dynamic route", - "use-router-with-rewrites rewrite to same segment should preserve current pathname when using useRouter.replace with rewrites on dynamic route", - "use-router-with-rewrites should preserve current pathname when using Link with rewrites", - "use-router-with-rewrites should preserve current pathname when using useRouter.push with rewrites", - "use-router-with-rewrites should preserve current pathname when using useRouter.replace with rewrites" - ] - }, - "test/e2e/useselectedlayoutsegment-s-in-pages-router/useselectedlayoutsegment-s-in-pages-router.test.ts": { - "reason": "Failing on Next.js 16.2.1, not triaged yet", - "cases": [ - "useSelectedLayoutSegment(s) in Pages Router Should render with `useSelectedLayoutSegment(s) hooks" - ] } } From 575e0e2363a5c7a57fcb7b1618e96714d42a9a62 Mon Sep 17 00:00:00 2001 From: Nicolas Dorseuil Date: Mon, 2 Nov 2026 11:00:17 +0100 Subject: [PATCH 20/21] fix: route static pages with the base path and locales of the build Error pages under a base path or a locale were served as pages with a 200, the status set by a rewrite was replaced, and nested index pages were mapped to the wrong route. Co-Authored-By: Claude Opus 5.5 (1M context) --- .../core/src/build/createRoutingConfig.ts | 5 +- packages/core/src/build/staticPages.ts | 49 +++++++++++---- .../core/src/core/routing/adapterHandler.ts | 5 +- .../core/src/plugins/inlineRouteHandlers.ts | 10 ++- .../tests/build/staticPages.test.ts | 61 ++++++++++++++++--- .../routing/adapterHandler.staticPage.test.ts | 12 +++- 6 files changed, 114 insertions(+), 28 deletions(-) diff --git a/packages/core/src/build/createRoutingConfig.ts b/packages/core/src/build/createRoutingConfig.ts index c669233b..eef26956 100644 --- a/packages/core/src/build/createRoutingConfig.ts +++ b/packages/core/src/build/createRoutingConfig.ts @@ -143,7 +143,10 @@ export function createRoutingConfig( // The set has to be snapshotted before the prerendered pathnames are indexed - they are servable // but not executable, and may never be the resolution target of another prerendered pathname. const executableRoutes = new Set(Object.keys(routeIndex)); - const staticPageRoutes = getStaticPages(context.outputs).map(({ route }) => route); + const staticPageRoutes = getStaticPages(context.outputs, { + basePath: context.config.basePath, + locales: context.config.i18n?.locales, + }).map(({ route }) => route); for (const route of staticPageRoutes) { routeIndex[route] = { type: "static", isFallback: false, isISR: false }; } diff --git a/packages/core/src/build/staticPages.ts b/packages/core/src/build/staticPages.ts index 73f27b5a..4c2e5427 100644 --- a/packages/core/src/build/staticPages.ts +++ b/packages/core/src/build/staticPages.ts @@ -6,26 +6,49 @@ export type StaticPage = { filePath: string; }; +export type StaticPageOptions = { + basePath?: string; + locales?: string[]; +}; + const ERROR_PAGES = new Set(["/404", "/500"]); +/** Inverse of the `normalizePagePath` of Next.js, which prefixes `/index` to the pages starting with it. */ +function denormalizePagePath(page: string): string { + if (page === "/index") { + return "/"; + } + return page.startsWith("/index/") ? page.slice("/index".length) : page; +} + /** * Lists the pages Next.js fully rendered to HTML at build time, i.e. pages without data fetching. * - * Next.js reports them as static files with no route to reach them, and with `/index` as the pathname - * of an index page. The html files of the public directory are static files too, those are assets - * whose pathname is their file name. + * Next.js reports them as static files with no route to reach them. Their pathname holds the base path, + * the locale and the page path as Next.js normalizes it, `/index` for the index page. The html files of + * the public directory are static files too, those are assets whose pathname is their file name. * * @param outputs The outputs of the build. + * @param options The base path and the locales of the build. * @returns The pages, with the pathname they are served on. */ -export function getStaticPages(outputs: Pick): StaticPage[] { - return (outputs.staticFiles ?? []) - .filter( - ({ pathname, filePath }) => - filePath.endsWith(".html") && !pathname.endsWith(".html") && !ERROR_PAGES.has(pathname) - ) - .map(({ pathname, filePath }) => ({ - route: pathname.replace(/\/index$/, "") || "/", - filePath, - })); +export function getStaticPages( + outputs: Pick, + { basePath = "", locales = [] }: StaticPageOptions = {} +): StaticPage[] { + return (outputs.staticFiles ?? []).flatMap(({ pathname, filePath }) => { + if (!filePath.endsWith(".html") || pathname.endsWith(".html")) { + return []; + } + let page = basePath && pathname.startsWith(basePath) ? pathname.slice(basePath.length) : pathname; + const segment = page.split("/")[1] ?? ""; + const locale = locales.includes(segment) ? `/${segment}` : ""; + page = page.slice(locale.length) || "/"; + // The error pages are rendered by the server with their status code, they are not routes. + if (ERROR_PAGES.has(page)) { + return []; + } + const route = denormalizePagePath(page); + return [{ route: `${basePath}${locale}${route === "/" ? "" : route}` || "/", filePath }]; + }); } diff --git a/packages/core/src/core/routing/adapterHandler.ts b/packages/core/src/core/routing/adapterHandler.ts index c3a68a23..83c36132 100644 --- a/packages/core/src/core/routing/adapterHandler.ts +++ b/packages/core/src/core/routing/adapterHandler.ts @@ -74,9 +74,10 @@ export function createStaticPageHandler(html: string) { if (req.method !== "GET" && !isHead) { res.statusCode = 405; res.setHeader("allow", "GET, HEAD"); - res.end(); + res.end("Method Not Allowed"); } else { - res.statusCode = 200; + // A rewrite can have set the status code, it applies to the page. + res.statusCode ||= 200; res.setHeader("content-type", "text/html; charset=utf-8"); res.end(isHead ? undefined : html); } diff --git a/packages/core/src/plugins/inlineRouteHandlers.ts b/packages/core/src/plugins/inlineRouteHandlers.ts index 07793a63..4056de70 100644 --- a/packages/core/src/plugins/inlineRouteHandlers.ts +++ b/packages/core/src/plugins/inlineRouteHandlers.ts @@ -1,5 +1,7 @@ import fs from "node:fs"; +import path from "node:path"; +import { loadConfig } from "@/config/util.js"; import type { NextAdapterOutputs } from "@/types/adapter.js"; import { getCrossPlatformPathRegex } from "@/utils/regex.js"; @@ -77,7 +79,13 @@ ${Object.entries(routeToHandlerPath) * @returns The JavaScript declaring the map. */ export function renderStaticPages(outputs: Pick): string { - const pages = getStaticPages(outputs).map(({ route, filePath }) => [ + const html = (outputs.staticFiles ?? []).find(({ filePath }) => filePath.includes("/server/pages/")); + // The routes have to match the ones of the routing config, which uses the config of the build. + const config = html + ? loadConfig(html.filePath.slice(0, html.filePath.indexOf("/server/pages/"))) + : undefined; + const options = { basePath: config?.basePath, locales: config?.i18n?.locales }; + const pages = getStaticPages(outputs, options).map(({ route, filePath }) => [ route, fs.readFileSync(filePath, "utf8"), ]); diff --git a/packages/tests-unit/tests/build/staticPages.test.ts b/packages/tests-unit/tests/build/staticPages.test.ts index aae5f1d2..808204f1 100644 --- a/packages/tests-unit/tests/build/staticPages.test.ts +++ b/packages/tests-unit/tests/build/staticPages.test.ts @@ -24,16 +24,35 @@ describe("getStaticPages", () => { }); it.each([ - ["/index", "/"], - ["/docs/index", "/docs"], - ["/en/index", "/en"], - ["/blog/index-of-posts", "/blog/index-of-posts"], - ])("serves %s on %s", (pathname, route) => { - const pages = getStaticPages(outputs(staticFile(pathname, `/app/.next/server/pages${pathname}.html`))); + ["/index", "/", {}], + ["/docs/index", "/docs", { basePath: "/docs" }], + ["/en/index", "/en", { locales: ["en", "fr"] }], + ["/docs/en/index", "/docs/en", { basePath: "/docs", locales: ["en"] }], + ["/index/index/foo", "/index/foo", {}], + ["/foo/index", "/foo/index", {}], + ["/blog/index-of-posts", "/blog/index-of-posts", {}], + ])("serves %s on %s", (pathname, route, options) => { + const pages = getStaticPages( + outputs(staticFile(pathname, `/app/.next/server/pages${pathname}.html`)), + options + ); expect(pages.map((page) => page.route)).toEqual([route]); }); + it.each([ + ["/en/404", { locales: ["en"] }], + ["/docs/500", { basePath: "/docs" }], + ["/docs/fr/404", { basePath: "/docs", locales: ["fr"] }], + ])("leaves out the error page %s", (pathname, options) => { + const pages = getStaticPages( + outputs(staticFile(pathname, `/app/.next/server/pages${pathname}.html`)), + options + ); + + expect(pages).toEqual([]); + }); + it("leaves out the error pages, which are not routes", () => { const pages = getStaticPages( outputs( @@ -63,12 +82,36 @@ describe("getStaticPages", () => { describe("renderStaticPages", () => { it("generates the content of the pages, whatever characters they hold", () => { - const dir = fs.mkdtempSync(path.join(os.tmpdir(), "static-pages-")); + const nextDir = fs.mkdtempSync(path.join(os.tmpdir(), "static-pages-")); + fs.mkdirSync(path.join(nextDir, "server/pages"), { recursive: true }); + fs.writeFileSync(path.join(nextDir, "required-server-files.json"), JSON.stringify({ config: {} })); const html = `

$& costs $1 \`now\`

\n`; - fs.writeFileSync(path.join(dir, "index.html"), html); + fs.writeFileSync(path.join(nextDir, "server/pages/index.html"), html); - const code = renderStaticPages(outputs(staticFile("/index", path.join(dir, "index.html")))); + const code = renderStaticPages( + outputs(staticFile("/index", path.join(nextDir, "server/pages/index.html"))) + ); expect(new Function(`${code}; return staticPages;`)()).toEqual({ "/": html }); }); + + it("keys the pages like the routing config, with the base path and locales of the build", () => { + const nextDir = fs.mkdtempSync(path.join(os.tmpdir(), "static-pages-")); + fs.mkdirSync(path.join(nextDir, "server/pages/en"), { recursive: true }); + fs.writeFileSync( + path.join(nextDir, "required-server-files.json"), + JSON.stringify({ config: { basePath: "/docs", i18n: { locales: ["en"], defaultLocale: "en" } } }) + ); + fs.writeFileSync(path.join(nextDir, "server/pages/en/index.html"), "en"); + fs.writeFileSync(path.join(nextDir, "server/pages/en/404.html"), "404"); + + const code = renderStaticPages( + outputs( + staticFile("/docs/en/index", path.join(nextDir, "server/pages/en/index.html")), + staticFile("/docs/en/404", path.join(nextDir, "server/pages/en/404.html")) + ) + ); + + expect(new Function(`${code}; return staticPages;`)()).toEqual({ "/docs/en": "en" }); + }); }); diff --git a/packages/tests-unit/tests/core/routing/adapterHandler.staticPage.test.ts b/packages/tests-unit/tests/core/routing/adapterHandler.staticPage.test.ts index 9b080ace..356a60b4 100644 --- a/packages/tests-unit/tests/core/routing/adapterHandler.staticPage.test.ts +++ b/packages/tests-unit/tests/core/routing/adapterHandler.staticPage.test.ts @@ -19,8 +19,9 @@ function createResponse() { return { res, headers, body: () => Buffer.concat(chunks).toString() }; } -async function serve(method: string) { +async function serve(method: string, statusCode = 0) { const response = createResponse(); + response.res.statusCode = statusCode; await createStaticPageHandler("

hello

").handler({ method } as never, response.res as never); return response; } @@ -46,6 +47,13 @@ describe("createStaticPageHandler", () => { expect(res.statusCode).toBe(405); expect(headers.allow).toBe("GET, HEAD"); - expect(body()).toBe(""); + expect(body()).toBe("Method Not Allowed"); + }); + + it("keeps the status set by a rewrite", async () => { + const { res, body } = await serve("GET", 403); + + expect(res.statusCode).toBe(403); + expect(body()).toBe("

hello

"); }); }); From 7c4238723b67633dae58efecd6b5f703e29a7ab4 Mon Sep 17 00:00:00 2001 From: Nicolas Dorseuil Date: Tue, 10 Nov 2026 22:38:20 +0100 Subject: [PATCH 21/21] ci: run the Next.js test suite on pull requests changing the packages Co-Authored-By: Claude Opus 5.5 --- .github/workflows/next-suite.yml | 39 +++-------------------------- packages/tests-next-suite/README.md | 2 +- 2 files changed, 5 insertions(+), 36 deletions(-) diff --git a/.github/workflows/next-suite.yml b/.github/workflows/next-suite.yml index 2997b09b..b5786dfe 100644 --- a/.github/workflows/next-suite.yml +++ b/.github/workflows/next-suite.yml @@ -9,10 +9,13 @@ on: description: Next.js ref (tag, branch or commit) default: v16.2.1 type: string + # The adapters' runtime is in the packages, a change there can make a test of the suite fail. pull_request: paths: + - ".github/actions/setup/**" - ".github/workflows/next-suite.yml" - - "packages/tests-next-suite/**" + - "packages/**" + - "pnpm-lock.yaml" concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -48,43 +51,9 @@ jobs: if: steps.next-cache.outputs.cache-hit != 'true' run: pnpm next-suite setup --ref "$NEXT_REF" - smoke: - name: Smoke (${{ matrix.target }}) - needs: next - if: github.event_name == 'pull_request' - runs-on: ubuntu-24.04 - timeout-minutes: 30 - strategy: - fail-fast: false - matrix: - target: [core, cloudflare] - steps: - - uses: actions/checkout@v7 - # These jobs run unlocked packages from npm, they must not save to a cache release jobs restore. - - uses: ./.github/actions/setup - with: - pnpm-cache: "false" - - - name: Restore the Next.js checkout - uses: actions/cache/restore@v6 - with: - path: | - packages/tests-next-suite/.cache/next.js - ~/.cache/ms-playwright - key: next-suite-${{ runner.os }}-${{ inputs.nextRef || 'v16.2.1' }} - fail-on-cache-miss: true - - - name: Install the browser dependencies - working-directory: ${{ env.NEXT_DIR }} - run: pnpm playwright install --with-deps chromium - - - name: Run the smoke test - run: pnpm next-suite run --target ${{ matrix.target }} --ref "$NEXT_REF" -c 1 test/e2e/app-dir/hello-world/hello-world.test.ts - suite: name: Suite (${{ matrix.target }} ${{ matrix.group }}/16) needs: next - if: github.event_name != 'pull_request' runs-on: ubuntu-24.04 timeout-minutes: 180 strategy: diff --git a/packages/tests-next-suite/README.md b/packages/tests-next-suite/README.md index 5429328c..dd51e8d9 100644 --- a/packages/tests-next-suite/README.md +++ b/packages/tests-next-suite/README.md @@ -64,7 +64,7 @@ A run warns about entries for files which no longer exist, as can happen after u ## CI -`.github/workflows/next-suite.yml` runs the whole suite nightly and on demand (with a `nextRef` input), split in 16 groups per target. Pull requests changing this package only run a smoke test. +`.github/workflows/next-suite.yml` runs the whole suite nightly and on demand (with a `nextRef` input), split in 16 groups per target. It also runs on the pull requests changing the packages, where a failing test fails the check. Each run uploads a `next-suite-disabled` artifact: the current lists with what failed in that run added to them. Entries already in a list are kept. To accept these failures, copy the files over `disabled/`.