James Restall
James Restall
Here's a sample remix.config.js I'm using to define routes in each Nx lib project under `libs/example-feature/src/lib/routes/` instead of defining all routes in `apps/remix-app/app/routes`. It also uses watchPaths to only watch...
@ShaikMaheer-MSFT Is there a workaround for this? I have a NextJS site behind Front Door that requires the Accept header be forwarded through on image requests so that it knows...
Hi freshollie, I'm not clear on the use case for this, can you please expand on the reason for calling the mock loader to return loader data rather than just...
Hi Oliver, yea I think that use case is out of scope for this library. remix-stubs is designed to help with the unit testing of a route component and not...
I don't know what the fix might be for jest but if you are okay switching to vitest it's been working for me. You would just need to install vitest...
Any workarounds for this issue in the meantime? I'm also getting errors when using opentelemetry with vite-node. @luxaritas did you resolve by pinning to an old version? ```bash /node_modules/@opentelemetry/resources/build/esm/platform/node/machine-id/getMachineId-darwin.js:52 import...
I've found that when using the jsdom environment on vitest as of version 0.25.3 the FormData workaround is no longer required due to this (https://github.com/vitest-dev/vitest/pull/2290) recent fix. Ryan your repro...
Hi @tpaulshippy, glad you found a workaround. I'll close this since you have a workaround and official remix testing helpers should be coming soon which should help with any TypeScript...
Hi Jan, you likely need to set the initial route to your `/some-non-existent-page` path so that it gets rendered. `render();`
Looks like Remix uses the [PrefetchPageLinks](https://github.com/remix-run/remix/blob/d6d0e2d9652a5aae6f95b6c73f3dccf71e91a282/packages/remix-react/components.tsx#L600) component to prefetch. Have you tried mocking the prefetch links by defining them in the routes?