Testing Workers and Pages simultaneously

I recently converted some code from CloudFlare Pages Functions to CloudFlare Workers. The workers operate on the same domain as the pages, using routes. This has complicated my development workflow though, which now exists out of using console.info on the Pages to dump all API payloads, and then using curl to send them to the worker. Is there an easier way to do this during development?
1 Reply
Mackenly
Mackenly7mo ago
Can you explain this a bit more? How are you running tests? Assuming these are integration tests? Have you considered mocking requests or having a separate test environment that both apps can be deployed to to run their tests?