beneck3552
beneck3552
CDCloudflare Developers
Created by beneck3552 on 8/5/2024 in #workers-help
Add file to R2 to test against
Hi all, I am trying to write tests for my code that uses Workers and R2. The problem that I am running into is that I need to use files to populate the R2 bucket and as data to test against. I have several files that I need to place into the R2 bucket before the tests run since the test storage is apparently isolated from the local bucket (which I can load files into easily with wrangler). Then I also need to load a couple JSON files that contain a sample of my expected data. Is there a way to accomplish either/both of these things? I have been reading documentation and forum posts all day do not feel any closer to a solution. Thanks in advance.
1 replies