Skip to content

Commit

Permalink
test: update hmr test to use flat routes, otherwise it'll fail due to…
Browse files Browse the repository at this point in the history
… the warning ending up in stderr

Signed-off-by: Logan McAnsh <logan@mcan.sh>
  • Loading branch information
mcansh committed Mar 6, 2023
1 parent d9a0228 commit b972de8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion integration/hmr-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ let fixture = (options: { port: number; appServerPort: number }) => ({
appServerPort: options.appServerPort,
},
unstable_tailwind: true,
v2_routeConvention: true,
},
files: {
"package.json": `
Expand Down Expand Up @@ -124,7 +125,7 @@ let fixture = (options: { port: number; appServerPort: number }) => ({
);
}
`,
"app/routes/index.tsx": `
"app/routes/_index.tsx": `
import { useLoaderData } from "@remix-run/react";
export default function Index() {
const t = useLoaderData();
Expand Down

0 comments on commit b972de8

Please sign in to comment.