Skip to content

Commit

Permalink
tests: cleanup tests (#6999)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDeBoey authored Jul 31, 2023
1 parent 468a727 commit 61cbc75
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 23 deletions.
9 changes: 0 additions & 9 deletions integration/error-sanitization-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,6 @@ test.describe("Error Sanitization", () => {
test.beforeAll(async () => {
fixture = await createFixture(
{
config: {
future: {},
},
files: routeFiles,
},
ServerMode.Production
Expand Down Expand Up @@ -304,9 +301,6 @@ test.describe("Error Sanitization", () => {
test.beforeAll(async () => {
fixture = await createFixture(
{
config: {
future: {},
},
files: routeFiles,
},
ServerMode.Development
Expand Down Expand Up @@ -472,9 +466,6 @@ test.describe("Error Sanitization", () => {
test.beforeAll(async () => {
fixture = await createFixture(
{
config: {
future: {},
},
files: {
"app/entry.server.tsx": js`
import type { EntryContext } from "@remix-run/node";
Expand Down
4 changes: 0 additions & 4 deletions packages/remix-react/__tests__/deferred-scripts-test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,6 @@ describe("<Scripts /> with activeDeferreds", () => {
version: "",
},
// @ts-expect-error
// Enumerating all flags just to set them to false is overly brittle;
// we allow an empty object as a shortcut.
future: {},
// @ts-expect-error
// Similarly, we have no interest in the rest of the static handler
// context. We're not trying to write a test for React Router, we
// just want to trick <Scripts /> into thinking there's a need for
Expand Down
8 changes: 0 additions & 8 deletions packages/remix-server-runtime/__tests__/data-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ describe("loaders", () => {
},
},
entry: { module: {} },
future: {},
} as unknown as ServerBuild;

let handler = createRequestHandler(build);
Expand Down Expand Up @@ -62,7 +61,6 @@ describe("loaders", () => {
handleError() {},
},
},
future: {},
} as unknown as ServerBuild;

let handler = createRequestHandler(build);
Expand Down Expand Up @@ -102,7 +100,6 @@ describe("loaders", () => {
handleError() {},
},
},
future: {},
} as unknown as ServerBuild;

let handler = createRequestHandler(build);
Expand Down Expand Up @@ -145,7 +142,6 @@ describe("loaders", () => {
handleError() {},
},
},
future: {},
} as unknown as ServerBuild;

let handler = createRequestHandler(build);
Expand Down Expand Up @@ -187,7 +183,6 @@ describe("loaders", () => {
},
},
entry: { module: {} },
future: {},
} as unknown as ServerBuild;

let handler = createRequestHandler(build);
Expand Down Expand Up @@ -227,7 +222,6 @@ describe("loaders", () => {
handleError() {},
},
},
future: {},
} as unknown as ServerBuild;

let handler = createRequestHandler(build);
Expand Down Expand Up @@ -265,7 +259,6 @@ describe("loaders", () => {
},
},
entry: { module: {} },
future: {},
} as unknown as ServerBuild;

let handler = createRequestHandler(build);
Expand Down Expand Up @@ -300,7 +293,6 @@ describe("loaders", () => {
},
},
entry: { module: {} },
future: {},
} as unknown as ServerBuild;

let handler = createRequestHandler(build);
Expand Down
2 changes: 0 additions & 2 deletions packages/remix-server-runtime/__tests__/server-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ describe("server", () => {
},
},
},
future: {},
} as unknown as ServerBuild;

describe("createRequestHandler", () => {
Expand Down Expand Up @@ -139,7 +138,6 @@ describe("shared server runtime", () => {
loader: resourceLoader,
path: "resource",
},
future: {},
});
let handler = createRequestHandler(build, ServerMode.Test);

Expand Down

0 comments on commit 61cbc75

Please sign in to comment.