Skip to content

Commit

Permalink
enable --x-registry in fixture tests
Browse files Browse the repository at this point in the history
  • Loading branch information
RamIdeas committed Oct 1, 2024
1 parent 2027aa0 commit c0f93db
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 3 deletions.
3 changes: 3 additions & 0 deletions fixtures/external-durable-objects-app/tests/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ describe.skip(
experimental: {
disableExperimentalWarning: true,
devEnv: true,
fileBasedRegistry: true,
},
});
await setTimeout(1000);
Expand All @@ -30,6 +31,7 @@ describe.skip(
experimental: {
disableExperimentalWarning: true,
devEnv: true,
fileBasedRegistry: true,
},
});
await setTimeout(1000);
Expand All @@ -38,6 +40,7 @@ describe.skip(
experimental: {
disableExperimentalWarning: true,
devEnv: true,
fileBasedRegistry: true,
},
});
await setTimeout(1000);
Expand Down
1 change: 1 addition & 0 deletions fixtures/external-service-bindings-app/tests/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ async function getWranglerInstance({
[
...(pages ? ["pages"] : []),
"dev",
"--x-dev-env",
"--x-registry",
...(pages ? ["public"] : ["index.ts"]),
"--local",
Expand Down
1 change: 1 addition & 0 deletions fixtures/get-platform-proxy/tests/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ export function getPlatformProxy<T>(
return originalGetPlatformProxy({
...options,
persist: false,
experimentalRegistry: true,
});
}
21 changes: 18 additions & 3 deletions fixtures/shared/src/run-wrangler-long-lived.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,28 @@ export async function runWranglerPagesDev(
) {
if (publicPath) {
return runLongLivedWrangler(
["pages", "dev", publicPath, "--x-dev-env", "--ip=127.0.0.1", ...options],
[
"pages",
"dev",
publicPath,
"--x-dev-env",
"--x-registry",
"--ip=127.0.0.1",
...options,
],
cwd,
env
);
} else {
return runLongLivedWrangler(
["pages", "dev", "--x-dev-env", "--ip=127.0.0.1", ...options],
[
"pages",
"dev",
"--x-dev-env",
"--x-registry",
"--ip=127.0.0.1",
...options,
],
cwd,
env
);
Expand All @@ -52,7 +67,7 @@ export async function runWranglerDev(
env?: NodeJS.ProcessEnv
) {
return runLongLivedWrangler(
["dev", "--x-dev-env", "--ip=127.0.0.1", ...options],
["dev", "--x-dev-env", "--x-registry", "--ip=127.0.0.1", ...options],
cwd,
env
);
Expand Down

0 comments on commit c0f93db

Please sign in to comment.