-
-
Notifications
You must be signed in to change notification settings - Fork 637
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
Investigate how to test Netlify Edge Functions #842
Comments
This issue has been automatically marked as stale because it has not had recent activity 😴 It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation. There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model. Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here. Thank you for your patience ❤️ |
Still relevant |
This issue has been automatically marked as stale because it has not had recent activity 😴 It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation. There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model. Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here. Thank you for your patience ❤️ |
still relevant |
I can pick this up. I'm working on a Netlify function for the newsletter subscriptions so it will fit right in. |
Awesome! Please feel free to ask any questions or request for help! |
This issue has been automatically marked as stale because it has not had recent activity 😴 It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation. There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model. Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here. Thank you for your patience ❤️ |
Hey @Shurtu-gal are you working on this issue? If not, I would like to work. |
Yeah they run in Deno, I can confirm this to you. But can't we just run the tests on Deno? About the answer they gave to you:
it will do the job of course, but too overengineered for what we need here. With a simple unit test we are fine. Anyway, if there is no alternative, we might want to run those tests through any headless browser (like puppeteer does indeed). Not ideal tbh. |
Yeah, cool will sift through the solutions and would see if can get a Deno test framework up and running. The puppeteer one can be the backup solution if nothing works. |
Anyway, I think we don't even need deno for that 🤔 Does it make sense? At the end, we want to test if the URL rewrites are done properly without the need of running this as a functional test under a real (headless) browser. The latest could run periodically somewhere but I believe not in CI on each PR because of the overhead. |
However, this can only work with the deployed Netlify link right? |
If we mock the Fetch API, no real request will be done. |
Done the work, you can check here :- If its fine I will make a PR @smoya |
Nice! I will check asap. Most probably tomorrow. Hope that works to you. |
This issue has been automatically marked as stale because it has not had recent activity 😴 It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation. There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model. Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here. Thank you for your patience ❤️ |
Reason/Context
We do have a Netlify Edge Function already in https://github.com/asyncapi/website/tree/master/netlify/edge-functions.
But there are no tests yet. We need to investigate how we can test that, since the runtime is Deno and there are some additions Netlify does on their runtime.
The text was updated successfully, but these errors were encountered: