Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,7 @@ describe("projects create integration", () => {
});
expect(out.stderrText).toContain("Selected org-id:");
expect(out.stderrText).toContain("Selected region:");
expect(out.promptSelectCalls[1]?.options[0]?.value).toBe("ap-northeast-1");
expect(api.requests.map(({ method, url }) => `${method} ${url}`)).toEqual([
`GET ${API}/v1/organizations`,
`POST ${API}/v1/projects`,
Expand Down
4 changes: 2 additions & 2 deletions apps/cli/src/commands/projects/projects.prompt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ const mapOrgsListError = mapHttpError({
statusMessage: (status, body) => `Unexpected error retrieving organizations: ${body} (${status})`,
});

// Order matches the `--region` enum choices.
/* `--region` enum order, with private ap-east-1 last so it is not the focused default. */
const REGION_CODES = [
"ap-east-1",
"ap-northeast-1",
"ap-northeast-2",
"ap-south-1",
Expand All @@ -39,6 +38,7 @@ const REGION_CODES = [
"us-east-2",
"us-west-1",
"us-west-2",
"ap-east-1",
] as const;

/**
Expand Down
Loading