Larry thank you for the response How

Larry, thank you for the response. How close are you with the article? There are a bunch of questions on this. Do you have any code snippets, especially in Typescript?
4 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
hanpolo
hanpoloOP2y ago
Here are some questions: 1. My Pages application has its own environment (StencilJS) with its own package.json file and its own Jest setup. miniflare is installed on the node_modules on the root. I have currently put my tsconfig.json in the functions directory. But what do I do with my tests. Do I put my jest.config.js in a separate directory? Do I put my tests there as well? How do I ensure that my jest.config.js does not interfere with my Jest setup for my Pages project. 2. In the workers doc, tests just import handleRequest. But in functions do I import the entire onRequest? 3. How about middleware? Do I have to do anything special here? 4. Local bindings on workers are in a .toml file, but for functions I have to specify them on the command line. Will getMiniflareBindings() recognize these and is there a better way to set these up?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
hanpolo
hanpoloOP2y ago
Thanks a bunch, Larry. Looking forward to seeing your article.
Want results from more Discord servers?
Add your server