Hearse
Explore posts from serversCDCloudflare Developers
•Created by Hearse on 4/2/2025 in #workers-help
Local Integration Testing
I need to test my stripe webhook and also test against my d1 database after the webhook is ran which is not possible via vitest.
I cannot use vitest-pool-workers because the endpoint will not be available to my local machine, only the internal testing environment.
This is not possible
stripe listen --forward-to localhost:PORT/endpoint
The first option listed here looks like my best choice:
https://developers.cloudflare.com/workers/testing/integration-testing/
My question is that if there is a better way to setup my tests than the following (Resembles option #1 from the above link):
- Create my tests and route them to the following endpoint /test/...
- Start dev server
- curl localhost:PORT/test/...
Example of test
1 replies
DTDrizzle Team
•Created by Hearse on 11/22/2024 in #help
Local Testing for D1?
before, to test locally with drizzle and d1:
i used to do this, i am aware :sqlite is deprecated since we have a config file.
but initializing a local db no longer works:
✘ [ERROR] near ")": syntax error at offset 57: SQLITE_ERROR
I looked into the push command but it looks like it directly applies changes to the production database? What is the correct way to create a local database now.11 replies
CDCloudflare Developers
•Created by Hearse on 8/17/2024 in #general-help
Ticket open for months
Hi, first of all i apologize for bothering in this discord, i know it isn't the recommended way. I was wondering if there is any advice or course of actions i could take to help me in my situation.
Couple months ago i was ddosed and got charged $1000 on my workers.
I ended up getting a refund around 1-2 months later, but got charged back the same amount of money again.
Opened a new ticket on 6/28/2024, Cloudflare was having issues with tickets recently and i was informed that my ticket would be closed in 24 hours today.
I was waiting for a response from the engineering team since the issue was escalated on 7/2/2024.
Is there anything i can do to help my case?
- The case is #00975771 (The previous case number was #3243108)
If anyone from Cloudflare cares to take a look, i really appreciate it.
4 replies