Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add worker test projects #1674

Merged
merged 4 commits into from
Feb 3, 2023
Merged

Add worker test projects #1674

merged 4 commits into from
Feb 3, 2023

Conversation

anniel-stripe
Copy link
Contributor

Add tests building cloudflare-worker and cloudflare-pages test projects. Verified that this fails if a node module is required somewhere in the worker entrypoint (stripe.worker WebPlatformFunctions, etc.).

Running the test projects in CI is tricky to automate since it requires starting a local server, sending requests against it, checking the response, and stopping the server. It's also not guaranteed to catch all runtime errors. I'd like to keep this test build-only for now and do end-to-end tests manually.

@anniel-stripe anniel-stripe merged commit 5c44430 into master Feb 3, 2023
@remi-stripe remi-stripe deleted the anniel-worker-tests branch September 28, 2023 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants