Testing Frontend shows errors related to the file router

Hi everyone,

After migrating to the version 24.4 we noticed that the tests now show this warning (The file XYZ should contain a default export of a component) coming from the file router mechanism. Is it something we forgot to configure or is it supposed to detect automatically?

From the docs, if we kept the routes.tsx as it was it should be automatically detected as the previous routing option.

Hi @thiago.vidigal
I believe if you have a “custom” routes.tsx in the frontend directory, and there’s no sign of .withFileRoutes() API in it, it is valid to expect not to see those warnings.