Skip to content

Commit 73e4fce

Browse files
committed
Add initial RSC Framework Mode implementation
1 parent 94f345a commit 73e4fce

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+1885
-522
lines changed

integration/action-test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@ import {
77
} from "./helpers/create-fixture.js";
88
import type { Fixture, AppFixture } from "./helpers/create-fixture.js";
99
import { PlaywrightFixture, selectHtml } from "./helpers/playwright-fixture.js";
10-
import type { TemplateName } from "./helpers/vite.js";
10+
import { type TemplateName, reactRouterConfig } from "./helpers/vite.js";
1111

1212
const templateNames = [
1313
"vite-5-template",
1414
"rsc-parcel-framework",
15+
"rsc-vite-framework",
1516
] as const satisfies TemplateName[];
1617

1718
test.describe("actions", () => {
@@ -31,6 +32,9 @@ test.describe("actions", () => {
3132
fixture = await createFixture({
3233
templateName,
3334
files: {
35+
"react-router.config.ts": reactRouterConfig({
36+
viteEnvironmentApi: templateName.includes("rsc"),
37+
}),
3438
"app/routes/urlencoded.tsx": js`
3539
import { Form, useActionData } from "react-router";
3640

integration/catch-boundary-data-test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@ import {
77
} from "./helpers/create-fixture.js";
88
import type { Fixture, AppFixture } from "./helpers/create-fixture.js";
99
import { PlaywrightFixture } from "./helpers/playwright-fixture.js";
10-
import type { TemplateName } from "./helpers/vite.js";
10+
import { reactRouterConfig, type TemplateName } from "./helpers/vite.js";
1111

1212
const templateNames = [
1313
"vite-5-template",
1414
"rsc-parcel-framework",
15+
"rsc-vite-framework",
1516
] as const satisfies TemplateName[];
1617

1718
let ROOT_BOUNDARY_TEXT = "ROOT_TEXT" as const;
@@ -48,6 +49,9 @@ test.describe("ErrorBoundary (thrown responses)", () => {
4849
fixture = await createFixture({
4950
templateName,
5051
files: {
52+
"react-router.config.ts": reactRouterConfig({
53+
viteEnvironmentApi: templateName.includes("rsc"),
54+
}),
5155
"app/root.tsx": js`
5256
import {
5357
Links,

0 commit comments

Comments
 (0)