Open ryanflorence opened 4 months ago
Main codemods
Thanks for creating codemods, will make converting a very large monorepo with several remix apps a lot easier.
Any love for the stub testing api changes? We have 1000's of imports that will need to change. Hopefully it's just the function name and not deeper breaking changes like the function parameters?
createRemixStub -> createRoutesStub
import { createRemixStub } from "@remix-run/testing"; -> import { createRoutesStub } from "react-router";
// Before
const RemixStub = createRemixStub([
{
path: "/accounts",
...
// After
const RoutesStub = createRoutesStub([
{
path: "/accounts",
...
Good catch! Added to the list above - we've already renamed to createRoutesStub
in the v7 code 👍
We already have
npx upgrade-remix
, could work like that.