Skip to content

Commit 67de83f

Browse files
committed
Use stable Remix create commands on homepage
1 parent 40f6923 commit 67de83f

4 files changed

Lines changed: 12 additions & 14 deletions

File tree

‎app/actions/public/remix-landing/components/create-remix-command.test.browser.tsx‎

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ describe("CreateRemixCommand", () => {
2828

2929
await chooseRunner(result, "pnpm");
3030
expect(result.container.querySelector("code")?.textContent).toBe(
31-
`pnpm dlx remix@next new ${landingContent.projectDirectory}`,
31+
`pnpm dlx remix new ${landingContent.projectDirectory}`,
3232
);
3333

3434
await result.act(() => getCopyButton(result.container).click());
3535
expect(copiedText).toBe(
36-
`pnpm dlx remix@next new ${landingContent.projectDirectory}`,
36+
`pnpm dlx remix new ${landingContent.projectDirectory}`,
3737
);
3838
});
3939

@@ -53,9 +53,7 @@ describe("CreateRemixCommand", () => {
5353

5454
let copyButton = getCopyButton(result.container);
5555
await result.act(() => copyButton.click());
56-
expect(copiedText).toBe(
57-
`npx remix@next new ${landingContent.projectDirectory}`,
58-
);
56+
expect(copiedText).toBe(`npx remix new ${landingContent.projectDirectory}`);
5957

6058
await result.act(() => getRunnerButton(result.container).click());
6159
await chooseRunner(result, "pnpm");
@@ -65,7 +63,7 @@ describe("CreateRemixCommand", () => {
6563
});
6664

6765
expect(result.container.querySelector("code")?.textContent).toBe(
68-
`pnpm dlx remix@next new ${landingContent.projectDirectory}`,
66+
`pnpm dlx remix new ${landingContent.projectDirectory}`,
6967
);
7068
expect(copyButton.dataset.copyStatus).toBe("idle");
7169
expect(result.container.querySelector('[role="status"]')?.textContent).toBe(

‎app/actions/public/remix-landing/components/landing-nav.test.browser.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ describe("LandingNav", () => {
111111
});
112112

113113
expect(result.container.querySelector("code")?.textContent).toBe(
114-
`bunx remix@next new ${landingContent.projectDirectory}`,
114+
`bunx remix new ${landingContent.projectDirectory}`,
115115
);
116116
expect(onJump).not.toHaveBeenCalled();
117117
});

‎app/actions/public/remix-landing/landing-content.ts‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,30 +134,30 @@ export const packageRunners = [
134134
value: "npm",
135135
label: "npm",
136136
icon: "/landing/package-runner-npm.svg",
137-
command: `npx remix@next new ${landingContent.projectDirectory}`,
137+
command: `npx remix new ${landingContent.projectDirectory}`,
138138
},
139139
{
140140
value: "pnpm",
141141
label: "pnpm",
142142
icon: "/landing/package-runner-pnpm.svg",
143-
command: `pnpm dlx remix@next new ${landingContent.projectDirectory}`,
143+
command: `pnpm dlx remix new ${landingContent.projectDirectory}`,
144144
},
145145
{
146146
value: "yarn",
147147
label: "Yarn",
148148
icon: "/landing/package-runner-yarn.svg",
149-
command: `yarn dlx remix@next new ${landingContent.projectDirectory}`,
149+
command: `yarn dlx remix new ${landingContent.projectDirectory}`,
150150
},
151151
{
152152
value: "bun",
153153
label: "Bun",
154154
icon: "/landing/package-runner-bun.svg",
155-
command: `bunx remix@next new ${landingContent.projectDirectory}`,
155+
command: `bunx remix new ${landingContent.projectDirectory}`,
156156
},
157157
{
158158
value: "deno",
159159
label: "Deno",
160160
icon: "/landing/package-runner-deno.svg",
161-
command: `deno run -A npm:remix@next new ${landingContent.projectDirectory}`,
161+
command: `deno run -A npm:remix new ${landingContent.projectDirectory}`,
162162
},
163163
] as const;

‎test/home.test.e2e.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,9 @@ describe("Home", () => {
191191
await expect(trigger).toContainText("Bun");
192192
await expect(
193193
page.locator("code").filter({
194-
hasText: `bunx remix@next new ${landingContent.projectDirectory}`,
194+
hasText: `bunx remix new ${landingContent.projectDirectory}`,
195195
}),
196-
).toHaveText(`bunx remix@next new ${landingContent.projectDirectory}`);
196+
).toHaveText(`bunx remix new ${landingContent.projectDirectory}`);
197197
await expect(page).toHaveURL(new RegExp(`${routes.home.href()}$`));
198198
});
199199

0 commit comments

Comments
 (0)