Skip to content

Commit c71d59e

Browse files
authored
refactor unenv e2e tests now that workerd >= 20250901 (#10537)
1 parent 7211609 commit c71d59e

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

packages/wrangler/e2e/unenv-preset/preset.test.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,13 @@ const testConfigs: TestConfig[] = [
6767
enable_nodejs_http_modules: false,
6868
},
6969
},
70-
// TODO: add a config when http server is enabled by default (>= 2025-09-01)
70+
{
71+
name: "http server enabled by date",
72+
compatibilityDate: "2025-09-01",
73+
expectRuntimeFlags: {
74+
enable_nodejs_http_modules: true,
75+
},
76+
},
7177
{
7278
name: "http server enabled by flag",
7379
compatibilityDate: "2024-09-23",
@@ -80,10 +86,9 @@ const testConfigs: TestConfig[] = [
8086
enable_nodejs_http_server_modules: true,
8187
},
8288
},
83-
// TODO: change the date pass the default enabled date (>= 2025-09-01)
8489
{
8590
name: "http server disabled by flag",
86-
compatibilityDate: "2024-09-23",
91+
compatibilityDate: "2025-09-01",
8792
compatibilityFlags: [
8893
"enable_nodejs_http_modules",
8994
"disable_nodejs_http_server_modules",

0 commit comments

Comments
 (0)