Skip to content

Commit

Permalink
Move tests into core
Browse files Browse the repository at this point in the history
  • Loading branch information
mjackson committed Feb 11, 2021
1 parent f72ff8c commit 08eca96
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 18 deletions.
15 changes: 0 additions & 15 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
module.exports = {
projects: [
{
displayName: "architect",
testEnvironment: "node",
testMatch: ["<rootDir>/packages/architect/**/*-test.[jt]s?(x)"]
},
{
displayName: "cli",
testEnvironment: "node",
Expand All @@ -15,21 +10,11 @@ module.exports = {
testEnvironment: "node",
testMatch: ["<rootDir>/packages/core/**/*-test.[jt]s?(x)"]
},
{
displayName: "data",
testEnvironment: "node",
testMatch: ["<rootDir>/packages/data/**/*-test.[jt]s?(x)"]
},
{
displayName: "express",
testEnvironment: "node",
testMatch: ["<rootDir>/packages/express/**/*-test.[jt]s?(x)"]
},
{
displayName: "vercel",
testEnvironment: "node",
testMatch: ["<rootDir>/packages/vercel/**/*-test.[jt]s?(x)"]
},
{
displayName: "gists-app",
testEnvironment: "node",
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/core/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { Params } from "react-router";

import type { AppLoadContext, AppData, RouteModule } from "./buildModules";
import { Request, Response, isResponseLike } from "./fetch";
import { json } from "./responseHelpers";
import { json } from "./responses";

export async function loadRouteData(
routeId: string,
Expand Down
2 changes: 1 addition & 1 deletion packages/core/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export type {
PageLinkDescriptor
} from "./links";

export { json, redirect } from "./responseHelpers";
export { json, redirect } from "./responses";

export type { RouteManifest, DefineRoute, DefineRoutes } from "./routes";

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/core/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
import { Request, Response } from "./fetch";
import { getDocumentHeaders } from "./headers";
import { ConfigRouteMatch, matchRoutes } from "./match";
import { json, jsonError } from "./responseHelpers";
import { json, jsonError } from "./responses";

/**
* The main request handler for a Remix server. This handler runs in the context
Expand Down

0 comments on commit 08eca96

Please sign in to comment.