Skip to content

Commit 1dab2d1

Browse files
committed
Remove installGlobals
1 parent 7fd797a commit 1dab2d1

File tree

16 files changed

+2
-94
lines changed

16 files changed

+2
-94
lines changed

integration/helpers/create-fixture.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import {
1515
UNSAFE_decodeViaTurboStream as decodeViaTurboStream,
1616
} from "react-router";
1717
import { createRequestHandler as createExpressHandler } from "@react-router/express";
18-
import { installGlobals } from "@react-router/node";
1918

2019
import { viteConfig } from "./vite.js";
2120

@@ -43,8 +42,6 @@ export function json(value: JsonObject) {
4342
}
4443

4544
export async function createFixture(init: FixtureInit, mode?: ServerMode) {
46-
installGlobals();
47-
4845
let projectDir = await createFixtureProject(init, mode);
4946
let buildPath = url.pathToFileURL(
5047
path.join(projectDir, "build/server/index.js")

integration/helpers/vite.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,8 @@ export const EXPRESS_SERVER = (args: {
6969
}) =>
7070
String.raw`
7171
import { createRequestHandler } from "@react-router/express";
72-
import { installGlobals } from "@react-router/node";
7372
import express from "express";
7473
75-
installGlobals();
76-
7774
let viteDevServer =
7875
process.env.NODE_ENV === "production"
7976
? undefined

integration/vite-basename-test.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,7 @@ const customServerFile = ({
9595

9696
return js`
9797
import { createRequestHandler } from "@react-router/express";
98-
import { installGlobals } from "@react-router/node";
9998
import express from "express";
100-
installGlobals();
10199
102100
const viteDevServer =
103101
process.env.NODE_ENV === "production"
@@ -488,9 +486,7 @@ test.describe("Vite base / React Router basename / express build", async () => {
488486
// Slim server that only serves basename (route) requests from the React Router handler
489487
"server.mjs": String.raw`
490488
import { createRequestHandler } from "@react-router/express";
491-
import { installGlobals } from "@react-router/node";
492489
import express from "express";
493-
installGlobals();
494490
495491
const app = express();
496492
app.all(

jest/jest.config.shared.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ module.exports = {
1919
),
2020
},
2121
modulePathIgnorePatterns: ignorePatterns,
22-
setupFiles: ["<rootDir>/__tests__/setup.ts"],
2322
testMatch: ["<rootDir>/**/*-test.[jt]s?(x)"],
2423
transform: {
2524
"\\.[jt]sx?$": require.resolve("./transform"),

packages/react-router-architect/__tests__/setup.ts

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

packages/react-router-express/__tests__/setup.ts

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

packages/react-router-node/__tests__/setup.ts

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

packages/react-router-node/globals.ts

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

packages/react-router-node/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
export { installGlobals } from "./globals";
2-
31
export { createFileSessionStorage } from "./sessions/fileStorage";
42

53
export {

packages/react-router-node/install.ts

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

0 commit comments

Comments
 (0)