-
Notifications
You must be signed in to change notification settings - Fork 377
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 cypress server-function test #1719
Add cypress server-function test #1719
Conversation
|
07abc7b
to
fe73291
Compare
More templates
commit: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests!!!! 🎉
This adds cypress, and a small test that simply prints to the DOM the result of isServer when run in a client component, and within a server function.
It's executed manually in two steps right now:
Go to
/tests/server-function
and runpnpm dev
to launch the server of this barebones projectRun in the repo root
pnpm run cy:run
(or for UI runcy:open
)I've added a github workflow too
cc @atilafassina , @brenelz