Testing server functions
Hallo!
For my application I’d like to write automated API tests, but I noticed that there’s currently no way to access the endpoint URL of a server function declared using query() with "use server".
Would it be possible to expose or simulate something like a .url or .fetch() helper so that we can test these functions from tools like Playwright or other API clients?
Here’s an example of what I mean:
Then in the Playwright test, something like this would be very helpful:
0 Replies