Skip to content

Commit

Permalink
test: update test
Browse files Browse the repository at this point in the history
Signed-off-by: Logan McAnsh <logan@mcan.sh>
  • Loading branch information
mcansh committed Mar 14, 2023
1 parent 1e35ff7 commit 265d6ec
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions packages/remix-dev/__tests__/flat-routes-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -672,12 +672,15 @@ describe("flatRoutes", () => {
});

test("nested index files", () => {
let testFiles = ["routes/_index/index.tsx", "routes/_index/utils.ts"];
let testFiles = [
path.join("routes", "_index", "index.tsx"),
path.join("routes", "_index", "utils.ts"),
];

let routeManifest = flatRoutesUniversal(
APP_DIR,
testFiles.map((file) => path.join(APP_DIR, normalizePath(file)))
);
// route manifest uses the full path
let fullPaths = testFiles.map((file) => path.join(APP_DIR, file));

let routeManifest = flatRoutesUniversal(APP_DIR, fullPaths);

let routes = Object.values(routeManifest);

Expand Down

0 comments on commit 265d6ec

Please sign in to comment.