Skip to content

Commit 509a96d

Browse files
authored
Enable prefetch e2e test by migrating to vite (#12176)
1 parent fcc2b7a commit 509a96d

File tree

11 files changed

+494
-1232
lines changed

11 files changed

+494
-1232
lines changed

integration/helpers/create-fixture.ts

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -316,33 +316,14 @@ export async function createFixtureProject(
316316
init: FixtureInit = {},
317317
mode?: ServerMode
318318
): Promise<string> {
319-
let template = "node-template";
319+
let template = "vite-template";
320320
let integrationTemplateDir = path.resolve(__dirname, template);
321321
let projectName = `rr-${template}-${Math.random().toString(32).slice(2)}`;
322322
let projectDir = path.join(TMP_DIR, projectName);
323323
let port = init.port ?? (await getPort());
324324

325325
await fse.ensureDir(projectDir);
326326
await fse.copy(integrationTemplateDir, projectDir);
327-
// let reactRouterDev = path.join(
328-
// projectDir,
329-
// "node_modules/@react-router/dev/dist/cli/index.js"
330-
// );
331-
// await fse.chmod(reactRouterDev, 0o755);
332-
// await fse.ensureSymlink(
333-
// reactRouterDev,
334-
// path.join(projectDir, "node_modules/.bin/rr")
335-
// );
336-
//
337-
// let reactRouterServe = path.join(
338-
// projectDir,
339-
// "node_modules/@react-router/serve/dist/cli.js"
340-
// );
341-
// await fse.chmod(reactRouterServe, 0o755);
342-
// await fse.ensureSymlink(
343-
// reactRouterServe,
344-
// path.join(projectDir, "node_modules/.bin/react-router-serve")
345-
// );
346327

347328
let hasViteConfig = Object.keys(init.files ?? {}).some((filename) =>
348329
filename.startsWith("vite.config.")

integration/helpers/node-template/.gitignore

Lines changed: 0 additions & 6 deletions
This file was deleted.

integration/helpers/node-template/app/root.tsx

Lines changed: 0 additions & 19 deletions
This file was deleted.

integration/helpers/node-template/app/routes.ts

Lines changed: 0 additions & 4 deletions
This file was deleted.

integration/helpers/node-template/app/routes/_index.tsx

Lines changed: 0 additions & 16 deletions
This file was deleted.

integration/helpers/node-template/package.json

Lines changed: 0 additions & 39 deletions
This file was deleted.
-16.6 KB
Binary file not shown.

integration/helpers/node-template/remix.env.d.ts

Lines changed: 0 additions & 2 deletions
This file was deleted.

integration/helpers/node-template/tsconfig.json

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)