u-na-gi
CDCloudflare Developers
•Created by u-na-gi on 9/26/2024 in #🦀rust-on-workers
Hi everyone,
In that case, everything works fine...
I couldn't resolve this issue myself, so I decided to proceed with testing using the following approach:
1. Unit Test
I’ve separated the processing for non-wasm targets like this. While it doesn’t make for a perfect unit test, this approach allows me to continue writing unit tests for more important logic as I develop. 2. Blackbox Test
I've created blackbox tests for each endpoint using Deno, with the requirement that
I’ve separated the processing for non-wasm targets like this. While it doesn’t make for a perfect unit test, this approach allows me to continue writing unit tests for more important logic as I develop. 2. Blackbox Test
I've created blackbox tests for each endpoint using Deno, with the requirement that
wrangler dev
must be running beforehand.
This isn't the ideal solution, but it allows me to keep progressing with my side project. Ideally, I would like cargo test
to be able to bind to D1, but for now, I’ll continue developing and exploring better solutions as I go.
Thank you again for your response!4 replies
CDCloudflare Developers
•Created by u-na-gi on 9/26/2024 in #🦀rust-on-workers
Hi everyone,
@kflansburg
thanks!
yes, i use this.
but still suffering the same problem.
my fetch function is above one.
4 replies