Skip to content

Commit 07b3818

Browse files
authored
Add a playground16 example for Next 16 (#1051)
1 parent f8d97e6 commit 07b3818

39 files changed

+1084
-455
lines changed

examples/common/apps.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ const apps = [
55
"middleware",
66
"playground14",
77
"playground15",
8+
"playground16",
89
"vercel-blog-starter",
910
"ssg-app",
1011
"prisma",

examples/common/config-e2e.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { defineConfig, devices } from "@playwright/test";
2-
import { execSync } from "node:child_process";
32
import { getAppPort, getInspectorPort, type AppName } from "./apps";
43

54
declare const process: typeof nodeProcess;
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { configurePlaywright } from "../../common/config-e2e";
22

33
export default configurePlaywright("middleware", {
4-
isCI: !!process.env.CI,
54
isWorker: false,
65
});

examples/overrides/memory-queue/e2e/playwright.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { configurePlaywright } from "../../../common/config-e2e";
22

33
// Here we don't want to run the tests in parallel
44
export default configurePlaywright("memory-queue", {
5-
isCI: !!process.env.CI,
65
parallel: false,
76
multipleBrowsers: false,
87
});

examples/overrides/r2-incremental-cache/e2e/playwright.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { configurePlaywright } from "../../../common/config-e2e";
22

33
// Here we don't want to run the tests in parallel
44
export default configurePlaywright("r2-incremental-cache", {
5-
isCI: !!process.env.CI,
65
parallel: false,
76
multipleBrowsers: false,
87
});

examples/overrides/static-assets-incremental-cache/e2e/playwright.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@ import { configurePlaywright } from "../../../common/config-e2e";
22

33
// Here we don't want to run the tests in parallel
44
export default configurePlaywright("static-assets-incremental-cache", {
5-
isCI: !!process.env.CI,
65
parallel: false,
76
});

examples/playground14/e2e/instrumentation.spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { test, expect } from "@playwright/test";
2-
import { describe } from "node:test";
32

43
test.describe("instrumentation", () => {
54
test("the instrumentation register hook should work for the nodejs runtime", async ({ page }) => {
@@ -20,7 +19,7 @@ test.describe("instrumentation", () => {
2019

2120
// Note: we cannot test this since currently both runtimes share the same global scope
2221
// (see: https://github.com/opennextjs/opennextjs-cloudflare/issues/408)
23-
describe.skip("isolation", () => {
22+
test.describe.skip("isolation", () => {
2423
test("the instrumentation register hook nodejs logic should not effect edge routes", async ({ page }) => {
2524
const res = await page.request.get("/middleware-instrumentation");
2625
const respJson: Record<string, string> = await res.json();
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { configurePlaywright } from "../../common/config-e2e";
22

33
export default configurePlaywright("playground14", {
4-
isCI: !!process.env.CI,
54
isWorker: false,
65
});

examples/playground14/instrumentation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export function register() {
22
// Note: we register instrumentation for both the nodejs and edge runtime, we do that using the NEXT_RUNTIME env
33
// variable as recommended in the official docs:
4-
// https://nextjs.org/docs/app/building-your-application/optimizing/instrumentation#importing-runtime-specific-code
4+
// https://nextjs.org/docs/app/building-your-application/optimizing/instrumentation#importing-runtime-specific-code
55

66
if (process.env.NEXT_RUNTIME === "nodejs") {
77
globalThis["__NODEJS_INSTRUMENTATION_SETUP"] =

examples/playground15/e2e/instrumentation.spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { test, expect } from "@playwright/test";
2-
import { describe } from "node:test";
32

43
test.describe("instrumentation", () => {
54
test("the instrumentation register hook should work for the nodejs runtime", async ({ page }) => {
@@ -20,7 +19,7 @@ test.describe("instrumentation", () => {
2019

2120
// Note: we cannot test this since currently both runtimes share the same global scope
2221
// (see: https://github.com/opennextjs/opennextjs-cloudflare/issues/408)
23-
describe.skip("isolation", () => {
22+
test.describe.skip("isolation", () => {
2423
test("the instrumentation register hook nodejs logic should not effect edge routes", async ({ page }) => {
2524
const res = await page.request.get("/middleware-instrumentation");
2625
const respJson: Record<string, string> = await res.json();

0 commit comments

Comments
 (0)