TanStackT
TanStack3mo ago
1 reply
hurt-tomato

Integration with MSW

Has anyone integrated MSW with a TanStack Start app successfully for mocking server functions? I guess I could build the URLs that are created from the server functions for the MSW handlers, but that would probably be flaky. Also, with the new serializer used in server functions, returning a mock response properly will be a real pain. Maybe there's a better way? Thanks!
Was this page helpful?